Log In
 

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 --location --request POST "https://api.edify.cx/v3/calls/voice/create/" \
  --header "u: {EMAIL_ADDRESS}:{API_TOKEN}" \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --data "toNumber=10_Digit_Number&fromNumber=10_Digit_Number"