Skip to main content

List SMS

Retrieve a paginated list of transactional SMS messages sent by your organization, each with an aggregate per-status count.

Endpoint

GET /sms

Query Parameters

ParameterTypeDefaultDescription
limitnumber20Items per page (min: 1, max: 100)
afterstringCursor — return items after this id (exclusive).
beforestringCursor — return items before this id (exclusive).

Results are returned newest first. See Pagination for cursor details.

Response

{
"object": "list",
"has_more": false,
"data": [
{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"from": "Arsel",
"content": "Your verification code is 483920.",
"country": "KSA",
"message_parts": 1,
"category": "verification",
"status": {
"sent": 1,
"delivered": 1,
"undelivered": 0,
"blocked": 0,
"rejected": 0
},
"created_at": "2026-03-08T12:00:00.000Z"
}
]
}

Response Fields

FieldDescription
fromSender name
contentMessage body. Returns null if content has been purged.
countryRecipient country: KSA or Egypt
message_partsNumber of SMS parts the message was split into
categoryAnalytics category label, if provided

Status Fields

FieldDescription
sentMessages submitted to the carrier
deliveredMessages confirmed delivered to the handset
undeliveredDelivery failed (phone off, invalid number)
blockedBlocked by the carrier or regulatory filter
rejectedRejected before delivery attempt

Examples

curl "https://api.arsel.sa/v1/sms?limit=10" \
-H "Authorization: Bearer be_your_api_key"