cURL
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 }
Retrieve all messages for a specific thread. Messages are returned in chronological order.
JWT or API key authentication using Bearer scheme
ID of the thread
The response is of type object.
object
Was this page helpful?