Get a list of chats for a specific org.
curl --request GET \
--url https://api.example.com/orgs/{org_id}/chats[
{
"id": "<string>",
"title": "<string>",
"model": "<string>",
"members": [
{
"id": "<string>",
"role": "ADMIN",
"user": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"session": {
"id": "<string>"
},
"contact_channel": {
"id": "<string>",
"channel_type": "internal",
"channel_id": "<string>",
"channel_name": "<string>",
"channel_display_name": "<string>",
"channel_avatar": "<string>",
"country": "<string>",
"agent": "<string>",
"ip": "<string>",
"language": "<string>",
"contact": {
"id": "<string>",
"name": "<string>",
"blocked": true
},
"link": "<string>"
}
}
],
"temporary": true,
"visibility": "PRIVATE",
"pinned": true,
"status": "RUNNING",
"shared_url": "<string>",
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"tools": [
{
"name": "<string>",
"display_name": "<string>",
"action_name": "<string>",
"description": "<string>",
"icon": "StepFormIcon",
"icon_url": "<string>",
"connection_id": "<string>",
"parameters": {},
"enabled_by_default": true,
"callback": "<string>"
}
],
"features": {
"web_search": {},
"reasoning": {
"effort": "low"
}
},
"org_id": "<string>",
"state": {
"id": "<string>",
"state": "OPEN",
"integration_id": "internal",
"assistant_id": "<string>",
"assistant_integration_id": "<string>",
"conversation_id": "<string>",
"ai_enabled": true,
"admin_unseen_count": 123,
"user_unseen_count": 123,
"assistant_integration": {
"id": "<string>",
"enabled": true
},
"assigned_user": {
"id": "<string>",
"name": "<string>",
"email": "[email protected]",
"avatar": "<string>",
"seen_at": "2023-12-25"
},
"assigned_at": "2023-12-25",
"assistant_config": {
"language": "auto",
"model": "<string>",
"stt": {
"model": "<string>"
},
"tts": {
"model": "<string>",
"voice_id": "<string>"
},
"conversation": {
"thread_mode": "new",
"enable_memories": true,
"enable_transfer_to_human_tool": true,
"welcome_banner": "<string>",
"suggested_messages": [
"<string>"
],
"auto_intro_message": "<string>",
"enable_end_conversation_tool": true,
"enable_block_contact_tool": true,
"enable_private_chats": true
},
"knowledge_scope": "all",
"instructions": "<string>"
}
},
"link": "<string>",
"last_message": {
"id": "<string>",
"role": "user",
"model": "<string>",
"status": "RUNNING",
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"messages": [
{
"role": "system",
"parts": [
{
"type": "text",
"text": "<string>",
"audio": {
"id": "<string>",
"file_path": "<string>",
"file_filename": "document.pdf",
"file_size": 1024,
"file_mimetype": "application/pdf",
"file_url": "<string>",
"created_at": "2023-12-25"
},
"start_timestamp": 123,
"end_timestamp": 123
}
]
}
],
"tools": [
{
"name": "<string>",
"display_name": "<string>",
"action_name": "<string>",
"description": "<string>",
"icon": "StepFormIcon",
"icon_url": "<string>",
"connection_id": "<string>",
"parameters": {},
"enabled_by_default": true,
"callback": "<string>"
}
],
"features": {
"web_search": {},
"reasoning": {
"effort": "low"
}
},
"member": {
"id": "<string>",
"role": "ADMIN",
"user": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"session": {
"id": "<string>"
},
"contact_channel": {
"id": "<string>",
"channel_type": "internal",
"channel_id": "<string>",
"channel_name": "<string>",
"channel_display_name": "<string>",
"channel_avatar": "<string>",
"country": "<string>",
"agent": "<string>",
"ip": "<string>",
"language": "<string>",
"contact": {
"id": "<string>",
"name": "<string>",
"blocked": true
},
"link": "<string>"
}
},
"error": "<string>",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123,
"reasoning_tokens": 123,
"cached_input_tokens": 123
}
}
}
]The ID of the org
Search term to filter chats
256ID of the connection integration
internal, custom, whatsapp_bot, messenger_bot, instagram_dm, twilio, slack_bot, telegram_bot, gmail, google_calendar ALL, RUNNING, COMPLETED, FAILED, CANCELED ALL, OPEN, SNOOZED, CLOSED ALL, ENABLED, DISABLED Filter for chats
ALL, UNREAD, UNRESOLVED, RESOLVED, ASSIGNED_TO_ME, UNASSIGNED Page number
Number of items to take
Next page token (Only used on special endpoints)
The title of the chat
The model used for the chat
The members of the chat
Show child attributes
Whether the chat is temporary and would be deleted after 24 hours of last activity
The visibility of the chat
PRIVATE, PUBLIC_READ, PUBLIC_WRITE Whether the chat is pinned in the user interface
The status of the chat
RUNNING, COMPLETED, FAILED, CANCELED The shared URL of the chat, if it is shared
The tools available in the chat
Show child attributes
Enabled features for the model
Show child attributes
Schema for the chat state
Show child attributes
The link to the chat in the integration
The chat message schema
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.example.com/orgs/{org_id}/chats[
{
"id": "<string>",
"title": "<string>",
"model": "<string>",
"members": [
{
"id": "<string>",
"role": "ADMIN",
"user": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"session": {
"id": "<string>"
},
"contact_channel": {
"id": "<string>",
"channel_type": "internal",
"channel_id": "<string>",
"channel_name": "<string>",
"channel_display_name": "<string>",
"channel_avatar": "<string>",
"country": "<string>",
"agent": "<string>",
"ip": "<string>",
"language": "<string>",
"contact": {
"id": "<string>",
"name": "<string>",
"blocked": true
},
"link": "<string>"
}
}
],
"temporary": true,
"visibility": "PRIVATE",
"pinned": true,
"status": "RUNNING",
"shared_url": "<string>",
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"tools": [
{
"name": "<string>",
"display_name": "<string>",
"action_name": "<string>",
"description": "<string>",
"icon": "StepFormIcon",
"icon_url": "<string>",
"connection_id": "<string>",
"parameters": {},
"enabled_by_default": true,
"callback": "<string>"
}
],
"features": {
"web_search": {},
"reasoning": {
"effort": "low"
}
},
"org_id": "<string>",
"state": {
"id": "<string>",
"state": "OPEN",
"integration_id": "internal",
"assistant_id": "<string>",
"assistant_integration_id": "<string>",
"conversation_id": "<string>",
"ai_enabled": true,
"admin_unseen_count": 123,
"user_unseen_count": 123,
"assistant_integration": {
"id": "<string>",
"enabled": true
},
"assigned_user": {
"id": "<string>",
"name": "<string>",
"email": "[email protected]",
"avatar": "<string>",
"seen_at": "2023-12-25"
},
"assigned_at": "2023-12-25",
"assistant_config": {
"language": "auto",
"model": "<string>",
"stt": {
"model": "<string>"
},
"tts": {
"model": "<string>",
"voice_id": "<string>"
},
"conversation": {
"thread_mode": "new",
"enable_memories": true,
"enable_transfer_to_human_tool": true,
"welcome_banner": "<string>",
"suggested_messages": [
"<string>"
],
"auto_intro_message": "<string>",
"enable_end_conversation_tool": true,
"enable_block_contact_tool": true,
"enable_private_chats": true
},
"knowledge_scope": "all",
"instructions": "<string>"
}
},
"link": "<string>",
"last_message": {
"id": "<string>",
"role": "user",
"model": "<string>",
"status": "RUNNING",
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"messages": [
{
"role": "system",
"parts": [
{
"type": "text",
"text": "<string>",
"audio": {
"id": "<string>",
"file_path": "<string>",
"file_filename": "document.pdf",
"file_size": 1024,
"file_mimetype": "application/pdf",
"file_url": "<string>",
"created_at": "2023-12-25"
},
"start_timestamp": 123,
"end_timestamp": 123
}
]
}
],
"tools": [
{
"name": "<string>",
"display_name": "<string>",
"action_name": "<string>",
"description": "<string>",
"icon": "StepFormIcon",
"icon_url": "<string>",
"connection_id": "<string>",
"parameters": {},
"enabled_by_default": true,
"callback": "<string>"
}
],
"features": {
"web_search": {},
"reasoning": {
"effort": "low"
}
},
"member": {
"id": "<string>",
"role": "ADMIN",
"user": {
"id": "<string>",
"name": "<string>",
"avatar": "<string>"
},
"session": {
"id": "<string>"
},
"contact_channel": {
"id": "<string>",
"channel_type": "internal",
"channel_id": "<string>",
"channel_name": "<string>",
"channel_display_name": "<string>",
"channel_avatar": "<string>",
"country": "<string>",
"agent": "<string>",
"ip": "<string>",
"language": "<string>",
"contact": {
"id": "<string>",
"name": "<string>",
"blocked": true
},
"link": "<string>"
}
},
"error": "<string>",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123,
"reasoning_tokens": 123,
"cached_input_tokens": 123
}
}
}
]