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

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 => '17656238890',
     fromNumber => '17656068881',
toNumberCallerId => '13177401715',
fromNumberCallerId => '13177401715',
callerId => '13177401715' );
$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=17656238890&fromNumber=17656068881&toNumberCallerId=13177401715&fromNumberCallerId=13177401715'