POST
/
v1
/
voice
/
agents
/
{agent}
/
chat
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/voice/agents/{agent}/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "message": "<string>",
  "language": "<string>",
  "conversation_history": [
    {
      "role": "user",
      "message": "<string>"
    }
  ]
}'
"<string>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent
string<uuid>
required

The agent ID

Body

application/json

Response

200
application/json

The response is of type string.