SMS Messages

After sending an SMS via the Send SMS API, a new sms object is created. Use the resources below to retrieve details about sent SMS messages, as well as export the info you need to a CSV file.

post

Request an export of SMS messages

post

/sms/export

Create an export request that will generate a CSV file with SMS messages. This operation is asynchronous. Use [`GET /sms/export/{Job_ID}`](https://dev.mailjet.com/reference/sms/sms-messages/#v4_get_sms_export_Job_ID) to check the export status and ultimately download your document.

Full API path

https://api.mailjet.com/v4/sms/export

Body parameters

FromTS

integer

Timestamp indicating the start of the allowed period for message creation for this export.

ToTS

integer

Timestamp indicating the end of the allowed period for message creation for this export.

Responses

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

ID

integer

Export Request Job ID. Used to track the progress of the export request at GET /sms/export/{Job_ID}.

URL

string

URL, where you can retrieve the exported data.

Status

Code

integer

The numeric code indicating the export status. More information

Name

string

The short name for the export status.

Description

string

Description of the export status.

CreationTS

integer

Timestamp indicating when the export document was created.

ExpirationTS

integer

Timestamp indicating when the export document will be deleted. This will be 7 days after the creation timestamp.