Messages soon

SMS Messages are resources that are created from a single SMS API request.

Get a list of SMS messages

Get a list of SMS messages information with this GET request:

Request

GET https://api.mailersend.com/v1/sms-messages
1

Request parameters

Query parameterTypeRequiredLimitationsDetails
pageintno
limitintnoMin: 10, Max: 100Default: 25

Responses

Valid

Response Code: 200 OK
Response Headers:
	Content-Type: application/json
1
2
3
{
  "data": [
    {
      "id": "6203a0cc00033b7d341d0f52",
      "from": "+19191234567",
      "to": [
        "+19199876543"
      ],
      "text": "Hello world",
      "paused": false,
      "created_at": "2022-01-01T12:00:00.000000Z"
    },
    ...
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Error

Response Code: 422 Unprocessable Entity
1

See - Validations errors

Get an SMS message

Overview

Get a single SMS message.

Request

GET https://api.mailersend.com/v1/sms-messages/{sms_message_id}
1

Request parameters

URL parameterTypeRequiredLimitationsDetails
sms_message_idstringyes

Responses

Valid

Response keyTypeDetails
data.sms.*object[]Will include sms data, if it has been created in the database.
Response Code: 200 OK
Response Headers:
	Content-Type: application/json
1
2
3
{
  "data": {
    "id": "6203a0cc00033b7d341d0f52",
    "from": "+19191234567",
    "to": [
      "+19199876543
    ],
    "text": "Hello world",
    "paused": false,
    "created_at": "2022-01-01T12:00:00.000000Z",
    "sms": [
      {
        "id": "6203a0cfcb5a4b688a7868a2",
        "from": "+19191234567",
        "to": "+19199876543",
        "text": "Hello world",
        "status": "delivered",
        "segment_count": 1,
        "error_type": null,
        "error_description": null
      }
    ]
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

Error

Response Code: 404 Not Found
1
Last Updated: