Skip to main content
GET
/
api
/
v1
/
threads
/
{thread_id}
/
messages
Get thread messages
curl --request GET \
  --url https://api.camelai.com/api/v1/threads/{thread_id}/messages \
  --header 'Authorization: Bearer <token>'
{
  "messages": [
    {
      "id": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "source": "UI",
      "role": "user",
      "content": "<unknown>",
      "metadata": "<unknown>"
    }
  ],
  "thread_id": 123,
  "message_count": 123
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Path Parameters

thread_id
integer
required

ID of the thread

Response

messages
object[]
required
thread_id
integer
required

ID of the thread

message_count
integer
required

Total number of messages