Sendora Developer API
The Sendora REST API gives developers direct programmatic control over high-throughput SMS delivery, sub-second 2FA OTP codes, balance checks, scheduled broadcast drops, and automated two-way STOP opt-out compliance.
https://api.sendora.com/api/v1Authentication
Authenticate all requests by including your secret API key in the HTTP request headers. Sendora supports both the standard Authorization: Bearer <API_KEY> header and the custom api-key: <API_KEY> header.
Dispatch an SMS message immediately or schedule it for a future timestamp.
curl -X POST https://sendora.selamate.com/api/v1/send \
-H "Authorization: Bearer sk_live_sendora_9f82d1c7e4a10" \
-H "Content-Type: application/json" \
-d '{
"to": "+233241234567",
"body": "Your Sendora verification OTP is 849201. Valid for 10 minutes.",
"from": "MYBRAND"
}'Request Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| to | string | Required | Destination phone number in international E.164 format (e.g. +233241234567) or local format (0241234567). |
| body | string | Required | The text message content. Automatically segmented based on GSM-7 (160 chars) or Unicode (70 chars). |
| from | string | Optional | Alphanumeric Sender ID (up to 11 characters, e.g. Sendora). Defaults to your verified organization Sender ID. |
| schedule | string | Optional | ISO 8601 timestamp (e.g. 2026-10-20T10:00:00Z) for future scheduled delivery. |
| reference | string | Optional | Your custom client ID or transaction reference (e.g. ORDER_98124). Returned in all responses and DLR webhooks for automated ledger reconciliation. |
| callback_url | string | Optional | Per-message delivery receipt (DLR) HTTP webhook endpoint. Overrides your workspace default webhook. |
Sample 200 OK Response
{
"id": "msg_1729000182_a8f9",
"direction": "outbound",
"from": "Sendora",
"to": "+233241234567",
"status": "queued",
"dlr_status": "QUEUED",
"status_endpoint": "/api/v1/messages/msg_1729000182_a8f9",
"segments": 1,
"cost_ghs": 0.048,
"currency": "GHS",
"created_at": "2026-11-23 01:05:00"
}- USA & Canada (+1): Alphanumeric text Sender IDs are prohibited by North American carriers. Your organization must hold an active US or Canadian Virtual Number (via
POST /api/v1/numbers/orderor the Dashboard); Sendora automatically routes your +1 SMS from your leased number. - UK, Europe & Dynamic Markets: Text Sender IDs are automatically associated with your messaging profile on first send — zero manual pre-registration required.
- Ghana & Strict Pre-Registration Markets (Iraq, UAE, Saudi Arabia, Egypt, India): Register your custom Sender ID via
POST /api/v1/sender-ids(includetarget_countryfor strict international destinations) or lease a dedicated Virtual Number to send immediately.
/api/v1/sender-idsSender ID Registration & Status API
Programmatically register custom alphanumeric Sender IDs (3–11 chars, exact capitalization preserved) and poll live carrier approval status using your Master API Key (sn_live_sendora_...) or SMS API Key (sk_live_sendora_...).
curl -X POST https://sendora.selamate.com/api/v1/sender-ids \
-H "Authorization: Bearer sn_live_sendora_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"sender_id": "MyBrand",
"organization_type": "Company",
"company_name": "MyBrand Technologies Ltd",
"description": "Sending transactional alerts, order updates, and one-time verification codes to registered customers.",
"target_country": "GH"
}'curl -X GET "https://sendora.selamate.com/api/v1/sender-ids?sender_id=MyBrand&sync=true" \
-H "Authorization: Bearer sn_live_sendora_YOUR_KEY"
# Response:
{
"success": true,
"count": 1,
"data": [
{
"id": "sv_api_17960...",
"sender_id": "MyBrand",
"status": "approved",
"rejection_reason": null
}
]
}- Format: 3–11 characters (
A–Z,a–z,0–9, spaces, hyphens-, and dots.). Exact casing is preserved. Purely numeric Sender IDs are rejected. - Required Fields:
descriptionmust be at least 50 characters;company_nameis required whenorganization_typeisCompanyorGroup. - Strict International Countries: Pass
target_country(e.g."IQ","AE","SA") to request manual country-specific registration, or lease a dedicated Virtual Number (POST /api/v1/numbers/order) to deliver immediately. - Restricted Brand / Financial Keywords: Keywords such as
PAY,BANK,LOAN,CASH, orMOMOrequire manual LOA verification via[email protected].
Query your remaining prepaid wallet balance and estimated SMS units.
curl -X GET https://sendora.selamate.com/api/v1/balance \ -H "Authorization: Bearer sk_live_sendora_9f82d1c7e4a10"
Sample 200 OK Response
{
"status": "success",
"data": {
"currency": "GHS",
"currency_symbol": "GH₵",
"balance_ghs": 2450.50,
"sms_units_remaining": 30631,
"plan": "Pay-As-You-Go",
"rates": {
"mtn": 0.0800,
"telecel": 0.0800,
"airteltigo": 0.0800,
"international": 0.3500
}
}
}Inbound SMS & TCPA Opt-Out Webhook
Sendora automatically listens for inbound recipient replies and handles TCPA opt-out compliance. When a customer replies with STOP, CANCEL, or UNSUBSCRIBE, our system automatically adds them to your suppression list and triggers an inbound webhook.
{
"event": "sms.received",
"from": "+233241234567",
"to": "Sendora",
"body": "STOP",
"action_taken": "opted_out",
"timestamp": "2026-10-16T23:18:22Z"
}Integrating Sendora as an Upstream SMS Gateway / Aggregator
Connect your external Bulk SMS portal, SaaS platform, or mobile app directly to Sendora. Sendora acts as your wholesale telecom aggregator with automated delivery receipt callbacks.
Gateway Connection Endpoints
Universal SMS Gateway Compatibility
If your software currently connects to standard SMS gateways, you do not need to rewrite your code. Sendora natively accepts universal gateway parameters and headers:
Sample Reseller JSON Payload
// POST https://sendora.selamate.com/api/v1/send
// Headers: "api-key: YOUR_SENDORA_KEY", "Content-Type: application/json"
{
"sender": "MYBRAND",
"recipients": ["+233241234567", "+233501234567"],
"message": "Your verification code is 982144. Do not share this code.",
"reference": "ORDER_TX_8921",
"callback_url": "https://your-platform.com/api/webhooks/sendora-dlr"
}Outbound Delivery Receipts (DLR) Webhook Reference
Sendora automatically pushes delivery reports back to your external server when carrier networks confirm delivery or report failures.
HTTP Request Headers Dispatched by Sendora
| Header Name | Description |
|---|---|
| X-Sendora-Event | The event type: message.delivered or message.failed. |
| X-Sendora-Signature | HMAC-SHA256 signature in format sha256=<hash> computed over the raw JSON payload using your webhook secret. |
| X-Sendora-Delivery-Id | Unique UUID for this delivery attempt for idempotency deduplication. |
DLR Webhook JSON Payload
{
"event": "message.delivered",
"timestamp": "2026-11-17T14:15:00.000Z",
"data": {
"id": "msg_1729000182_a8f9",
"reference": "ORDER_TX_8921",
"client_reference": "ORDER_TX_8921",
"recipient": "+233241234567",
"sender": "MYBRAND",
"status": "delivered",
"segments": 1,
"cost_ghs": 0.034,
"currency": "GHS",
"delivered_at": "2026-11-17T14:15:00.000Z",
"error_code": null,
"error_message": null
}
}HMAC Signature Verification (Node.js Example)
const crypto = require("crypto");
function verifySendoraSignature(rawBody, signatureHeader, secret) {
const hash = crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
const expectedSignature = `sha256=${hash}`;
return crypto.timingSafeEqual(Buffer.from(signatureHeader), Buffer.from(expectedSignature));
}Messages initially return queued or sent when submitted to the carrier. Poll this endpoint anytime to get the live, carrier-verified delivery report (delivered, rejected, undelivered, or failed).
curl -X GET https://sendora.selamate.com/api/v1/messages/msg_1729000182_a8f9 \
-H "Authorization: Bearer sk_live_YOUR_API_KEY"
# Response
{
"status": "success",
"code": "1000",
"data": {
"id": "msg_1729000182_a8f9",
"status": "delivered",
"dlr_status": "DELIVERED",
"error_code": null,
"error_message": null,
"cost_ghs": 0.048,
"delivered_at": "2026-11-22 22:45:12"
}
}Virtual Numbers & Reseller Auto-Provisioning
Integrate virtual numbers directly into your own website or app. Keep funds in your Sendora Cash Wallet — whenever a customer buys a number on your site, your backend calls our API, Sendora automatically deducts from your wallet, provisions the live number, and returns it to you immediately to display to your customer.
Pass country_code alone (e.g. "US", "GB", "CA") to auto-assign the next available number, or pass a specific phone_number from GET /api/v1/numbers/available.
// Node.js — Automatic deduction & provisioning when customer buys on your site
const res = await fetch("https://sendora.selamate.com/api/v1/numbers/order", {
method: "POST",
headers: {
"Authorization": "Bearer sk_live_YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
country_code: "US",
friendly_name: "Customer #1042",
webhook_url: "https://yoursite.com/api/receive-sms"
})
});
const result = await res.json();
// result.data.phoneNumber -> "+14155550123" (Give this to your customer!)
// result.data.balanceRemainingGhs -> Updated wallet balance after auto-deductionSearch live available phone numbers by country ISO code (US, GB, CA, DE, FR, etc.).
curl -X GET "https://sendora.selamate.com/api/v1/numbers/available?country=US" \ -H "Authorization: Bearer sk_live_YOUR_API_KEY"
List all active virtual numbers on your account (GET) or update a number's webhook_url / friendly_name (PATCH).
# List active numbers
curl -X GET "https://sendora.selamate.com/api/v1/numbers" \
-H "Authorization: Bearer sk_live_YOUR_API_KEY"
# Update webhook_url for a number
curl -X PATCH "https://sendora.selamate.com/api/v1/numbers" \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "id": "vn_...", "webhook_url": "https://yoursite.com/new-webhook" }'Fetch inbound SMS/OTPs received on a provisioned virtual number (in addition to real-time push to your webhook_url).
curl -X GET "https://sendora.selamate.com/api/v1/numbers/messages?phone_number=%2B14155550123" \ -H "Authorization: Bearer sk_live_YOUR_API_KEY"
Inbound Virtual Number Webhook (sms.inbound)
Whenever anyone texts your virtual number, Sendora sends a signed POST request to your configured webhook_url with X-Sendora-Signature:
{
"event": "sms.inbound",
"timestamp": "2026-11-22T22:45:00.000Z",
"data": {
"id": "msg_in_1795...",
"from": "+14155559999",
"to": "+14155550123",
"message": "Your verification code is 482910",
"received_at": "2026-11-22T22:45:00.000Z"
}
}OTP Generation & Verification API
Send mission-critical authentication codes over dedicated priority SS7 carrier routes that bypass bulk promotional queues. Deducts directly from your unified wallet balance (GH₵ 0.060 / OTP).
curl -X POST "https://sendora.selamate.com/api/v1/otp/generate" \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "+233241234567",
"sender_id": "MyBrand",
"message": "Your verification code is %otp_code%. Valid for 5 minutes.",
"length": 6,
"expiry": 5,
"type": "numeric"
}'curl -X POST "https://sendora.selamate.com/api/v1/otp/verify" \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "+233241234567",
"code": "489201"
}'
# Response (200 OK): { "status": "success", "code": "1000", "data": { "verified": true } }HTTP Status Codes & Errors
The Sendora API uses standard HTTP response codes to indicate success or failure.
| Status Code | Meaning | Remediation |
|---|---|---|
| 200 OK | Success | Request processed successfully. |
| 400 Bad Request | Missing Parameters | Ensure to and body are present in JSON body. |
| 401 Unauthorized | Invalid API Key | Check that your Authorization: Bearer token is active. |
| 402 Payment Required | Insufficient Wallet Credits | Top up your wallet via Paystack or GHIPSS Bank Transfer. |
| 429 Too Many Requests | Rate Limited | Exceeded 100 req/sec quota. Implement exponential backoff. |
Ready to integrate Sendora into your application?
Generate free developer API keys in seconds, top up with pure Pay-As-You-Go pricing, and enjoy 99.98% delivery SLA across West Africa and globally.