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.jsonAlways current: the API serves the description of exactly the version it runs.
Import into Postman or Insomnia
- Postman: Import → Link → paste the document URL → Import. Postman creates a collection with every endpoint and example.
- Insomnia: Create → Import → From URL → paste the document URL.
- Set a collection variable for your key and send it as the
X-API-Keyheader. 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.tsWhat it covers
- OTP2 endpoints
- SMS1 endpoint
- Bulk8 endpoints
- Contacts10 endpoints
- Inbound4 endpoints
- WhatsApp2 endpoints
- WhatsApp Connect8 endpoints
- Messages2 endpoints
- Account2 endpoints
- Simple SMS (v2)5 endpoints
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.