What are API Keys?
API keys allow you to authenticate requests to the Kordless API from your applications. Each key is scoped to your organization and provides programmatic access to manage bookings, availability, and services.Creating an API Key
1
Navigate to API Keys
Go to Settings → Integration → API Keys in the platform.
2
Generate New Key
Click Generate API Key and provide:
- Label: A descriptive name (e.g., “Production App”, “Mobile App”)
- Environment: Development or Production (optional)
3
Save Your Key
Store the key securely in your application’s environment variables or secrets manager.
Using Your API Key
Include your API key in thex-kordless-key header of all API requests:
- JavaScript
- Python
- cURL
Finding Your Organization ID
Your organization ID is required for all API requests. Find it in:- Settings → Organization → Organization ID
- Or extract it from your Clerk organization ID (it’s the part after
org_)
Best Practices
Use Environment Variables
Use Environment Variables
Never hardcode API keys in your source code. Use environment variables or a secrets manager:
Rotate Keys Regularly
Rotate Keys Regularly
Generate new keys periodically and revoke old ones:
- Every 90 days for production
- Immediately if a key is compromised
- When team members with access leave
Use Different Keys Per Environment
Use Different Keys Per Environment
Create separate keys for:
- Local development
- Staging/testing
- Production
Monitor API Usage
Monitor API Usage
Regularly review API usage in your dashboard:
- Check for unusual activity
- Identify which keys are actively used
- Monitor rate limits and quotas
Managing API Keys
Viewing Keys
See all your organization’s API keys in the API Keys dashboard. Each key shows:- Label
- Environment
- Created date
- Last used date
- Status (active/revoked)
For security, you can only view the full key value when it’s first created. After that, only the last 4 characters are displayed.
Revoking Keys
If a key is compromised or no longer needed:1
Identify the Key
Locate the key in your API Keys list by label or last 4 characters.
2
Revoke
Click the Revoke button next to the key.
3
Confirm
Confirm the revocation. The key will immediately stop working.
4
Update Applications
If the key was in use, update your applications with a new key before revoking to avoid downtime.
Rate Limits
API keys are subject to rate limits to ensure fair usage:- 100 requests per minute per API key
- 1,000 requests per hour per API key
- 10,000 requests per day per organization
Rate Limit Headers
API responses include rate limit information:Troubleshooting
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Cause: API key valid but lacks permission for the requested resourceSolution:
- Verify the
x-organization-idheader matches your organization - Check that the resource belongs to your organization
429 Too Many Requests
429 Too Many Requests
Cause: Rate limit exceededSolution:
- Implement exponential backoff
- Cache responses when possible
- Optimize your request patterns
- Contact us for higher limits if needed

