Developers

Technical details for your engineers.

SMPP and HTTP for SMS, SIP for voice, and REST APIs with one auth scheme, one error format and signed webhooks for messaging, fintech and AI.

Full API reference available to sandbox users.

export SBT_API_KEY=sbt_test_••••curl https://api.sbtpty.com/v1/balance -H "Authorization: Bearer $SBT_API_KEY"{ "currency": "USD", "available": 25.00, "mode": "test" }

Quickstart.

  1. Get your test key

    Request sandbox access. You'll receive a test key that starts with sbt_test_.

  2. Make a test call to the API

    Call any product endpoint with your key in the Authorization header.

  3. Receive a webhook

    Add your endpoint URL in the console and verify the signature on each event.

API surface.

All endpoints live under https://api.sbtpty.com/v1. Examples shown; the full reference comes with sandbox access.

MethodEndpointWhat it does
Messaging
POST/v1/messagesSend SMS, RCS or WhatsApp
GET/v1/messages/{id}Get message status
POST/v1/verifyStart a verification
POST/v1/verify/{id}/checkCheck a code
GET/v1/lookup/{number}Number validity, type and operator
Fintech
GET/v1/topups/productsList top-up products for a number
POST/v1/topupsSend a top-up
POST/v1/codes/ordersBuy a PIN or gift card
POST/v1/payments/linksCreate a payment link
POST/v1/esimsIssue an eSIM
AI & account
POST/v1/ai/completionsCall an AI model
GET/v1/balanceGet account or sub-account balance

Code samples.

POST/v1/messages
Example
# Send an SMS
curl https://api.sbtpty.com/v1/messages \
  -H "Authorization: Bearer $SBT_API_KEY" \
  -H "Idempotency-Key: 6f1c2b7e" \
  -H "Content-Type: application/json" \
  -d '{ "channel": "sms", "from": "SBTDEMO", "to": "+50760000000", "text": "Your code is 482915" }'

REST, SMPP and webhooks.

  • REST

    JSON over HTTPS for every product. Versioned under /v1.

  • SMPP

    SMPP v3.4 for high-volume messaging, with TLS on request and DLRs by deliver_sm.

  • Webhooks

    HTTPS POST for every status change, signed with HMAC-SHA256.

SIP interconnection

SMPP connection details
HostProvided at onboarding
PortProvided at onboarding
TLS portProvided at onboarding
system_idProvided at onboarding
passwordProvided at onboarding
Bind typesProvided at onboarding

Webhook events.

Each event includes a type, an ID, a timestamp and the related object. We sign every request in the SBT-Signature header and retry with backoff if your endpoint doesn't answer with a 2xx.

EventWhen it fires
message.deliveredA message reached the handset
message.failedA message could not be delivered
message.receivedA customer replied (MO)
verify.approvedA code was checked successfully
verify.blockedPumpGuard blocked a request
topup.completedA top-up was applied
code.deliveredA PIN or gift card was issued
payment.succeededA payment was captured
esim.activatedAn eSIM was installed and activated
tokens.threshold_reachedA sub-account hit an alert threshold
balance.lowBalance fell below your alert level

Auth and security.

  • Bearer API keys, separate for test and live
  • Keys per sub-account, with optional scopes per product
  • IP allowlisting for API and SMPP
  • HMAC-signed webhooks
  • Idempotency-Key header on every POST
  • TLS everywhere

A sandbox that behaves like production.

Same endpoints, same responses, same webhooks. Use test numbers to simulate delivered, failed and replied messages, test phone numbers for top-ups and test credits for AI.

  • Magic numbers for every status
  • Test credits included
  • Switch to live by swapping your key
Get sandbox keys

Conventions.

Errors
Every error returns an HTTP status and a JSON body with a stable code and a readable message.
Pagination
Cursor-based, with limit and starting_after.
Rate limits
Set per account and returned in response headers.
Versioning
Breaking changes ship as a new version. /v1 stays stable.
Error responseExample
{
  "error": {
    "code": "insufficient_balance",
    "message": "Your balance is too low for this request.",
    "request_id": "req_93Hf"
  }
}

Developer FAQ.

Not seeing your question? info@sbtpty.com

01Is there an SDK?

Our API is plain REST and JSON, so any HTTP client works. Copy-ready samples cover cURL, Node.js, Python and PHP.

02Can I use SMPP and REST on the same account?

Yes. Both share your balance, reports and webhooks.

03How do I test inbound SMS?

In the sandbox, send a request to a test number set to reply, and you'll receive a message.received webhook.

04How do I move to production?

Complete business verification, fund your balance or activate partner terms, then replace your test key with a live key.

Need credentials or a technical call?

Tell us how you want to connect: SMPP, HTTP, SIP or REST.