Create a conversation
curl --request POST \
--url https://api.operator.xyz/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Operator-Version: <operator-version>' \
--data '
{
"agent_id": "<string>",
"channel": {
"type": "phone",
"callee_no": "<string>",
"caller_no": null,
"priority": "normal"
}
}
'import requests
url = "https://api.operator.xyz/conversations"
payload = {
"agent_id": "<string>",
"channel": {
"type": "phone",
"callee_no": "<string>",
"caller_no": None,
"priority": "normal"
}
}
headers = {
"Operator-Version": "<operator-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Operator-Version': '<operator-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent_id: '<string>',
channel: {type: 'phone', callee_no: '<string>', caller_no: null, priority: 'normal'}
})
};
fetch('https://api.operator.xyz/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"channel": {
"token": "<string>",
"events_url": "<string>",
"type": "phone",
"callee_no": null,
"caller_no": null
}
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Conversations
Create a conversation
POST
/
conversations
Create a conversation
curl --request POST \
--url https://api.operator.xyz/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Operator-Version: <operator-version>' \
--data '
{
"agent_id": "<string>",
"channel": {
"type": "phone",
"callee_no": "<string>",
"caller_no": null,
"priority": "normal"
}
}
'import requests
url = "https://api.operator.xyz/conversations"
payload = {
"agent_id": "<string>",
"channel": {
"type": "phone",
"callee_no": "<string>",
"caller_no": None,
"priority": "normal"
}
}
headers = {
"Operator-Version": "<operator-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Operator-Version': '<operator-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent_id: '<string>',
channel: {type: 'phone', callee_no: '<string>', caller_no: null, priority: 'normal'}
})
};
fetch('https://api.operator.xyz/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"channel": {
"token": "<string>",
"events_url": "<string>",
"type": "phone",
"callee_no": null,
"caller_no": null
}
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Authorizations
Body
application/json
Partial override for the agent's configuration (e.g. voice, runtime, tools). Follows the same shape as the agent configuration object, but all fields are optional since it is merged into the base config.
Read more on dynamic configuration.
Response
Successful response.

