Skip to main content

Get SMS

Retrieve an SMS with its delivery status per recipient.

Endpoint​

GET /sms/:id

Returns: 200 OK

Path Parameters​

ParameterTypeDescription
idstringThe SMS ID returned from POST /sms/send

Response​

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"from": "Arsel",
"to": [
{
"phone": "+966512345678",
"status": "delivered",
"timestamp": "2026-03-08T12:00:03.000Z"
},
{
"phone": "+966598765432",
"status": "sent",
"timestamp": null
}
],
"content": "Your verification code is 483920.",
"country": "KSA",
"message_parts": 1,
"category": "verification",
"created_at": "2026-03-08T12:00:00.000Z"
}
caution

content is returned verbatim, so anyone holding an API key for the organization can read past OTP codes. Don't treat a sent code as secret from your own API key holders, and keep codes short-lived.

Recipient Status Values​

StatusDescription
in_progressMessage is being processed
sentSubmitted to the carrier, awaiting delivery confirmation
deliveredConfirmed delivered to the recipient's handset
undeliveredDelivery failed (phone powered off, invalid number, etc.)
bufferedQueued by the carrier for later delivery
blockedBlocked by the carrier or a regulatory filter
rejectedRejected before delivery attempt
expiredDelivery window expired before the message could be delivered
clickedRecipient clicked a tracked link in the message
unknownDelivery status could not be determined
failedThe SMS provider refused the recipient at submission; nothing was sent

Examples​

curl "https://api.arsel.sa/v1/sms/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer $ARSEL_API_KEY"

Error Responses​

{
"status_code": 404,
"name": "not_found",
"message": "SMS not found"
}