Skip to main content

Overview

All API requests require authentication via Bearer tokens. This ensures secure and authorized access to your organization’s data.
Tokens are tied to your organization.

Creating API Keys

To generate an API key:
  1. Go to your API keys in the dashboard.
  2. Click Create key on the top right.
  3. Enter a name and, optionally, select an expiry date.
  4. Copy the token and store it securely.
Never expose your API key in public repositories or frontend code.

Using Bearer Tokens

Include your token in the Authorization header of every request:

Examples

HTTP Request Example:
cURL Example:

Token Management

It’s a good practice to rotate your API keys periodically.
  1. Generate a new key.
  2. Update your environment variables.
  3. Revoke the old key.
To revoke a key:
  1. Go to API keys
  2. Click on Revoke next to the key you want to disable.

Common Issues

Ensure your token is correct, has no extra spaces, and is included in the Authorization header.
If your request returns 401 Unauthorized, check if the key was revoked or regenerated. Replace it with a valid key.