Docs
Conversations

Digest of many conversations

POST
/conversations/digest

Read up to 25 conversations in one call, each within a fixed character budget: state, contact, escalation reason, AI summary, the latest messages (shortened), internal notes and the last AI run (status and tools called with short results).

Authorization

bearer conversations:read
headerAuthorizationBearer <token>

API key (rsl_live_…) from Settings → Developers.

Scope: conversations:read

Request Body

application/json
  1. body
conversationIds*array<>

Up to 25 ids from conversations_list.

Items1 <= items <= 25
messages?integer

Latest messages per conversation (default 4).

Range0 <= value <= 10
Default4
maxCharsPerConversation?integer

Character budget per conversation (default 2000). The whole response stays under 60 000 characters, so with many ids the budget shrinks.

Range600 <= value <= 6000
Default2000
notes?boolean
Defaulttrue
aiRun?boolean

Include the last AI run (status, reply, tools with short results).

Defaulttrue

Response Body

Success

application/json
  1. response
data*array<|>

In the order of conversationIds; unknown ids come back with error.

budgetPerConversation*number
curl -X POST "https://example.com/conversations/digest" \  -H "Content-Type: application/json" \  -d '{    "conversationIds": [      "string"    ]  }'
{  "data": [    {      "id": "string",      "channel": "chat",      "status": "open",      "state": "string",      "agentId": "string",      "agentName": "string",      "contact": {        "name": "string",        "email": "string"      },      "assignee": "string",      "tags": [        "string"      ],      "subject": "string",      "lastActor": "string",      "lastActivityAt": 0,      "lastCustomerMessageId": "string",      "escalationReason": "string",      "summary": "string",      "nextStep": "string",      "messages": [        {          "id": "string",          "author": "customer",          "text": "string",          "attachments": 0,          "deliveryFailed": "string",          "createdAt": 0        }      ],      "olderMessages": true,      "notes": [        {          "kind": "string",          "author": "string",          "text": "string",          "createdAt": 0        }      ],      "lastAiRun": {        "id": "string",        "status": "string",        "isDebug": true,        "reply": "string",        "failure": "string",        "toolCalls": [          {            "tool": "string",            "status": "string",            "arguments": "string",            "result": "string"          }        ],        "createdAt": 0      },      "trimmed": true    }  ],  "budgetPerConversation": 0}