The cloro API uses Bearer token authentication to secure API endpoints. You’ll need to include your API key in theDocumentation Index
Fetch the complete documentation index at: https://docs.cloro.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header of every request.
Getting your API key
Manage your API keys in the dashboard. You can create new keys, view usage, and manage your account settings. Once you receive your API key:- Store your API key securely. Keep it confidential
- Never expose your API key in client-side code or public repositories
Using your API key
Include your API key in theAuthorization header with the Bearer prefix:
Example requests
Authentication errors
If authentication fails, you’ll receive a401 Unauthorized response:
- Missing Bearer prefix: Make sure to include
Bearerbefore your API key - Invalid API key: Check that you’re using the correct API key
- Expired API key: Some API keys may have expiration dates
- Rate limit exceeded: You’ve exceeded your plan’s rate limit
Environment variables
We recommend storing your API key in environment variables:API key management
Regenerating keys
If you suspect your API key has been compromised, you can revoke and generate new keys directly in the dashboard.Multiple API keys
You can create multiple API keys in the dashboard for different purposes:- Production: For your live application
- Development: For local development and testing
- CI/CD: For automated testing and deployment
- Team members: Individual keys for team access
Need help?
If you’re having trouble with authentication:- Check our API Reference
- Contact support at support@cloro.dev