SMSTunnel Twilio Compatible API

Twilio's Messages, Verify v2 and Lookup v2 at Twilio's own paths, so code written for Twilio works by changing the host to `https://api.smstunnel.io` and using your SMSTunnel API key as the Auth Token: the password of HTTP Basic (the user name is not checked). `X-API-Key` and `Authorization: Bearer` work too. Errors use Twilio's shape. The texts still go out from your own phone and SIM. Verify and Lookup answer only on `api.smstunnel.io`. Guides: [Twilio-compatible API](https://smstunnel.io/integrations/twilio-compatible/), [Verify and Lookup](https://smstunnel.io/integrations/twilio-verify/). **SMSTunnel is not affiliated with, endorsed by or sponsored by Twilio Inc.** Twilio is a trademark of Twilio Inc.

GitHub OpenAPI

Operations 14

GET /2010-04-01/Accounts/{AccountSid}.json Fetch Twilio's Account resource #
POST /2010-04-01/Accounts/{AccountSid}/Messages.json Send a text (Twilio Messages) #
GET /2010-04-01/Accounts/{AccountSid}/Messages.json List texts (Twilio Messages) #
GET /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json Fetch a text and its status (Twilio Messages) #
POST /v2/Services Create a Verify Service #
GET /v2/Services List Verify Services #
GET /v2/Services/{ServiceSid} Fetch a Verify Service #
POST /v2/Services/{ServiceSid} Update a Verify Service #
DELETE /v2/Services/{ServiceSid} Delete a Verify Service #
POST /v2/Services/{ServiceSid}/Verifications Start a verification #
GET /v2/Services/{ServiceSid}/Verifications/{Sid} Fetch a verification #
POST /v2/Services/{ServiceSid}/Verifications/{Sid} Cancel or approve a verification #
POST /v2/Services/{ServiceSid}/VerificationCheck Check a code #
GET /v2/PhoneNumbers/{PhoneNumber} Look up a number (Twilio Lookup v2) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/smstunnel-io:smstunnel-io-twilio-compatible-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

smstunnel-io-twilio-compatible-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SMSTunnel Twilio Compatible API
  version: 1.0.0
  description: 'SMSTunnel sends text messages (SMS) through **your own Android phone and SIM**, from your own number. Your software hands a text to your SMSTunnel account with this API, and the SMSTunnel app on your linked phone sends it. Made by NARBOWEB SRL.


    ## Authentication


    Create an API key in the dashboard (**Apps → Add an app**). Keys look like `sk_live_…` and are shown once. Send the key from your server, in one of these ways:


    - `X-API-Key: ` (when present, it wins over the others);

    - `Authorization: Bearer `;

    - HTTP Basic with the key as the password (the user name is ignored).


    Never put a key in a web page: a key sent in `Authorization` from a page on another site is refused with `401` and the code `API_KEY_FROM_WEB_PAGE`.


    Keys carry permissions: `sms:send` (send and cancel), `sms:read` (status of texts, list of scheduled texts) and `sms:inbox` (read received texts, off by default). Each operation names the one it needs; an operation that names none works with any valid key.


    ## How a text travels


    - **One recipient per request.** Every send operation in this document takes one number. To text several people, make one request per person.

    - **`sent` is the last good status.** The Android app requests no delivery reports, so `sent` means the phone handed the text to its SIM and Android confirmed it went out. A text you send never reaches `delivered`, and SMSTunnel cannot tell you that it arrived.

    - **`unconfirmed` means the text may have gone out. Never resend it automatically**, or the recipient may get it twice. Show it to a person instead. The same applies after a timeout or a `5xx` answer to a send, unless you send the same `Idempotency-Key` again.

    - **Offline phones.** A text waits up to 3 days for an offline phone, then fails. A text the phone had already taken but never reported on ends `unconfirmed` instead.

    - **Pace.** Android allows about 30 SMS parts per minute per app, and a long text is several parts. SMSTunnel hands one phone at most 28 parts in any 65 seconds; other texts wait their turn on the server.


    ## Retrying safely


    The send operations take an optional `Idempotency-Key` header: POST /api/v1/sms/send, /sms/send-2fa, the /sms/compat routes, /cgi-bin/sms_send, Twilio''s Messages.json and Verify''s Verifications. Within 24 hours, the same key with the same request gets the first answer back, with `Idempotent-Replayed: true`, and no second text. Each API key has its own idempotency keys. Fields a first answer left out come back as `null` in a replay. No other operation reads this header.


    ## Limits


    Per API key and route: **30 requests a minute** on the send routes (the /sms/compat routes and /cgi-bin/sms_send count together with the route they follow) and on Verify''s other POST and DELETE routes, 60 on Verify''s VerificationCheck, and **100** on everything else. All the keys of one account together get three times that. Every answer carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`, except the rate limiter''s own `429`. Over the limit: `429` with `Retry-After`. A `429` **without** `Retry-After` means an allowance is used up (the plan''s daily or monthly one, the key''s own daily limit, or a verification''s attempts): don''t retry it. Allowances depend on the plan: see Pricing.


    ## Errors


    Errors under /api/v1 have `statusCode`, `message` (a string, or a list of strings for a request that failed validation) and often `error` and a stable `code`. The Twilio-compatible routes answer in Twilio''s shape, and /cgi-bin/sms_send in plain text.


    Full guides: API reference, Twilio-compatible API, Twilio Verify-compatible sign-in codes.'
  termsOfService: https://smstunnel.io/terms/
  contact:
    name: SMSTunnel (NARBOWEB SRL)
    url: https://smstunnel.io/contact/
    email: support@smstunnel.io
  x-logo:
    url: https://smstunnel.io/android-chrome-512x512.png
    altText: SMSTunnel
servers:
- url: https://smstunnel.io
  description: The REST API (paths under /api/v1). The Twilio-compatible routes and /cgi-bin/sms_send name their own hosts.
security:
- ApiKeyHeader: []
- BearerAuth: []
- BasicAuth: []
tags:


# --- truncated at 32 KB (108 KB total) ---
# Full source: https://artifacts.apis.io/smstunnel-io/openapi/smstunnel-io-twilio-compatible-api-openapi.yml