Skip to content

How does Cascade OTP work?

Cascade accepts an API request, delivers a code to a real phone via the chosen channel, and verifies the user’s input.

Quick Answer

Cascade accepts an API request, delivers a code to a real phone via the chosen channel, and verifies the user’s input.

Summary

Step-by-step flow: phone → send → message on channel → code → verify → success.

Key Takeaways

  • Send and verify are two required steps.
  • You can omit the channel — the company default applies.
  • Tokens are charged for successful delivery.

Flow in a minute

  1. The user enters a number in your form.
  2. Your backend normalizes the number and calls POST https://cascade.kz/api/otp/send with a Bearer token and either Origin or X-Cascade-Client-Domain.
  3. Set channel to auto or omit it to use the channel order configured for the API key in Channels. An explicit channel must be enabled for the key.
  4. The user enters the code.
  5. Your backend calls POST /api/otp/verify with the same key, domain header, phone, and purpose, and passes the code as a string. The code has four or six digits, according to the key setting.
  6. On success you grant access to the account or operation.

After a successful send, a 60-second cooldown applies per company and phone number. A separate 120-second recipient cooldown is shared by WhatsApp and Telegram, with SMS tracked separately. Use the Retry-After header when the API returns 429. Do not call the API from the browser: the key must live only on the backend. If the balance is insufficient, you get an insufficient-tokens message — see top-up and pricing. For short links in the same message, pass the link field. More scenarios — in use-cases, errors — in errors, product overview — in about.

FAQ

How does Cascade OTP work?

Cascade accepts an API request, delivers a code to a real phone via the chosen channel, and verifies the user’s input.

Test Cascade with your own flow

Open the dashboard and test delivery on your own flow.