Contents

API reference

Every endpoint, field, response and webhook event — searchable, with examples.

Base URLhttps://sms21.in/v1

Authentication

X-API-Key: sms21_live_…

or Authorization: Bearer sms21_…

Specification

44 endpoints · 3 webhook events

OpenAPI 3.1.1 · v1.0.0 · Swagger UI

Responses are JSON with success next to the data; errors carry a stable error.code. Send an Idempotency-Key header on POST requests to retry safely. Test keys (sms21_test_…) never deliver or charge.

Messaging

Send one-time passwords, transactional SMS and bulk campaigns.

WhatsApp

The official Business Platform and numbers linked by QR code.

Audience

Saved contact lists, replies and opt-outs.

Tracking & account

Delivery status, reports, your API key and wallet.

Events

Signed POST requests SMS21 sends to your endpoints.