Calls
Create Call
Calls
Create Call
POST
/
v1
/
calls
/
create
curl --request POST \
--url https://api.vocode.dev/v1/calls/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"from_number": "<string>",
"to_number": "<string>",
"agent": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"on_no_human_answer": "continue",
"run_do_not_call_detection": true,
"hipaa_compliant": false,
"context": {},
"telephony_params": {}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "not_started",
"error_message": "<string>",
"recording_available": false,
"transcript": "<string>",
"human_detection_result": "human",
"do_not_call_result": true,
"telephony_id": "<string>",
"stage": "created",
"stage_outcome": "human_unanswered",
"telephony_metadata": {
"type": "telephony_metadata_vonage"
},
"start_time": "<string>",
"end_time": "<string>",
"to_number": "<string>",
"from_number": "<string>",
"agent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"prompt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "",
"collect_fields": [
{
"field_type": "field_type_email",
"label": "<string>",
"name": "<string>",
"description": "<string>"
}
],
"context_endpoint": "<string>",
"prompt_template": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "",
"required_context_keys": [
"<string>"
]
}
},
"language": "en",
"actions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "action_transfer_call",
"config": {
"phone_number": "<string>"
},
"action_trigger": {
"type": "action_trigger_function_call",
"config": {}
}
}
],
"voice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "voice_azure",
"voice_name": "<string>",
"pitch": 0,
"rate": 15
},
"initial_message": "<string>",
"webhook": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscriptions": [
"event_message"
],
"url": "<string>",
"method": "GET"
},
"vector_database": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "vector_database_pinecone",
"index": "<string>",
"api_key": "<string>",
"api_environment": "<string>"
},
"interrupt_sensitivity": "low",
"context_endpoint": "<string>",
"noise_suppression": false,
"endpointing_sensitivity": "auto",
"ivr_navigation_mode": "off",
"conversation_speed": 1,
"initial_message_delay": 0,
"openai_model_name_override": "<string>",
"ask_if_human_present_on_idle": false,
"openai_account_connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credentials": {
"openai_api_key": "<string>"
},
"type": "account_connection_openai"
},
"run_do_not_call_detection": false,
"llm_fallback": {
"provider": "openai",
"model_name": "<string>"
},
"deepgram_keywords": {},
"idle_time_seconds": 123,
"llm_temperature": 0
},
"telephony_provider": "vonage",
"agent_phone_number": "<string>",
"hipaa_compliant": false,
"on_no_human_answer": "continue",
"context": {},
"run_do_not_call_detection": true,
"telephony_account_connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credentials": {
"twilio_account_sid": "<string>",
"twilio_auth_token": "<string>"
},
"type": "account_connection_twilio",
"steering_pool": [
"<string>"
],
"account_supports_any_caller_id": false
},
"telephony_params": {}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Available options:
continue
, hangup
Response
200
application/json
Successful Response
Available options:
action_transfer_call
Available options:
en
, es
, de
, hi
, pt
, fr
, nl
, id
, it
, ja
, ko
Available options:
event_message
, event_action
, event_phone_call_connected
, event_phone_call_ended
, event_phone_call_did_not_connect
, event_transcript
, event_recording
, event_human_detection
Available options:
GET
, POST
Available options:
vector_database_pinecone
Available options:
low
, high
Available options:
auto
, relaxed
, sensitive
Available options:
default
, off
Available options:
account_connection_openai
Available options:
vonage
, twilio
Available options:
not_started
, in_progress
, error
, ended
Available options:
human
, no_human
Available options:
created
, picked_up
, transfer_started
, transfer_successful
Available options:
human_unanswered
, call_did_not_connect
, human_disconnected
, bot_disconnected
, transfer_unanswered
, transfer_disconnected
Available options:
telephony_metadata_vonage
Available options:
continue
, hangup
Available options:
account_connection_twilio
curl --request POST \
--url https://api.vocode.dev/v1/calls/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"from_number": "<string>",
"to_number": "<string>",
"agent": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"on_no_human_answer": "continue",
"run_do_not_call_detection": true,
"hipaa_compliant": false,
"context": {},
"telephony_params": {}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "not_started",
"error_message": "<string>",
"recording_available": false,
"transcript": "<string>",
"human_detection_result": "human",
"do_not_call_result": true,
"telephony_id": "<string>",
"stage": "created",
"stage_outcome": "human_unanswered",
"telephony_metadata": {
"type": "telephony_metadata_vonage"
},
"start_time": "<string>",
"end_time": "<string>",
"to_number": "<string>",
"from_number": "<string>",
"agent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"prompt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "",
"collect_fields": [
{
"field_type": "field_type_email",
"label": "<string>",
"name": "<string>",
"description": "<string>"
}
],
"context_endpoint": "<string>",
"prompt_template": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "",
"required_context_keys": [
"<string>"
]
}
},
"language": "en",
"actions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "action_transfer_call",
"config": {
"phone_number": "<string>"
},
"action_trigger": {
"type": "action_trigger_function_call",
"config": {}
}
}
],
"voice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "voice_azure",
"voice_name": "<string>",
"pitch": 0,
"rate": 15
},
"initial_message": "<string>",
"webhook": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscriptions": [
"event_message"
],
"url": "<string>",
"method": "GET"
},
"vector_database": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "vector_database_pinecone",
"index": "<string>",
"api_key": "<string>",
"api_environment": "<string>"
},
"interrupt_sensitivity": "low",
"context_endpoint": "<string>",
"noise_suppression": false,
"endpointing_sensitivity": "auto",
"ivr_navigation_mode": "off",
"conversation_speed": 1,
"initial_message_delay": 0,
"openai_model_name_override": "<string>",
"ask_if_human_present_on_idle": false,
"openai_account_connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credentials": {
"openai_api_key": "<string>"
},
"type": "account_connection_openai"
},
"run_do_not_call_detection": false,
"llm_fallback": {
"provider": "openai",
"model_name": "<string>"
},
"deepgram_keywords": {},
"idle_time_seconds": 123,
"llm_temperature": 0
},
"telephony_provider": "vonage",
"agent_phone_number": "<string>",
"hipaa_compliant": false,
"on_no_human_answer": "continue",
"context": {},
"run_do_not_call_detection": true,
"telephony_account_connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credentials": {
"twilio_account_sid": "<string>",
"twilio_auth_token": "<string>"
},
"type": "account_connection_twilio",
"steering_pool": [
"<string>"
],
"account_supports_any_caller_id": false
},
"telephony_params": {}
}