Get Chat
Retrieves the full details of a single chat session by chatId. Returns the session status, assigned agent, message history, and dynamic variables.
Authorizations
Authenticate every request by passing your API key in the X-API-Key header. To get your key, go to Dashboard → API Keys and create or copy your Production API key.
Path Parameters
Unique identifier of the chat session to retrieve.
Response
OK
Unique identity for a chat
"chat-d17T6uReChpyfFeP"
Agent assigned to handle all calls in this campaign. Contains the agent's ID, name, and current status. All contacts in the campaign's contact list will be called using this agent.
The timestamp when the call record was created.
"2021-04-20T10:00:00.000Z"
Status of chat
"ended"
transcript of the conversation in chat
Agent response of the last user message
[
{
"id": "item_G9YdhDqua0EngI1G",
"role": "assistant",
"type": "message",
"content": [
"Hello! My name is Grace, and I'm calling on behalf of SigmaMind AI. Am I speaking with Michael?"
]
}
]Agent response of the last user message
[
{
"id": "item_G9YdhDqua0EngI1G",
"role": "assistant",
"type": "message",
"content": [
"Hello! My name is Grace, and I'm calling on behalf of SigmaMind AI. Am I speaking with Michael?"
]
}
]Dynamic key-value pairs that were passed to the agent at call start for personalisation. Keys correspond to variable names defined in the agent's configuration (e.g., 'customer_name', 'account_id'). Null or empty if no dynamic variables were provided when the call was created.
{
"customer_name": "Michael",
"account_id": "ACC-001"
}