Developers
SMS verification API
Everything the dashboard does, from your own software: check prices, buy a number, read the code, cancel for a refund. Same balance, same prices, one endpoint.
Getting started
- Create an account and top up your balance.
- In Settings → API, request API access and say what you will use it for. Access is approved per account.
- Once approved, create a key there. It starts with
nsk_live_and is shown once: store it in an environment variable, never in a URL or in browser code.
Every request is a POST https://ninjasms.shop/api/sms with the key in Authorization: Bearer … and a JSON body { "operation": "…", "input": { … } }. Success is { ok: true, data }; a refusal is an HTTP error with { error, code? }. Prices are in US dollars.
Examples
Balance
curl -s https://ninjasms.shop/api/sms \
-H "Authorization: Bearer $NSK_KEY" \
-H "Content-Type: application/json" \
-d '{"operation":"balance.read"}'Returns { ok: true, data: { balance } }.