curl --request GET \
--url https://agent-studio.thena.ai/api/v1/chat/{agent_id}/web-threads/enhanced \
--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"
}
}
],
"widget_user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_name": "<string>",
"user_email": "<string>",
"verified_user_name": "<string>",
"verified_user_email": "<string>",
"ip_address": "<string>",
"verified": false,
"identified_by_tool": false,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"message_count": 0,
"ticket_id": "<string>",
"chat_history_parent_comment_id": "<string>",
"connected_to_platform": true
}
]List all web chat threads (anonymous user threads) for a specific agent with enhanced data including widget user information and message count.
Filters:
curl --request GET \
--url https://agent-studio.thena.ai/api/v1/chat/{agent_id}/web-threads/enhanced \
--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"
}
}
],
"widget_user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_name": "<string>",
"user_email": "<string>",
"verified_user_name": "<string>",
"verified_user_email": "<string>",
"ip_address": "<string>",
"verified": false,
"identified_by_tool": false,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"message_count": 0,
"ticket_id": "<string>",
"chat_history_parent_comment_id": "<string>",
"connected_to_platform": true
}
]Number of enhanced web threads to return
1 <= x <= 50Number of enhanced web threads to skip
x >= 0Sort by: 'newest' or 'oldest'
Filter by feedback: 'any', 'positive', 'negative', or None for all
Filter threads that have a ticket ID
Filter threads that are connected to platform
Successful Response
Show child attributes
Model for widget user data from the widget_user table.
Show child attributes