Auto
EN
POST/api/messages/sas/send

Send Syria SMS in SAS Radius body format

An administrator must enable SAS Radius for the account. Send phone and message, with api_token for body authentication. country_code defaults to SY. JSON and application/x-www-form-urlencoded bodies are limited to 64 KiB. Optional sender_id selects an approved SMS sender.

When to use it. When the template stays inside SAS and Rasel receives only the final text for Syrian mobiles.

Code example

Correct: SAS compatibility send

curl --request POST 'https://raselsms.com/api/messages/sas/send' \--header 'X-API-Key: YOUR_API_KEY' \--header 'Content-Type: application/json' \--data '{"api_token":"YOUR_API_KEY","phone":"+963912345678","message":"رسالة تفعيل اشتراك: مرحبا","country_code":"SY"}'

Response example

200 — SAS compatibility send

{  "success": true,  "message": "sent",  "id": "6800msg123def4567890aaaa",  "requestId": "msgreq_1739012345678_abc123"}

HTTP request

POST /api/messages/sas/send

Request Headers

HeaderTypeDescription
X-API-KeystringYour Rasel API key. Send it on every documented request except inbound webhooks. *
Idempotency-KeystringOptional unique key for safe retries. Takes precedence over a body idempotencyKey. Successful and failed responses can be replayed for 24 hours when send idempotency is enabled.

Request body

FieldTypeDescriptionExample
api_tokenstringRasel API key. Required unless X-API-Key is sent.
phonestringAccount or contact phone in international format. *
messagestringHuman-readable result message from create or upload. *
country_codestringDefault SY. SY, SYR, 963, and +963 are accepted.
sender_idstringApproved SMS sender id or sender name. When omitted or blank, the account default then the platform sender is used.

Response Fields

FieldTypeDescriptionExample
successbooleanTrue when the operation succeeded, or when at least one batch recipient succeeded.
messagestringHuman-readable result message from create or upload.
idstringResource identifier.
requestIdstringServer-generated request identifier for tracing and support.
resolvedjsonResolved channel, provider, and sender source after routing.
billingjsonEstimated cost and currency for the send.
trackingjsonProvider and internal tracking identifiers, including per-channel deliveries on fan-out.

Status Codes

StatusDescription
200Success.
400Invalid request, validation error, or the resource cannot be used in this state.
401Missing or invalid API key.
402Insufficient wallet balance or plan quota.
403Phone not verified, missing permission, or the account cannot perform this action.
409Conflict, such as an idempotency key reuse with a different body, or a session that is not ready.
413Request body exceeds the size limit.
415Unsupported content type.
429Rate limit exceeded, or the maximum number of verification attempts was reached.
502The external provider failed to process the request.

Try it

This is an inbound webhook. Rasel sends it to your URL — you cannot call it from here.