REST API + real-time webhooks
Automate everything with the API
Create orders, fetch codes and receive events at your endpoint. One API key per account, no expiry, with IP whitelist and signed webhooks.
Authentication
Send your key on every request, as a Bearer header or X-Api-Key. Manage it from the Developers panel. The api-key GET shows metadata (prefix, status, webhook); the sk key is shown only once when you rotate it.
Authorization: Api-Key sk_live_...
X-Api-Key: sk_live_...
Real-time webhooks
When an API-created order finishes, we POST your webhook_url with an HMAC-SHA256 signature (X-Webhook-Signature header) and an X-Webhook-Event: order.completed (or canceled, failed) event. Every terminal change notifies once (a rental reports completed on activation and failed on expiry). With the message opt-in you also get order.message per SMS (with the provider raw payload).
Verify the signature over the raw bytes
The HMAC is hex of SHA256(secret, exact body). Do not re-serialize the JSON: verify over the received body and compare with compare_digest. No timestamp: treat each event as idempotent by order_number.
Node: createHmac('sha256', secret).update(rawBody).digest('hex')
Python: hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
V2 signature with anti-replay
We also send X-Webhook-Timestamp (unix, seconds) and X-Webhook-Signature-V2 = hex(hmac(secret, timestamp.body)). Reject beyond 5 min skew and verify with compare_digest; V1 is kept for compatibility.
Your receiver obligations
Answer 2xx within 5 seconds, no redirects. We retry at 1m, 3m, 8m, 15m and 30m on outages or 5xx (429 with Retry-After is honored); 4xx never retry. We send at most 5/s per destination. Test your endpoint with the panel Test webhook button.
Integrate in 3 steps
01 / 03
1. Buy with service_id
Pick the service from GET services and buy with the POST of that type. Save order_number from the response: it goes in paths and is your reference for support and webhooks.
02 / 03
2. Track the status
Use check to poll the live status (SMS code, eSIM QR) and messages for history. List with service_type and status.
03 / 03
3. Manage and automate
Cancel, reuse, extend or toggle auto_renew depending on the type. Set webhook_url to receive order.completed, order.canceled or order.failed on finish.
Core endpoints
The API-key core under /api/v1/. Creating is POST per type; filtering is query. The full schema lives in Swagger.
Account
- GET
/api/v1/me/Profile with wallet balance
- GET
/api/v1/me/api-key/Your API key metadata (no sk key)
Catalog
- GET
/api/v1/services/temporary-sms/OTP catalog: App × Country combos
- GET
/api/v1/services/rented-numbers/Rental catalog: services with durations
- GET
/api/v1/services/dedicated-numbers/Dedicated numbers catalog
- GET
/api/v1/services/esims/eSIM catalog
- GET
/api/v1/services/rented-numbers/?country_code=ESFilter rentals by country (durations with price)
- GET
/api/v1/services/rented-numbers/<id>/Rental detail with its available durations
- GET
/api/v1/services/esims/<id>/Single service detail
Buy
- POST
/api/v1/orders/temporary-sms/Buy a temporary SMS (optional quantity, max_price and strategy)
{"service_id": 128, "quantity": 1} - POST
/api/v1/orders/rented-numbers/Rent a number (duration: 3d, 7d, 14d, 30d)
{"service_id": 5, "duration": "30d"} - POST
/api/v1/orders/dedicated-numbers/Buy a dedicated number (duration if tiered, optional auto_renew)
{"service_id": 5, "duration": "30d"} - POST
/api/v1/orders/esims/Buy an eSIM profile (QR provisioning)
{"service_id": 9}
Track and manage
- GET
/api/v1/orders/?service_type=temporary_sms&status=completedList with service_type and status filters
- GET
/api/v1/orders/<order_number>/Detail with its sub-order (order_number in path)
- POST
/api/v1/orders/<order_number>/check/Poll live status and code or QR
- GET
/api/v1/orders/<order_number>/messages/Received message history
- POST
/api/v1/orders/<order_number>/cancel/Cancel or refund by order_number
- POST
/api/v1/orders/<order_number>/archive/Archive (hide from your list)
- POST
/api/v1/orders/<order_number>/unarchive/Unarchive
- POST
/api/v1/orders/<order_number>/reuse/Request another code on the same temporary number
{"paid": false} - GET
/api/v1/services/rented-numbers/<id>/See the service available durations (with price)
- POST
/api/v1/orders/<order_number>/extend/Extend a number with a duration from the service durations
{"duration": "30d"} - POST
/api/v1/orders/<order_number>/link-esim/Link the rental to your eSIM (SMS forwarding)
{"esim_order_number": "ORD-20261112-XXXXXX"} - POST
/api/v1/orders/<order_number>/unlink-esim/Unlink (SMS to inbox only)
- POST
/api/v1/orders/<order_number>/webhook/retry/Retry the webhook after a permanent failure
- POST
/api/v1/orders/<order_number>/auto_renew/Turn auto-renew on or off
{"enabled": true}
Interactive documentation
Explore and try every endpoint with the official OpenAPI schema.
eSIM with Dhru support
We're integrating the Dhru provider to expose purchasable eSIM services via API: destination catalog, idempotent purchase and QR provisioning. Coming first to the dashboard, then to these endpoints.