Send a message with advanced features

Use this action to send a message with advanced features through your specified channel (optionally with cascading backup channels) to a recipient phone number or email address.

To add this product to your account, contact a Telesign expert. This product is available for full-service accounts only.

General requirements

  • Authentication: Basic (easiest to implement) or Digest
  • Encoding: Accepts only UTF-8 unicode characters as inputs.
  • Accepts: application/json
  • Responds with: application/json
  • Rate limit: Default rate limits by product
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
channels
array of objects
required

All the potential channels you want the service to be able to try and details on how to use those channels. If the first channel attempted fails, you have specified a fallback channel, and the fallback timeout has elapsed, the service looks to the next channel object here for details on what to do.

channels*
recipient
object

Contains properties specifying the contact information needed to communicate with a recipient for a particular channel. At least one sub-property must be included. If the phone_number parameter is not included in this request, this parameter is required.

message
object
required

Contains properties specifying to the service how to construct the message for each channel. There should be one object in here for each channel, plus a default object with configuration to be applied if none of the specified channels can be used.

string
enum
required

The purpose for which the message is being sent. Choose from OTP - one-time passwords, ARN - alerts, reminders, and notifications, or MKT - marketing messages.

Allowed:
string
length ≤ 100

Your own identifier, used to refer to this transaction.

string

Your URL that you want Telesign to send callbacks to for this transaction. Overrides any previously set callback URL for your account.

string
enum

The phase of the customer life-cycle the end user is in when this transaction is sent. Choices include:

  • create - Create a new account.
  • sign-in - End user signs-in to their account.
  • transact - End user completes a transaction.
  • update - End user updates contact details or other info related to their account.
  • delete - Delete an account.
Allowed:
string

Specifies the sender ID to be displayed to the end user on the generated message. Before using this, give any sender IDs you might want to use to our Customer Support Team, so we can add them to our allow list. If the sender ID in this field is not on this list, it is not used. We do not guarantee that the sender ID you specify will be used; Telesign may override this value to improve delivery quality or to follow the regulations of particular countries.

string

The IP address of the end user the message is sent to. Must be in the format defined by the Internet Engineering Task Force (IETF).

string
deprecated

The end user's phone number you want to send this message to, as digits without spaces or special characters, beginning with the country dialing code. If the recipient parameter is not included in this request, this parameter is required.

Headers
string
Responses

413

Request entity too large. Allowed payload size is limited to 10KB.

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json