SMS
Arsel delivers SMS to any country where your sender name is approved. There are two paths: POST /sms/send for transactional messages to explicit numbers, and campaigns for sends to an audience defined by lists, tags and segments.
Before your first send: register a sender name
The from field is an alphanumeric sender name of 3–11 characters, not a phone number. It must be registered and approved before you can send. Arsel provisions sender names on your behalf: contact support@arsel.sa to register one. List Senders returns the names approved for your organization.
Registration is a regulatory requirement in each destination country, and approval goes through the local telecom operators, so register early. Messages sent from an unregistered name are rejected.
Promotional SMS to Saudi Arabia must come from a separate sender name ending in -AD, for example Acme-AD. Saudi operators reject promotional content from a plain sender name, which is for transactional messages such as codes and order updates. Register both if you send both, and keep the -AD name short: some operators allow only 8 characters including the suffix.
Sender names are approved per country. A name cleared for KSA can't be used for Egypt or any other country until you register it there. List Senders shows the country each approval covers.
Phone number format
Numbers must be mobile numbers in international (E.164) format, with the leading + and country code, for example +966512345678 or +201012345678. The country is detected from the number; landlines and service numbers are rejected.
Every recipient in a single POST /sms/send call must be in the same country. Mixing countries in one request is rejected. Split them into separate calls.
The cap is 100 recipients per request.
Encoding and message parts
Encoding sets how many characters fit in each billed part.
| Encoding | Triggered by | Single message | Per part when split |
|---|---|---|---|
| GSM | Latin letters, digits, common punctuation | 160 characters | 153 characters |
| Unicode | Arabic script, CJK, emoji, unusual symbols | 70 characters | 67 characters |
Encoding is detected automatically from the content, and it is all-or-nothing: one Arabic character or emoji anywhere in the message switches the entire message to Unicode and cuts your budget from 160 characters to 70.
- An Arabic message is billed in 70-character parts throughout.
- A predominantly-English message with a single decorative emoji costs more than twice what the same message costs without it. If parts matter to you, drop the emoji.
{{variable}} substitution happens before the split, so a long merged value can push a message into an extra part. Test with realistic values.
A message may run to at most 10 parts (1,530 GSM characters or 670 Unicode characters). Beyond that the send is rejected with 400 bad_request.
Sending a transactional SMS
curl -X POST "https://api.arsel.sa/v1/sms/send" \
-H "Authorization: Bearer $ARSEL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: otp-user-8821-attempt-1" \
-d '{
"from": "MyApp",
"to": ["+966512345678"],
"content": "Your verification code is {{code}}",
"variables": { "code": "482913" },
"category": "otp"
}'
202 means queued. Poll GET /sms/:id for per-recipient delivery status, which arrives asynchronously from the operator.
Use an idempotency key for OTP sends. A retried request that sends a second code invalidates the first one from the user's point of view.
Campaigns
Create a draft, attach list_ids, tag_ids or segment_ids, then send or schedule. Content supports {{variables}} resolved from contact properties, so the encoding and parts arithmetic above applies per recipient.
Every http or https link in a campaign is replaced with a short tracked link of about 20 characters, such as arsel.sa/r/Ab3dE7x, so Arsel can count clicks. A long URL with UTM parameters costs no more than a short one: count each link as 20 characters. Don't put links through a public shortener such as bit.ly first, as Saudi operators filter them. Transactional sends through POST /sms/send keep the URL exactly as you wrote it.
Delivery status
SMS delivery receipts come back from the operator and can lag the send by seconds to minutes. A message that still shows as queued or sent has not necessarily failed; it may not have been reported on yet.
An "undelivered" marketing message often means the recipient has registered a do-not-disturb preference with their operator. DND does not affect transactional traffic.
Reference
| Send SMS · List · Get | Transactional endpoints |
| Campaigns | Create, update, send, cancel, delete |
| List Senders | The sender names approved for your organization |