GET
/
backend
/
chat
/
{organization_id}

This endpoint allows you to retrieve all conversations for a specific Organization ID. The response includes the conversation id, sentiment, and reason for handoff (if applicable).

Authentication

Authorization
string
required

Bearer token for authentication

Path Parameters

organization_id
string
required

The unique identifier of the organization

Query Parameters

page
integer
default: "1"

The page number to retrieve

limit
integer
default: "10"

The number of items to retrieve per page

sortBy
string
default: "created_at"

The field to sort by

sortDirection
string
default: "ASC"

The direction to sort (ASC or DESC)

Response

id
string

The unique identifier for the chat conversation

copilot_id
string

The unique identifier for the organization (copilot) associated with the conversation

created_at
string

The date and time the conversation was created

channel
string

The channel on which the conversation was created (whatsapp, email, web, or phone)

summary
string

A summary of the conversation (only available for conversations marked as handoff)

classification
string

The classification of the conversation (based on the user’s provided categories and tags)

assignee_id
string

The ID of the assignee for the conversation

handoff
boolean

Indicates whether the conversation was handed off to a human agent

handoff_sentiment
string

The sentiment of the conversation at the time of handoff

status
string

The status of the conversation (open, resolved, or closed)

meta
object

Metadata about the conversation (such as title, recording URL, and phone number)

action_called
integer

The number of actions called during the conversation

total_messages
integer

The total number of messages in the conversation