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.

Endpoint /api/v2/chat/rooms
HTTP methods GET
Authentication Public

Pass station or server. Returns an array of rooms.

Endpoint /api/v2/chat/rooms/{id}/messages
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.

Endpoint /api/v2/chat/rooms/{id}/messages
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.

Endpoint /api/v2/chat/photos/{id}/{size}
HTTP methods GET
Authentication Depends on message visibility

Returns a permitted chat image. Use the image URLs from the message payload.

Endpoint /api/v2/chat/messages/{id}
HTTP methods DELETE
Authentication Listener bearer token

Delete a message belonging to the listener. Returns HTTP 204.

Endpoint /api/v2/chat/messages/{id}/reactions/{emoji}
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.

Endpoint /api/v2/chat/dms
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.

Endpoint /api/v2/chat/dms/{id}/messages
HTTP methods GET, POST
Authentication Listener bearer token

Read a page of messages or send text, client_id, and optional multipart photo.

Endpoint /api/v2/chat/dms/{id}/read
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

Endpoint /api/v2/chat/staff/rooms
HTTP methods GET, POST
Authentication Panel JWT

GET lists rooms for station. POST accepts station and name and returns the created room.

Endpoint /api/v2/chat/staff/rooms/{id}
HTTP methods GET, PATCH, PUT, POST, DELETE
Authentication Panel JWT

Get, change name or archived, or delete a room with HTTP 204.

Endpoint /api/v2/chat/staff/rooms/{id}/rename
HTTP methods GET, PATCH, PUT, POST, DELETE
Authentication Panel JWT

Alias of the room detail endpoint .

Endpoint /api/v2/chat/staff/rooms/{id}/{action}
HTTP methods POST
Authentication Panel JWT

Use archive or unarchive. Returns the updated room.

Endpoint /api/v2/chat/staff/rooms/{id}/reorder
HTTP methods POST
Authentication Panel JWT

Send station and position. Returns id and position.

Endpoint /api/v2/chat/staff/rooms/{id}/messages
HTTP methods GET, POST
Authentication Panel JWT

Read a message page or send a staff reply with text and client_id.

Endpoint /api/v2/chat/staff/dms
HTTP methods GET
Authentication Panel JWT

Station inbox. Pass station and optionally limit and before.

Endpoint /api/v2/chat/staff/dms/{id}
HTTP methods GET
Authentication Panel JWT

Read a station conversation with the station query parameter.

Endpoint /api/v2/chat/staff/dms/{id}/messages
HTTP methods GET, POST
Authentication Panel JWT

GET reads a message page with query station. POST takes JSON station, text, and client_id.

Endpoint /api/v2/chat/staff/dms/{id}/read
HTTP methods POST
Authentication Panel JWT

Mark the station conversation read. Pass station in the query.

Moderation and widget

Endpoint /api/v2/chat/staff/messages/{id}
HTTP methods DELETE
Authentication Panel JWT

Remove a message. Accepts reason_code. Returns HTTP 204.

Endpoint /api/v2/chat/staff/sanctions
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.

Endpoint /api/v2/chat/staff/sanctions/{id}/lift
HTTP methods POST
Authentication Panel JWT

Lift a sanction. Accepts reason_code and returns the updated sanction.

Endpoint /api/v2/chat/staff/ip-bans
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.

Endpoint /api/v2/chat/staff/ip-bans/{id}/lift
HTTP methods POST
Authentication Panel JWT

Lift an IP ban. Accepts reason_code.

Endpoint /api/v2/chat/staff/listeners
HTTP methods GET
Authentication Panel JWT

Search by q or search, with page and limit. Returns results, total, page, limit, and pages.

Endpoint /api/v2/chat/staff/listeners/{id}
HTTP methods GET
Authentication Panel JWT

Listener profile, sanctions and activity counts.

Endpoint /api/v2/chat/staff/listeners/{id}/delete
HTTP methods POST
Authentication Panel JWT

Delete a listener account. Accepts reason_code and optional station. Returns HTTP 204.

Endpoint /api/v2/chat/staff/listeners/{id}/export
HTTP methods GET
Authentication Panel JWT

Download the listener’s data as ZIP.

Endpoint /api/v2/chat_widget_settings/{station_id}
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.