Triggering Outbound Call API
The make call API allows you to utilize your telephony virtual assistant to trigger an outgoing call to any PSTN number.

How to prepare your Outbound Call Query
Endpoint (mandatory)
For Agents deployed in EU region --> https://studio-api-eu.ai.vonage.com/telephony/make-call
For Agents deployed in US region --> https://studio-api-us.ai.vonage.com/telephony/make-call
Method (mandatory)
POST
Headers (mandatory)
X-Vgai-Key (Don't forget to add the value of the Vgai key after you generated it)

Body (mandatory)
Destination Parameters (mandatory)
to
Phone Number of Caller/SIP Endpoint
agent_id
ID of the destination virtual agent
To route to phone numbers make sure to enter the phone number with the country code without any special characters. In cases of SIP routing, the value must include the SIP address within the body as mentioned in this example query.
status_url (optional)
If the recipient cannot pick up the call for any reason, we will send a response to a designated callback URL
Add the relevant endpoint that a response is sent to in case the callee didn't manage to pick up the call.
Example Response payload:
Currently we support the following values to be attached to Status:-
cancelled- Call cancelled by the originating source before it was answered.rejected- Call attempt was rejected by the destination.busy- Destination is on the line/busy with another caller.timeout- Call timed out before it was answered.failed- Call failed before reaching the destination
hangup_on_answer_machine (optional) [BETA Testing Phase]
We are able to recognize when an answering machine picks up the call and the call is going to be immediately disconnected.
Add the following parameters to your request:
hangup_on_answer_machine
false
session_parameters (optional)
You can send parameters to the virtual agent prior to initiating the call, e.g. the name of the caller. The agent can then greet the caller with his name.
CALLER_NAME
Diane Miller
Example Query
Successful Call Response
Curl Example Request
Response
Potential Errors
Agent doesn't exist
Bad number format
Not Authorised
The preconfigured session doesn't exist
Last updated
Was this helpful?