Threads
List messages
Returns a paginated list of messages for a thread, ordered by creation date descending. Supports cursor-based pagination.
GET
/v1/threads/{thread_id}/messagesAuthorization
APIKeyHeader api-key<token>
In: header
Path Parameters
thread_id*Thread Id
Format
uuidQuery Parameters
limit?Limit
Default
100cursor?|
Cursor string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages"{ "cursor": "string", "items": [ { "content": "Welche Kündigungsfristen gelten während der Probezeit?", "created_at": "2025-03-15T09:12:45.123456Z", "id": "4d5e6f70-8901-cdef-0123-445566778899", "role": "user", "thread_id": "1a2b3c4d-5678-9abc-def0-112233445566" } ]}{ "error_code": "thread_is_deactivated", "detail": "Thread is deactivated"}{ "error_code": "unauthorized", "detail": "Missing or invalid API key"}{ "error_code": "assistant_not_found", "detail": "Assistant not found"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}{ "message": "Rate limit exceeded!"}{ "error_code": "internal_server_error", "detail": "Internal Server Error"}