Conversations
Retrieve paginated conversations, including if the conversatin was a handoff and the sentiment with the summary.
This endpoint is protected by the same JWT that the user uses to call other APIs. The response will include data for the specified chatbot, along with other metadata information.
This endpoint allows you to retrieve all conversations for a specific Copilot ID. The response includes the conversation id, sentiment, and reason for handoff (if applicable).
The endpoint is paginated, and you can specify the offset
and limit
parameters to control the amount of data returned.
The response includes the following fields:
conversation_id
: The unique identifier for the conversation.created_at
: The date and time the conversation was created.handoff_sentiment
: The sentiment of the conversation at the time of handoff.handoff_summary
: A summary of the conversation at the time of handoff.was_handoff
: A boolean value indicating whether the conversation was handed off to a human agent.
You can use the offset
and limit
parameters to control the pagination of the response. For example, to retrieve the first 10 messages, you can use the following request:
curl --location 'https://api.opencopilot.so/backend/conversations/:bot_id?offset=0&limit=10' \
--header 'Authorization: Bearer TOKEN'