Skip to main content
GET
/
v1
/
threads
/
{id}
/
messages
Get thread messages
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
}

Headers

authorization
string
required

Path Parameters

id
string
required

Thread ID (UUID format)

Response

Response for status 200

messages
object[]
required

Array of messages for the thread

total
number
required

Total count of messages returned

limit
number

Requested page size (omitted when all=true)

offset
number

Pagination offset used (omitted when all=true)