Dial
POST/calls
Dial a number or SIP URI from a given connection. A successful response will include a call_leg_id which can be used to correlate the command with subsequent webhooks.
Expected Webhooks:
call.initiatedcall.answeredorcall.hangupcall.machine.detection.endedifanswering_machine_detectionwas requestedcall.machine.greeting.endedifanswering_machine_detectionwas requested to detect the end of machine greetingcall.machine.premium.detection.endedifanswering_machine_detection=premiumwas requestedcall.machine.premium.greeting.endedifanswering_machine_detection=premiumwas requested and a beep was detectedstreaming.started,streaming.stoppedorstreaming.failedifstream_urlwas set
When the record parameter is set to record-from-answer, the response will include a recording_id field.
Request
Responses
200:
Successful response with details about a call status that includes recording_id.
400:
Bad request. The request was invalid or cannot be served. Common causes include: audio file download failures, attempting to delete non-empty queues, invalid characters in the request, or character encoding errors.
422:
Unprocessable entity. The request was well-formed but could not be processed due to semantic errors. This includes validation errors, invalid parameter values, call state errors, conference errors, queue errors, recording/transcription errors, and business logic violations.
500:
Internal server error. An unexpected error occurred on the server. This is typically returned for unhandled exceptions or system failures.
503:
Service unavailable. The service is temporarily unavailable. This may occur during maintenance or when the service is overloaded.
default:
Unexpected error