Where to get the key
- Sign in to the Cascade dashboard.
- Open API keys and click Create API key.
- Enter a name and the site address (for example,
https://example.kz), then select 6 digits (default) or 4 digits for the OTP. - Click Create key. The key appears in the list immediately. You can show and copy it whenever you need it.
Cascade automatically binds the key to the domain in the address you enter.
Store the token on your server in environment variables or a secrets manager.
How to send it
When sending or verifying an OTP, send Authorization: Bearer <key> and set Origin to the bound domain or one of its subdomains. You can use X-Cascade-Client-Domain in place of Origin.
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Accept: application/json
Origin: https://example.kz
Base URL: https://cascade.kz/api.
Security rules
- Do not commit the key to git.
- Do not call the API from the user's browser.
- Rotate the key if it leaks.
- Do not log the full token.
More: documentation, errors, FAQ, pricing.