/verificationsScope: verifications:sendSend a verification code with automatic fallback
Tellwing generates a one-time code and sends it through the first channel that can deliver it, in order: **WhatsApp** (your approved authentication template, from your number), then **SMS**, then **email** (when you send `email`). If the code is not delivered within `fallback_after` seconds, or the channel fails, Tellwing sends a new code through the next channel; any code sent stays valid until `expires_at`. Then call `POST /verifications/{id}/check` with what the person typed. WhatsApp joins the cascade when your WhatsApp account has an approved authentication template (Settings → API → Verifications); until then it is skipped without an error and the cascade starts with SMS. A channel that cannot send (not in your plan, no balance, a country not open for SMS, an opted out number) is skipped and listed in `attempts` with its `reason`. If no channel can send, `409 channel_not_available` and nothing was sent. **Cost:** each verification costs only the messages actually sent: WhatsApp bills its message to your WhatsApp account, an SMS is paid at its country rate from your SMS quota or balance, and an email counts against your email quota; no extra fee. **Fraud controls**, all checked before sending: numbers in high cost or high fraud countries are refused, and there are limits per number and per email address (per hour and per day), per organization and per country, plus detection of many consecutive numbers (SMS pumping) (`429 rate_limited`). The code and the destination never appear in responses or webhooks; the destination is deleted when the verification ends. Live keys need a plan with API access (Growth or higher), as `POST /sms` and `POST /whatsapp`.
Accepts Idempotency-Key.
Request body (application/json)
Responses
201The code went out through a channel. The fallback, if needed, happens on its own.400`invalid_request`: `param` names the field (`to`, `email`, `channels`, `locale`, `code_length`, `expires_in`, `fallback_after`, `max_attempts`, `brand`); also `to` in a country Tellwing does not send codes to (high cost or fraud risk). Nothing was sent.403`sending_paused`: sending is paused for your organization (while Tellwing reviews its activity, because of its bounce or complaint rate, or until updated legal documents are accepted), nothing was sent; `forbidden_scope`: the key lacks `verifications:send`.409`channel_not_available`: no channel could send the code (the message lists each channel and why). Nothing was sent.429`rate_limited`: too many verifications to that number or address in the last hour or day, for your organization, to that country today, to consecutive numbers (SMS pumping), or too many requests. Nothing was sent.