Skip to main content
GET
/
v1
/
resources
/
{resourceId}
/
threads
/
{threadId}
/
messages
Get thread messages
curl --request GET \
  --url https://api.illuminalab.com/v1/resources/{resourceId}/threads/{threadId}/messages \
  --header 'authorization: <authorization>'
{
  "messages": [
    {
      "id": "<string>",
      "thread_id": "<string>",
      "role": "<string>",
      "parts": "<string>",
      "metadata": "<string>",
      "created_at": "<string>"
    }
  ],
  "total": 123
}

Headers

authorization
string
required

Path Parameters

resourceId
string
required

Unique resource identifier

Minimum string length: 10
threadId
string<uuid>
required

UUID of the thread

Response

Response for status 200

messages
object[]
required

Array of messages with all parts (unfiltered)

total
number
required

Total count of messages