v1
latestOpenAPI 3.1.02026-07-2687120159.0 KBCreate a new chat conversation
Creates a new chat conversation and returns the conversation ID along with the agent's initial response.
post/{version}/{account_id}/{project_id}/chat/create
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
Example request
{
"integration_attributes": {
"customer_id": "12345",
"source": "mobile_app"
},
"variant_id": "VARIANT-xxxxxxxx",
"channel": "webchat",
"asr_lang_code": "en-US",
"tts_lang_code": "en-US"
}Response
OK
Example response
{
"conversation_id": "CONV-1234567890",
"response": "Hi, how can I help?"
}