APIMessages
List messages in a thread
List messages in a thread with cursor pagination.
Path Parameters
threadId*string
Thread ID to list messages for.
Format
uuidQuery Parameters
limit?integer
Maximum number of messages to return per page.
Range
1 <= value <= 100Default
50cursor?string
Cursor from a previous response's nextCursor to fetch the next page.
Format
uuidResponse 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"}