POST
/
v1
/
calls
/
end
curl --request POST \
  --url https://api.vocode.dev/v1/calls/end \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "not_started",
  "error_message": "<string>",
  "recording_available": true,
  "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"
  },
  "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": "<string>",
      "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": "<string>",
        "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": 123,
      "rate": 123
    },
    "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": true,
    "endpointing_sensitivity": "auto",
    "ivr_navigation_mode": "default",
    "conversation_speed": 123,
    "initial_message_delay": 123,
    "openai_model_name_override": "<string>",
    "ask_if_human_present_on_idle": true,
    "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": true,
    "llm_temperature": 123
  },
  "telephony_provider": "vonage",
  "agent_phone_number": "<string>",
  "start_time": "2023-11-07T05:31:56Z",
  "end_time": "2023-11-07T05:31:56Z",
  "hipaa_compliant": true,
  "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": true
  },
  "telephony_params": {}
}

Authorizations

Authorization
string
headerrequired

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

Query Parameters

id
string
required

Response

200 - application/json
id
string
required
user_id
string
required
status
enum<string>

An enumeration.

Available options:
not_started,
in_progress,
error,
ended
error_message
string
recording_available
boolean
default: false
transcript
string
human_detection_result
enum<string>
Available options:
human,
no_human
do_not_call_result
boolean
telephony_id
string
stage
enum<string>
Available options:
created,
picked_up,
transfer_started,
transfer_successful
stage_outcome
enum<string>
Available options:
human_unanswered,
call_did_not_connect,
human_disconnected,
bot_disconnected,
transfer_unanswered,
transfer_disconnected
telephony_metadata
object
to_number
string
required
from_number
string
required
agent
object
required
telephony_provider
enum<string>
required
Available options:
vonage,
twilio
agent_phone_number
string
required
start_time
string
end_time
string
hipaa_compliant
boolean
default: false
on_no_human_answer
enum<string>
Available options:
continue,
hangup
context
object
run_do_not_call_detection
boolean
telephony_account_connection
object
telephony_params
object