Send Message

With the Mailjet Send SMS API you can easily send transactional SMS messages to more than 50 countries.

post

Send an SMS Message

post

/sms-send

Create an SMS Message object with the supplied data and send it.

Full API path

Body parameters

From

string

Customizable sender name. Should be between 3 and 11 characters in length, only alphanumeric characters are allowed.

To

string

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 numbers are expected to comply with the E.164 format.

Text

string

The text part of the message.

Responses

Note: You can find all the errors related to API in the error page

ArrivedAt

string

Timestamp indicating when the message arrived in the recipient's mailbox.

AttachmentCount

integer

Number of attachments detected for this message.

AttemptCount

integer

Number of attempts made to deliver this message.

CampaignID

integer

Unique numeric ID for the campaign this message is part of.

ContactAlt

string

The email address of the contact, to which the message was sent. Displayed only when ShowContactAlt=true.

ContactID

integer

Unique numeric ID for the contact, to which the message was sent.

Delay

number

Delay between the message being processed and it being delivered (in milliseconds).

DestinationID

integer

Unique numeric ID of the recipient email's domain.

FilterTime

integer

Time spent processing the text of the message (in milliseconds).

ID

integer

Unique numeric ID of this message.

IsClickTracked

boolean

Indicates whether clicks are tracked for this message or not.

IsHTMLPartIncluded

boolean

Indicates whether the message includes any HTML content (Html-part!=null) or not.

IsOpenTracked

boolean

Indicates whether opens are tracked for this message or not.

IsTextPartIncluded

boolean

Indicates whether the message includes a plain text part (Text-part!=null) or not.

IsUnsubTracked

boolean

Indicates whether unsubscriptions are tracked for this message or not.

MessageSize

integer

Indicates the message size (in bytes).

SenderID

integer

Unique numeric ID of the sender email address.

SpamassassinScore

number

SpamAssassin score for this message.

SpamassRules

string

Matched SpamAssassin rules.

StatePermanent

boolean

Indicates whether the current state of the message is permanent (i.e. cannot be changed anymore) or not.

Status

string

Current message status.

Possible values:

  • unknown
  • queued
  • sent
  • opened
  • clicked
  • bounce
  • spam
  • unsub
  • blocked
  • hardbounce
  • softbounce
  • deferred

Subject

string

The subject line for this message. Displayed only when ShowSubject=true.

UUID

string

Unique 128-bit ID for this message.

Note: Returns values only for accounts created after April 5th, 2018.