Skip to content

API

API key

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

Quick Answer

Create a key in the company cabinet and pass it in the Authorization: Bearer header.

Summary

All Cascade API requests require the Authorization: Bearer <key> header from the company API keys section.

Key Takeaways

  • Key only on the server, never in the frontend.
  • A wrong key returns HTTP 401.
  • See also send OTP and verify.

Where to get the key

  1. Sign in to the cabinet.
  2. Open the API keys section.
  3. Create a key and copy the value once into a secure store (.env, secrets).

How to send it

Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Accept: application/json

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.