Skip to content

Cascade API key — Bearer authorization

Get a key in the cabinet and pass it as a Bearer token.

On this page
  1. Where to get the key
  2. How to send it
  3. Security rules

Where to get the key

  1. Sign in to the Cascade dashboard.
  2. Open API keys and click Create API key.
  3. Enter a name and the site address (for example, https://example.kz), then select 6 digits (default) or 4 digits for the OTP.
  4. 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.