v1

latestOpenAPI 3.1.02026-07-2687120159.0 KB

Close an existing chat conversation

Closes an active chat conversation and marks it as complete.

put/{version}/{account_id}/{project_id}/chat/close

Path parameters

versionstring required

API version

account_idstring required

Account ID

project_idstring required

Project ID

Headers

X-API-KEYstring required

Your PolyAI API key.

X-TOKENstring required

Agent authentication token (connector).

Request body

conversation_idstring required

ID of the conversation to close

Example request

{
  "conversation_id": "CONV-1234567890"
}

Response

OK

successboolean required

Whether the conversation was successfully closed

Example response

{
  "success": true
}