POST
/
conversations
curl --request POST \
  --url https://api.operator.xyz/conversations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Operator-Version: <operator-version>' \
  --data '{
  "operator_id": "<string>",
  "task_id": "<string>",
  "phone_no": "+12125551234",
  "context": {},
  "leave_voicemail": false,
  "livemode": true,
  "language": "English",
  "priority": "normal"
}'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Headers

Operator-Version
string
required

The API version to use.

Example:

"2024-11-11"

Body

application/json

Response

200
application/json
Conversation created successfully.

The response is of type object.