List Senders
Retrieve a paginated list of your organization's approved SMS sender names. Use a sender_name as the from of an SMS.
Sender names are registered in the Arsel Dashboard under Settings > SMS Senders. Senders that are awaiting approval or were rejected are not returned.
Endpoint
GET /sms/senders
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <your-api-key> | Yes |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Items per page (min: 1, max: 100) |
after | string | — | Cursor — return items after this id (exclusive). |
before | string | — | Cursor — 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",
"sender_name": "AcmeStore",
"country": "KSA",
"purposes": ["transactional", "marketing"],
"created_at": "2026-03-01T10:00:00.000Z"
},
{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6b",
"sender_name": "AcmeOTP",
"country": "Egypt",
"purposes": ["transactional"],
"created_at": "2026-02-15T08:00:00.000Z"
}
]
}
Sender fields
| Field | Type | Description |
|---|---|---|
id | string | The sender ID |
sender_name | string | The value to pass as from when sending SMS |
country | string | The country the sender is approved to send to: KSA, Egypt, Bahrain, Iraq, Jordan, Kuwait, Oman, Qatar, UAE, Yemen or Turkey |
purposes | string[] | What the sender is registered for: transactional, marketing, or both |
created_at | string | When the sender was added (ISO 8601) |
Match the sender to the message
SMS campaigns need a sender whose purposes include marketing. Messages sent through POST /sms/send need transactional. A sender only reaches numbers in its own country.
Examples
- cURL
- JavaScript
- Python
- C#
- PHP
curl "https://api.arsel.sa/v1/sms/senders" \
-H "Authorization: Bearer be_your_api_key"
const response = await fetch(
"https://api.arsel.sa/v1/sms/senders",
{
headers: { Authorization: "Bearer be_your_api_key" },
}
);
const { data } = await response.json();
const marketing = data.filter((sender) => sender.purposes.includes("marketing"));
console.log(marketing.map((sender) => `${sender.sender_name} (${sender.country})`));
import requests
response = requests.get(
"https://api.arsel.sa/v1/sms/senders",
headers={"Authorization": "Bearer be_your_api_key"},
)
senders = response.json()["data"]
for sender in senders:
if "marketing" in sender["purposes"]:
print(sender["sender_name"], sender["country"])
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer be_your_api_key");
var response = await client.GetAsync("https://api.arsel.sa/v1/sms/senders");
Console.WriteLine(await response.Content.ReadAsStringAsync());
<?php
$ch = curl_init("https://api.arsel.sa/v1/sms/senders");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer be_your_api_key"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
echo $response;
curl_close($ch);
Error Responses
- 401 Unauthorized
{
"status_code": 401,
"name": "unauthorized",
"message": "Invalid or missing API key"
}