Request Type POST
   
Location
https://api.edify.cx/v3/calls/voice/create/
   
Details  This API creates a voice call. 

The numbers involved in the call need to be ordered before the call can be made.
 
 

Headers 

 

Key Value Type
u {EMAIL_ADDRESS}:{API_TOKEN}

Body

 

Key Value Type Values Default Value Required
toNumber  {String}      Y
fromNumber  {String}      Y
toNumberCallerId  {String}      
fromNumberCallerId  {String}      
callerID  {String}      
Example Request
Voice Call
<?php
require_once('EdifyAPI.class.php');
$EdifyAPI = new EdifyAPI();
 
$EdifyAPI->email = "email@domain.com";
$EdifyAPI->apiToken = 'your-api-token';
$service = "calls/voice/create";
$data = array(
     toNumber => '13177401354',
     fromNumber => '13177401355',
toNumberCallerId => '13177401354',
fromNumberCallerId => '13177401355',
callerId => 'Caller Id' );
$EdifyAPI->execute($service,$data); ?>
curl -X POST \
https://api.edify.cx/v3/calls/voice/create/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'u: {EMAIL_ADDRESS}:{API_TOKEN}' \
-d 'toNumber=13177401354&fromNumber=13177401355&toNumberCallerId=13177401354&fromNumberCallerId=13177401355'