Satnexa
Services Pricing How it works Developers Coverage Guides FAQ
Log in Create account
Satnexa

API documentation

Base URL: https://satnexa.com. All requests and responses are JSON. The API uses the same account balance, sender-name rules and segment pricing as the web console: 1 credit per SMS segment, charged only for messages the network accepts.

Authentication

Create an API key in the API section of your dashboard. The full key is shown once — store it safely; only a hash is kept on our side. Send it as a Bearer token:

Authorization: Bearer sx_live_…

You can revoke a key at any time from the same place; revocation takes effect immediately.

Check your balance

GET /api/v1/balance

curl https://satnexa.com/api/v1/balance \
  -H "Authorization: Bearer sx_live_…"

→ { "ok": true, "balance": 1240, "email": "you@company.com" }

Send SMS

POST /api/v1/send
{
  "to": ["212612345678", "33612345678"],   // 1–100 numbers, digits with country code
  "from": "MyShop",                        // sender name: letters/digits, max 11 chars
  "message": "Your order is on its way."
}

curl https://satnexa.com/api/v1/send \
  -H "Authorization: Bearer sx_live_…" \
  -H "Content-Type: application/json" \
  -d '{"to":["212612345678"],"from":"MyShop","message":"Hello!"}'

→ { "ok": true, "sent": 1, "failed": 0, "spent": 1, "balance": 1239,
    "results": [{ "to": "212612345678", "status": "sent", "error": null }] }

Long messages are split into segments automatically (160 GSM characters, or 70 for Unicode, per segment). Failed sends are not charged and appear in results with an error description. Every API send is visible in your dashboard delivery reports.

OTP Verify — phone verification for your app

Two calls add phone-number verification to your own product. Each verification costs the SMS segments it sends (a standard code message is 1 segment).

POST /api/v1/verify/send
{ "phone": "212612345678" }

→ { "ok": true, "phone": "212612345678", "expires_in": 600, "cost": 1, "balance": 1238 }

POST /api/v1/verify/check
{ "phone": "212612345678", "code": "483920" }

→ { "ok": true, "valid": true }

Codes are 6 digits, valid for 10 minutes, and allow 4 check attempts: after the 4th wrong code, checks for that number lock for 1 hour. A successful check consumes the code. When a code is wrong, expired, locked or already used, valid is false with a reason of mismatch, expired, too_many_attempts, locked or no_active_code; a wrong code also returns attempts_left. Asking for a new code while a lock is active returns HTTP 429 with verify_locked.

Errors

HTTPerrorMeaning
401invalid_api_keyMissing, unknown or revoked API key.
400invalid_payload / invalid_sender / invalid_recipients / invalid_messageCheck the field named by the error. Sender: letters/digits, max 11. Numbers: 7–15 digits with country code.
402insufficient_balanceYour balance does not cover the send. The response includes balance and the required cost.
429rate_limited / verify_lockedToo many requests — slow down and retry; or verification checks are locked for this number for 1 hour.
502send_failedThe network refused the message (Verify send). You are not charged.

Limits

Up to 100 recipients per API send call. Console sends are limited to 20 recipients; campaigns reach up to 500 contacts per list. Only message people who agreed to receive your messages.

Questions: support@satnexa.com.

Satnexa

Business SMS with your own sender name. Prepaid credits, priced in US dollars — no subscription, no commitment.

Product

PricingCoverageSMS costsAPI documentationService statusBlog & guides

Use cases

ClinicsE-commerceSchoolsCar rental

Support

support@satnexa.comcontact@satnexa.comTerms of servicePrivacy policy
© 2026 Satnexa. Prices in US dollars (USD); bank transfers are made in dirhams at the exact amount shown at checkout. You are responsible for messaging only people who consented to receive your SMS.