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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

thread_id
integer
required

ID of the thread

Response

200
application/json

The response is of type object.