Overview
WhizoAI uses API key authentication for all requests. Your API keys are unique to your account and should be kept secure.Getting Your API Key
- Sign up for a WhizoAI account at whizo.ai
- Navigate to your API Keys dashboard
- Click “Create New API Key”
- Name your key (e.g., “Production App”, “Development”)
- Copy the generated key securely
Authentication Methods
Bearer Token Authentication
Include your API key in theAuthorization header with the Bearer prefix:
API Key Header (Alternative)
You can also use theX-API-Key header:
API Key Management
Creating API Keys
1
Navigate to Dashboard
Go to your API Keys dashboard
2
Create New Key
Click “Create New API Key” and provide a descriptive name
3
Set Permissions
Configure permissions and rate limits (Pro/Enterprise plans)
4
Copy and Store
Copy the key immediately and store it securely
API Key Properties
Each API key has the following properties:Unique identifier for the API key
User-defined name for the key
First 8 characters shown for identification (e.g., “whizo_12…”)
List of allowed operations (Enterprise feature)
Rate limiting configuration
ISO timestamp of last usage
ISO timestamp of creation
Rotating API Keys
For security best practices, regularly rotate your API keys:- Create a new API key
- Update your applications to use the new key
- Test to ensure everything works
- Revoke the old key
Security Best Practices
Keep Keys Secure
Keep Keys Secure
- Never commit API keys to version control
- Use environment variables in applications
- Don’t expose keys in client-side code
- Store keys in secure credential management systems
Use Environment Variables
Use Environment Variables
Restrict Key Permissions
Restrict Key Permissions
For Enterprise plans, create keys with minimal required permissions:
- Read-only keys for monitoring
- Limited endpoint access
- IP address restrictions
Monitor Key Usage
Monitor Key Usage
Regularly check your API key usage in the dashboard:
- Monitor for unexpected usage patterns
- Set up usage alerts
- Review access logs
Rate Limiting
API keys are subject to rate limits based on your plan:Rate Limits by Plan
Free Plan
- 10 requests per hour
- 100 requests per day
- 1 concurrent request
Starter Plan
- 50 requests per hour
- 500 requests per day
- 3 concurrent requests
Pro Plan
- 200 requests per hour
- 2,000 requests per day
- 10 concurrent requests
Enterprise
- Custom limits
- Burst allowances
- Priority processing
Rate Limit Headers
Responses include rate limit information in headers:Handling Rate Limits
When you exceed rate limits, you’ll receive a429 Too Many Requests response:
Error Responses
Common authentication errors:| Status Code | Error Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 401 | key_revoked | API key has been revoked |
| 401 | key_expired | API key has expired |
| 403 | insufficient_permissions | Key lacks required permissions |
| 429 | rate_limited | Rate limit exceeded |
Testing Authentication
Test your API key with a simple request:Webhooks Authentication
For webhook endpoints, WhizoAI signs requests with your webhook secret:JavaScript