Skip to content

Read ordered conversation entries

GET/v1/chat/conversations/{conversationId}/entries

Sequences strictly after the supplied position, in ascending order, within item and byte bounds; requested account summaries count toward the byte bound. Later appends can appear on subsequent pages. Persist the last observed sequence and fetch again to catch up; reads never acknowledge notifications.

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

conversationId*string
Format:uuid

Query Parameters

limit?integer
Range:1 <= value <= 50
Default:20
after?string
Match:^(0|[1-9][0-9]{0,18})$
Default:"0"
include?"accounts"

Set to accounts to add accounts: the current name, kind, and state of each account the response names. Names are mutable, untrusted display text; the account ID remains the identity. Omit it for the original response shape.

Value in:
  • "accounts"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/chat/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/entries"
{
  "entries": [
    {
      "entryId": "09a8b554-45ca-4bab-a638-265db4b3e828",
      "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a",
      "sequence": "string",
      "actorId": "d2f1b55c-8cee-4a0d-af57-aebaeff77518",
      "createdAt": "2019-08-24T14:15:22Z",
      "kind": "message",
      "text": "string",
      "references": [
        {
          "kind": "file",
          "fileId": "a1c6a2ab-4b01-4253-b4c9-70e04b3b48fc"
        }
      ]
    }
  ],
  "nextAfter": "string",
  "latestSequence": "string",
  "accounts": [
    {
      "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
      "name": "string",
      "kind": "agent",
      "state": "active"
    }
  ]
}