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
| Header | Type | Description |
|---|---|---|
| X-API-Key | string | Your Rasel API key. Send it on every documented request except inbound webhooks. * |
| Idempotency-Key | string | Optional 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
| Field | Type | Description | Example |
|---|---|---|---|
| api_token | string | Rasel API key. Required unless X-API-Key is sent. | |
| phone | string | Account or contact phone in international format. * | |
| message | string | Human-readable result message from create or upload. * | |
| country_code | string | Default SY. SY, SYR, 963, and +963 are accepted. | |
| sender_id | string | Approved SMS sender id or sender name. When omitted or blank, the account default then the platform sender is used. |
Response Fields
| Field | Type | Description | Example |
|---|---|---|---|
| success | boolean | True when the operation succeeded, or when at least one batch recipient succeeded. | |
| message | string | Human-readable result message from create or upload. | |
| id | string | Resource identifier. | |
| requestId | string | Server-generated request identifier for tracing and support. | |
| resolved | json | Resolved channel, provider, and sender source after routing. | |
| billing | json | Estimated cost and currency for the send. | |
| tracking | json | Provider and internal tracking identifiers, including per-channel deliveries on fan-out. |
Status Codes
| Status | Description |
|---|---|
| 200 | Success. |
| 400 | Invalid request, validation error, or the resource cannot be used in this state. |
| 401 | Missing or invalid API key. |
| 402 | Insufficient wallet balance or plan quota. |
| 403 | Phone not verified, missing permission, or the account cannot perform this action. |
| 409 | Conflict, such as an idempotency key reuse with a different body, or a session that is not ready. |
| 413 | Request body exceeds the size limit. |
| 415 | Unsupported content type. |
| 429 | Rate limit exceeded, or the maximum number of verification attempts was reached. |
| 502 | The 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.