API Keys
All API requests require authentication using a Bearer token.Getting Your API Key
- Log in to the Diro Dashboard
- Navigate to API Keys
- Click “Create API Key”
- Give it a descriptive name
- Copy and securely store your key
Using Your API Key
Include your API key in theAuthorization header:
Example Request
Plan Limits
API access is available on all plans, including Free. Each plan has different render limits.
Error Responses
Invalid API Key
Render Limit Exceeded
Security Best Practices
Never expose keys in client-side code
Never expose keys in client-side code
API keys should only be used in server-side code or secure environments.
Use environment variables
Use environment variables
Store API keys in environment variables, not in source code.
Rotate keys periodically
Rotate keys periodically
Create new keys and delete old ones regularly.
Use separate keys for different environments
Use separate keys for different environments
Create separate keys for development, staging, and production.