Listener chat
Public room reads can use optional listener authorization where supported. Sending messages, reactions, and direct messages requires a listener bearer token . Staff routes require a panel JWT and the matching chat permission . The paths on this page have no trailing slash.
HTTP methods GET
Authentication Public
Pass station or server. Returns an array of rooms.
HTTP methods GET
Authentication GET is public. POST requires a listener token.
Room message history. Optional before is a message ID and limit is page size.
HTTP methods POST
Authentication GET is public. POST requires a listener token.
Send text, client_id and optionally a multipart photo. A new message returns HTTP 201. A replay with the same client ID returns HTTP 200.
HTTP methods GET
Authentication Depends on message visibility
Returns a permitted chat image. Use the image URLs from the message payload.
HTTP methods DELETE
Authentication Listener bearer token
Delete a message belonging to the listener. Returns HTTP 204.
HTTP methods PUT, DELETE
Authentication Listener bearer token
Add or remove the caller’s reaction. Returns message_id, counts by emoji, the caller’s reactions in mine and actor_emojis, the actor account ID, and version.
HTTP methods GET, POST
Authentication Listener bearer token
GET lists conversations with before and limit. POST opens a conversation using either with_account (listener ID) or station.
HTTP methods GET, POST
Authentication Listener bearer token
Read a page of messages or send text, client_id, and optional multipart photo.
HTTP methods POST
Authentication Listener bearer token
Mark a conversation as read. Returns the updated conversation.
POST /api/v2/chat/rooms/12/messages
{
"text": "Hello from the evening show",
"client_id": "32d822e2-7d0a-492c-a5e5-49082dd67a15"
}
Staff rooms and inbox
HTTP methods GET, POST
Authentication Panel JWT
GET lists rooms for station. POST accepts station and name and returns the created room.
HTTP methods GET, PATCH, PUT, POST, DELETE
Authentication Panel JWT
Get, change name or archived, or delete a room with HTTP 204.
HTTP methods GET, PATCH, PUT, POST, DELETE
Authentication Panel JWT
Alias of the room detail endpoint .
HTTP methods POST
Authentication Panel JWT
Use archive or unarchive. Returns the updated room.
HTTP methods POST
Authentication Panel JWT
Send station and position. Returns id and position.
HTTP methods GET, POST
Authentication Panel JWT
Read a message page or send a staff reply with text and client_id.
HTTP methods GET
Authentication Panel JWT
Station inbox. Pass station and optionally limit and before.
HTTP methods GET
Authentication Panel JWT
Read a station conversation with the station query parameter.
HTTP methods GET, POST
Authentication Panel JWT
GET reads a message page with query station. POST takes JSON station, text, and client_id.
HTTP methods POST
Authentication Panel JWT
Mark the station conversation read. Pass station in the query.
Moderation and widget
HTTP methods DELETE
Authentication Panel JWT
Remove a message. Accepts reason_code. Returns HTTP 204.
HTTP methods GET, POST
Authentication Panel JWT
Filter by account and station. To create, send account, kind, optional station, until, reason and reason_code. Returns the sanction object.
HTTP methods POST
Authentication Panel JWT
Lift a sanction. Accepts reason_code and returns the updated sanction.
HTTP methods GET, POST
Authentication Panel JWT
List by station, or send ip or message_id with scope and optional expiry and reason fields. Returns the ban object.
HTTP methods POST
Authentication Panel JWT
Lift an IP ban. Accepts reason_code.
HTTP methods GET
Authentication Panel JWT
Search by q or search, with page and limit. Returns results, total, page, limit, and pages.
HTTP methods GET
Authentication Panel JWT
Listener profile, sanctions and activity counts.
HTTP methods POST
Authentication Panel JWT
Delete a listener account. Accepts reason_code and optional station. Returns HTTP 204.
HTTP methods GET
Authentication Panel JWT
Download the listener’s data as ZIP.
HTTP methods GET, PUT
Authentication Panel JWT
Read or partially update the station’s chat widget settings. Returns the widget configuration.
Message and conversation pages
Message histories return messages, has_more, and next_before. Pass next_before as the next request’s before to load older messages. Page size is limited to 50. Conversation lists return items, has_more, and a conversation-specific next_before cursor.
Message sends return id, message_id, duplicate, version, and message. A message includes the sender’s author_id, author_name, author_kind, text, created_at, optional photo, reaction counts and lists, and either a room_id or a conversation_id.
Chat and moderation values
| Field or parameter | Meaning |
|---|---|
size |
display for the display image or thumb for the thumbnail. |
emoji |
Emoji character or its hexadecimal Unicode codepoint key from the chat widget’s reaction set. For example, 1f44d is 👍. Availability follows the widget’s reaction catalog. |
kind, until |
mute prevents sending messages and ban blocks chat access. until is the expiration time or null for no expiration. |
reason_code |
spam, abuse (abusive behavior), off_topic, or other. |
In the example, 12 is the room ID, and the value of client_id is an opaque client-generated message identifier for retry deduplication. Staff listener lookup uses a one-based page and a limit of 25 by default, at most 100 results per page.