POST
/
v2
/
transactional

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
to
string
required

The recipient's phone number.

template_id
string
required

The template identifier.

from
string

The Sender ID.

locale
string

A BCP-47 formatted locale string with the language the text message will be sent to. If there's no locale set, the language will be determined by the country code of the phone number. If the language specified doesn't exist, the default set on the template will be used.

variables
object

The variables to be replaced in the template.

expires_at
string

The message expiration date.

callback_url
string

The callback URL.

correlation_id
string

A unique, user-defined identifier that will be included in webhook events.

Response

200
application/json
id
string
required

The message identifier.

to
string
required

The recipient's phone number.

template_id
string
required

The template identifier.

variables
object
required

The variables to be replaced in the template.

expires_at
string
required

The message expiration date.

created_at
string
required

The message creation date.

from
string

The Sender ID.

callback_url
string

The callback URL.

correlation_id
string

A unique, user-defined identifier that will be included in webhook events.