Flow in a minute
- The user enters a number in your form.
- Your backend normalizes the number and calls
POST https://cascade.kz/api/otp/sendwith a Bearer token and eitherOriginorX-Cascade-Client-Domain. - Set
channeltoautoor omit it to use the channel order configured for the API key in Channels. An explicit channel must be enabled for the key. - The user enters the code.
- Your backend calls
POST /api/otp/verifywith the same key, domain header,phone, andpurpose, and passes the code as a string. The code has four or six digits, according to the key setting. - 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.