Sazabi
APIMessages

List messages in a thread

GET
/threads/{threadId}/messages

List messages in a thread with cursor pagination.

Path Parameters

threadId*string

Thread ID to list messages for.

Formatuuid

Query Parameters

limit?integer

Maximum number of messages to return per page.

Range1 <= value <= 100
Default50
cursor?string

Cursor from a previous response's nextCursor to fetch the next page.

Formatuuid

Response Body

application/json

curl -X GET "https://example.com/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages"
{  "messages": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "role": "user",      "content": [        {          "type": "message",          "message": "string"        }      ],      "source": "slack",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "53a4a333-2825-45a4-80d2-5f430d088f36"}