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:- Go to your API keys in the dashboard.
- Click Create key on the top right.
- Enter a name and, optionally, select an expiry date.
- Copy the token and store it securely.
Using Bearer Tokens
Include your token in theAuthorization header of every request:
Examples
HTTP Request Example:Token Management
Rotating API Keys
Rotating API Keys
It’s a good practice to rotate your API keys periodically.
- Generate a new key.
- Update your environment variables.
- Revoke the old key.
Revoking API Keys
Revoking API Keys
To revoke a key:
- Go to API keys
- Click on Revoke next to the key you want to disable.
Common Issues
Invalid Token
Invalid Token
Ensure your token is correct, has no extra spaces, and is included in the
Authorization header.Expired Token
Expired Token
If your request returns
401 Unauthorized, check if the key was revoked or regenerated. Replace it with a valid key.