V4 REFERENCE Send SMS

/sms-send

This method creates an SMS Message object with the supplied data and sends it.

Add a new sms-send resource with a POST request.

# add a new sms-send resource, beware of the Read Only fields!

curl -s -X POST \
-H "Authorization: Bearer $MJ_TOKEN" \
https://api.mailjet.com/v4/sms-send \
-H 'Content-Type: application/json' \
-d '{"From": ...}'
Properties
Name Description
From Customizable sender name. Should be between 3 and 11 characters in length, only alphanumeric characters are allowed.
  • Mandatory
  • [ Type String ]
To Message recipient. Should be between 3 and 15 characters in length. The number always starts with a plus sign followed by a country code, followed by the number. Phone number are expected to comply with E.164 format.
  • Mandatory
  • [ Type String ]
Text The text part of the message.
  • Mandatory
  • [ Type String ]
MessageID Message ID generated by Mailjet.
  • Read Only
  • [ Type String (UUID) ]
SMSCount The number of sms messages generated from the text.
  • Read Only
  • [ Type Integer ]
CreationTS Unix timestamp when the message was created.
  • Read Only
  • [ Type Integer (unix timestamp) ]
SentTS Unix timestamp when the message was sent.
  • Read Only
  • [ Type Integer (unix timestamp) ]
Cost Message cost. Contains Value (decimal number) and Currency (string, the 3 letter ISO code).
  • Read Only
  • [ Type Object ]
Status Message status. Contains Code (integer number), Name (string) and Description (string). Table with Status Codes.
  • Read Only
  • [ Type Object ]