POST
/
v1
/
{account_id}
/
{project_id}
/
chat
/
respond
Respond to a chat
curl --request POST \
  --url https://api.us-1.platform.polyai.app/v1/{account_id}/{project_id}/chat/respond \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-token: <api-key>' \
  --data '{
  "conversation_id": "<string>",
  "message": "<string>"
}'
{
  "conversation_id": "<string>",
  "response": "<string>",
  "end_conversation": true
}

Authorizations

x-api-key
string
header
required
x-token
string
header
required

Headers

x-token
string
required

A unique identifier for the agent to create a chat with. Supplied by PolyAI.

Path Parameters

account_id
string
required

Account ID in the format ACCOUNT-xxxxxxxx. Uniquely identifies your PolyAI account.

project_id
string
required

Project ID in the format PROJECT-xxxxxxxx. Combined with the account_id, this uniquely identifies a PolyAI project.

Body

application/json

Response

200
application/json

Message sent successfully.

The response is of type object.