Creating API Keys
1
Access Settings
Go to the Developer Settings section in your Caret workspace.
2
Generate Key
Click Create New API Key and give it a descriptive name.
3
Assign Scopes
Select specific permissions. We recommend following the principle of least
privilege.
4
Store Securely
Copy your key immediately. For security, it will not be shown again.
Usage
Send your API key in theAuthorization header using the Bearer scheme: Authorization: Bearer <API_KEY>.
Scopes
Define the access level for each key by selecting these permissions:Best Practices
- One Key Per Service: Use separate keys for different environments.
- Rotate Regularly: Regenerate keys periodically to minimize leak impact.
- Environment Variables: Never hardcode keys in your source files.
Errors
- 401 Unauthorized: Key is missing, invalid, or revoked.
- 403 Forbidden: Key is valid but lacks required permissions for the endpoint.