curl --request GET \
--url https://agent-studio.thena.ai/api/v1/chat/{agent_id}/threads/{thread_id} \
--header 'x-api-key: <api-key>'{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"anon_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"messages": [
{
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"role": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_html": "<string>",
"tool_calls": [
{
"tool_name": "<string>",
"arguments": {},
"start_time": "2023-11-07T05:31:56Z",
"result": {},
"error": "<string>",
"end_time": "2023-11-07T05:31:56Z"
}
],
"attachments": [
{}
],
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"feedback": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"human_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ai_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"feedback_type": "<string>",
"issue_type": "<string>",
"comment": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
]
}Get a specific chat thread with its messages.
curl --request GET \
--url https://agent-studio.thena.ai/api/v1/chat/{agent_id}/threads/{thread_id} \
--header 'x-api-key: <api-key>'{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"anon_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"messages": [
{
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"role": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_html": "<string>",
"tool_calls": [
{
"tool_name": "<string>",
"arguments": {},
"start_time": "2023-11-07T05:31:56Z",
"result": {},
"error": "<string>",
"end_time": "2023-11-07T05:31:56Z"
}
],
"attachments": [
{}
],
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"feedback": {
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"human_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ai_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"feedback_type": "<string>",
"issue_type": "<string>",
"comment": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
]
}Number of messages to return
1 <= x <= 100Successful Response
Model for chat threads.
Show child attributes