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>"
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The agent ID
The response is of type string.
string