401 Unauthorized.
Generate an API key
API keys are managed from your Karat dashboard under Settings. From there you can:- Generate a new key
- View your existing keys
- Revoke a key that may have been compromised
Authorize requests
Include your key in theAuthorization header as a bearer token on every
request:
Storing keys securely
- Never commit API keys to source control or embed them in client-side code.
- Load keys from environment variables or a secrets manager.
- Use separate keys for sandbox and production.
- Rotate keys periodically, and revoke any key that may be exposed.
Each key is scoped to the organization and user that created it. Revoking a
key takes effect immediately for all future requests.