curl --request POST \
--url https://api.open.cx/phone \
--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>",
"model": "oppie-vox-livekit",
"first_message": "<string>",
"voice_id": "<string>",
"flow": "<unknown>",
"use_org_knowledgebase": true,
"manual_mode": true,
"custom_llm": "<string>"
}
'{
"id": "<string>",
"org_id": "<string>",
"phone_number": "<string>",
"name": "<string>",
"type": "inbound",
"language": "<string>",
"accent": "<string>",
"handoff_phone_number": "<string>",
"speed": 123,
"interruptible": true,
"actionIds": [
"<string>"
],
"instructions": [
"<string>"
],
"data_collection_fields": [
"<string>"
],
"data_collection_webhook_url": "<string>",
"model": "oppie-vox",
"voice_id": "<string>",
"first_message": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"provider_external_id": "<string>",
"manual_mode": true,
"custom_llm": "<string>",
"use_org_knowledgebase": true,
"flow": "<unknown>"
}Create an AI phone agent. This phone number can be used to receive and make phone calls. For now, this API only supports US phone numbers. Email [email protected] for other countries.
curl --request POST \
--url https://api.open.cx/phone \
--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>",
"model": "oppie-vox-livekit",
"first_message": "<string>",
"voice_id": "<string>",
"flow": "<unknown>",
"use_org_knowledgebase": true,
"manual_mode": true,
"custom_llm": "<string>"
}
'{
"id": "<string>",
"org_id": "<string>",
"phone_number": "<string>",
"name": "<string>",
"type": "inbound",
"language": "<string>",
"accent": "<string>",
"handoff_phone_number": "<string>",
"speed": 123,
"interruptible": true,
"actionIds": [
"<string>"
],
"instructions": [
"<string>"
],
"data_collection_fields": [
"<string>"
],
"data_collection_webhook_url": "<string>",
"model": "oppie-vox",
"voice_id": "<string>",
"first_message": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"provider_external_id": "<string>",
"manual_mode": true,
"custom_llm": "<string>",
"use_org_knowledgebase": true,
"flow": "<unknown>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the AI phone agent
inbound, outbound The language the AI phone agent should mainly speak in
The accent the AI phone agent should mainly speak in
The phone number of the human agent to hand off the call to
The speed of the AI phone agent
Whether the agent can be interrupted or not
A list of action ids the AI phone agent has access to. A null value means all actions. An empty list means no actions
A list of instructions
A list of fields to collect data about
The webhook url to send the collected data to
The AI model of the agent. This cannot be changed after creation
oppie-vox, oppie-vox-turbo, oppie-vox-2, oppie-vox-livekit The first message the AI phone agent should say
The voice id
Whether the AI phone agent should use the organization's knowledgebase
Whether the AI phone agent should be in manual mode
The custom LLM to use for the AI phone agent
inbound, outbound oppie-vox, oppie-vox-turbo, oppie-vox-2, oppie-vox-livekit Was this page helpful?