Required Headers
Every API request must include these headers:Your API key (format:
sk_<32 characters>)Example: sk_Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234YzThis is the public identifier for your API key.Your API secret (format:
s3cr3t_<40 characters>)Example: s3cr3t_Xyz789Abc123Def456Ghi789Jkl012Mno345Pqr678Stu901Vwx234Organization ID: The organization ID is automatically extracted from your API key and secret during authentication. You do not need to include an
orgId header in your requests.Generating API Keys
API keys can only be generated through the organization portal (requires JWT authentication):Using API Keys
Include both headers in every API request:Security Best Practices
Store Securely
Never commit API keys or secrets to version control. Use environment variables or secret management services (AWS Secrets Manager, HashiCorp Vault).
Rotate Regularly
Regenerate your API keys every 90 days or if you suspect they’ve been compromised.
Use Different Keys
Use separate API keys for different environments (development, staging, production).
Monitor Usage
Regularly check your API key usage and revoke unused or compromised keys immediately.
Key Management
List API Keys
View all API keys for your organization (secrets are not shown):Regenerate API Key
If you lose your secret or suspect it’s compromised, regenerate the key (revokes old, creates new):Revoke API Key
Immediately revoke a compromised or unused API key:Error Responses
Unauthorized - Missing or invalid API key/secret
Forbidden - API key is revoked or inactive
Key Format Details
- API Key: Always starts with
sk_followed by 32 URL-safe characters - API Secret: Always starts with
s3cr3t_followed by 40 URL-safe characters - Both are case-sensitive and must match exactly
