Contents

OpenAPI document

Download the OpenAPI 3.1 file for Postman, Insomnia and client generators.

SMS21 API

OpenAPI 3.1.1 · document version 1.0.0

Endpoints
44
Groups
10
Schemas
69
Webhook events
3

Document URL

https://sms21.in/v1/openapi.json

Always current: the API serves the description of exactly the version it runs.

Import into Postman or Insomnia

  1. Postman: Import → Link → paste the document URL → Import. Postman creates a collection with every endpoint and example.
  2. Insomnia: Create → Import → From URL → paste the document URL.
  3. Set a collection variable for your key and send it as the X-API-Key header. Use a test key (sms21_test_…) while exploring.

Generate a client

Any OpenAPI 3.1 generator works. For Node.js, the official SDK (@sms21/node) is already typed and handles retries and idempotency.

npx openapi-typescript https://sms21.in/v1/openapi.json -o sms21.d.ts

What it covers

What is not included

Dashboard-only endpoints (team, billing, admin) are not part of the public API and are not in the document. Everything an API key can call is.