Log In
 

Request Type POST
   
Location
https://api.edify.cx/v3/messages/sms/send/
   
Details  This API allows you to send SMS messages.

Headers 

 

Key Value Type
u {EMAIL_ADDRESS}:{API_TOKEN}

Body

 

Key Value Type Values Default Value Required
 from  +1{10_DIGIT_PHONE_NUMBER}      
 to  +1{10_DIGIT_PHONE_NUMBER}      
 body  {STRING}      
Example Request
Send SMS
<?php
require_once('EdifyAPI.class.php');
$EdifyAPI = new EdifyAPI();
 
$EdifyAPI->email = "email@domain.com";
$EdifyAPI->apiToken = 'your-api-token';
 $service = "messages/sms/send";
$data = array(
     from => '8542651336',
to => '6026590412',
body => 'Text%20body.' );
$EdifyAPI->execute($service,$data); ?>
curl --location --request POST "https://api.edify.cx/v3/messages/sms/send/" \
  --header "u: {EMAIL_ADDRESS}:{API_TOKEN}" \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --data "from=+1%7B10_DIGIT_PHONE_NUMBER%7D&to=+1%7B10_DIGIT_PHONE_NUMBER%7D&body=%7BSTRING%7D"