Contacts
Sessions
AI Phone Agents
AI Email
AI WhatsApp
AI Outbound Sequencing
AI Training
Customer Insights
Groups (teams)
Webhooks
AI Phone Agents
Update an AI phone agent
PATCH
/
phone
/
{phone_agent_id}
curl --request PATCH \
--url https://api.open.cx/phone/{phone_agent_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": "inbound",
"language": "<string>",
"accent": "<string>",
"handoff_phone_number": "<string>",
"speed": 1,
"interruptible": true,
"actionIds": [
"<string>"
],
"instructions": [
"<string>"
],
"data_collection_fields": [
"<string>"
],
"data_collection_webhook_url": "<string>",
"voice_id": "<string>",
"first_message": "<string>",
"flow": {
"id": "<string>",
"type": "root",
"content": "<string>",
"connectionType": "true",
"position": {
"x": 123,
"y": 123
},
"children": [
{
"id": "<string>",
"type": "root",
"content": "<string>",
"connectionType": "true",
"position": {
"x": 123,
"y": 123
},
"children": [
{
"id": "<string>",
"type": "root",
"content": "<string>",
"connectionType": "true",
"position": {
"x": 123,
"y": 123
},
"children": [
"<any>"
]
}
]
}
]
},
"use_org_knowledgebase": true
}'
This response has no body data.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Was this page helpful?
curl --request PATCH \
--url https://api.open.cx/phone/{phone_agent_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": "inbound",
"language": "<string>",
"accent": "<string>",
"handoff_phone_number": "<string>",
"speed": 1,
"interruptible": true,
"actionIds": [
"<string>"
],
"instructions": [
"<string>"
],
"data_collection_fields": [
"<string>"
],
"data_collection_webhook_url": "<string>",
"voice_id": "<string>",
"first_message": "<string>",
"flow": {
"id": "<string>",
"type": "root",
"content": "<string>",
"connectionType": "true",
"position": {
"x": 123,
"y": 123
},
"children": [
{
"id": "<string>",
"type": "root",
"content": "<string>",
"connectionType": "true",
"position": {
"x": 123,
"y": 123
},
"children": [
{
"id": "<string>",
"type": "root",
"content": "<string>",
"connectionType": "true",
"position": {
"x": 123,
"y": 123
},
"children": [
"<any>"
]
}
]
}
]
},
"use_org_knowledgebase": true
}'
This response has no body data.
Assistant
Responses are generated using AI and may contain mistakes.