Generate a production or test key from the appropriate customer account. Never place a secret API key in browser JavaScript, a public mobile application, source-control repository or public screenshot.
Quick answers to common questions about Alert21 SMS API, telecom compliance, and developer integration.
What do I need before sending my first SMS with Alert21?
You need an active Alert21 account, a server-side API key and, for applicable India traffic, an approved DLT entity, sender header and content template mapped to the account. Your backend sends the recipient, template ID and ordered template variables to the SMS API.
Can I call the Alert21 SMS API from browser JavaScript?
Do not expose a secret SMS API key in browser code or a public mobile application. Send the request from your backend, serverless function or another trusted server environment, and store the key in a secrets manager or protected environment variable.
How should my application retry an SMS request?
Use a unique idempotency key for each business event, apply bounded retries for temporary failures and store the returned Alert21 message ID. Treat API acceptance as different from final delivery, which should be reconciled through signed webhooks or the status API.
EVERY ALERT. ONE API.
Turn your next business event into a traceable alert.
Start with DLT-ready SMS today on Alert21’s developer-first communication platform.