cURL
curl --request GET \ --url https://api.illuminalab.com/v1/threads/{id}/messages \ --header 'authorization: <authorization>'
{ "messages": [ { "id": "<string>", "thread_id": "<string>", "role": "<string>", "parts": "<string>", "metadata": "<string>", "created_at": "<string>" } ], "total": 123, "limit": 123, "offset": 123 }
Get messages for a thread. Returns paginated results by default. Use all=true to fetch all messages at once (ignores limit/offset).
all=true
Thread ID (UUID format)
Response for status 200
Array of messages for the thread
Show child attributes
Total count of messages returned
Requested page size (omitted when all=true)
Pagination offset used (omitted when all=true)