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.
Last updated
Was this helpful?
The make call API allows you to utilize your telephony virtual assistant to trigger an outgoing call to any PSTN number.
Last updated
Was this helpful?
Are you using postman?
When using curly braces in the query parameters, make sure you encode the content of your curly braces. If sent without the encoding, your request will return empty.
Are you within the limits?
Studio’s outbound call limits that is! We currently only allow one call/session per second however if your virtual agent needs to make more calls we can increase the limit up to 5 outbound calls per second.
API key
Agent ID(/s)
Increase request: You can choose to increase your limit to 3 or 5 calls per second
Once you receive confirmation from our teams that your request has been processed, please publish your agents and wait for about 5 minutes before you start triggering any new outbound calls.
Please note that if your agent is not approved for a higher limit, any call made over the 1 call per second limit will fail and return a 429 error!
POST
X-Vgai-Key (Don't forget to add the value of the Vgai key after you generated it)
to
Phone Number of Caller/SIP Endpoint
agent_id
ID of the destination virtual agent
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
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
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
Please make sure to change the body tag to JSON.
If you require an increased limit, please email with the following details:-
For Agents deployed in EU region -->
For Agents deployed in US region -->
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 .