POST
/
v1
/
{account_id}
/
{project_id}
/
chat
/
respond
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>' \
  --data '{
  "chat_id": "WEBCHAT_18bd8253-4019-4ba7-83b5-5ed602d5d84a",
  "message": "<string>"
}'
{
  "status": "<string>"
}

Authorizations

x-api-key
string
header
required

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
chat_id
string

A unique identifier for the chat session. Returned from the create endpoint and required to interact with the chat.

message
string

The content of the chat message.

Response

200
application/json
Message sent successfully.
status
string

Indicates whether the message was successfully sent.