Skip to content

How to create and use auth tokens.

Auth Tokens

Every API request must include a valid Bearer token in the Authorization header.

Creating a Token

  1. Go to the Admin Dashboard.
  2. Open the Auth Token Management page.
  3. Select a user and click Generate Token.
  4. Copy the token immediately — it will not be shown again.

Using a Token

Include the token in your request headers:

Terminal window
curl -H "Authorization: Bearer YOUR_TOKEN" \
-H "X-Subscription-Status: active" \
https://finance-api.example.com/api/protected

Token Security

  • Keep your tokens secret.
  • Do not commit tokens to version control.
  • Revoke compromised tokens immediately from the dashboard.