cURL
curl --request PUT \ --url https://api.us-1.platform.polyai.app/{version}/{account_id}/{project_id}/chat/close \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --header 'X-TOKEN: <x-token>' \ --data ' { "conversation_id": "CONV-1234567890" } '
{ "success": true }
You must request an API Key to use PolyAI APIs.
Your PolyAI API key.
Agent authentication token (connector).
API version
Account ID
Project ID
ID of the conversation to close
"CONV-1234567890"
OK
Whether the conversation was successfully closed
true