GET/api/v2/sms-senders
List SMS sender names
Sender names for the account. Use approvedOnly=true before sending via /api/v2/messages/send.
When to use it. Pick sender.id for a send request.
Code example
Correct: Approved only
curl --request GET 'https://raselsms.com/api/v2/sms-senders?approvedOnly=true' \--header 'X-API-Key: YOUR_API_KEY'Response example
200 — Approved only
{ "success": true, "data": { "smsSenders": [ { "id": "6800abc123def4567890fedc", "name": "MyBrand", "status": "approved", "isDefault": true, "reviewNote": null } ] }}HTTP request
GET /api/v2/sms-senders
Request Headers
| Header | Type | Description |
|---|---|---|
| X-API-Key | string | Your Rasel API key. Send it on every documented request except inbound webhooks. * |
Query parameters
| Field | Type | Description |
|---|---|---|
| approvedOnly | boolean | When true, only approved (and for official senders, enabled) rows are returned. |
Response Fields
| Field | Type | Description | Example |
|---|---|---|---|
| success | boolean | True when the operation succeeded, or when at least one batch recipient succeeded. | |
| data | object | Primary payload for list and snapshot endpoints. | |
| data.smsSenders | json | Approved SMS sender names on this account. |
Status Codes
| Status | Description |
|---|---|
| 200 | Success. |
| 401 | Missing or invalid API key. |
| 403 | Phone not verified, missing permission, or the account cannot perform this action. |
| 429 | Rate limit exceeded, or the maximum number of verification attempts was reached. |
| 413 | Request body exceeds the size limit. |
Try it
Parameters
When true, only approved (and for official senders, enabled) rows are returned.
Request
GET /api/v2/sms-sendersResponse
Example response
{ "success": true, "data": { "smsSenders": [ { "id": "6800abc123def4567890fedc", "name": "MyBrand", "status": "approved", "isDefault": true, "reviewNote": null } ] }}