Update Chat
Partially updates an in_progress chat session by chatId. Only fields provided in the request body are updated — omitted fields remain unchanged. Returns the updated session record.
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 update.
Body
The unique identifier of the Agent assigned to handle the chat completion.
64"D5D0p7TUs66TTAEAx"
Dynamic key-value pairs required by the selected Agent for personalisation (e.g. customer name, account details).
{ "customer_name": "Michael" }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"
}