Skip to main content
The cloro API uses Bearer token authentication to secure API endpoints. You’ll need to include your API key in the 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:
  1. Store your API key securely. Keep it confidential
  2. Never expose your API key in client-side code or public repositories
Never expose your API key in client-side code, public repositories, or share it with unauthorized users.

Using your API key

The Bearer token in the Authorization header is your API key — there’s no separate token exchange or OAuth flow. Copy the key from the dashboard and pass it directly with the Bearer prefix:

Example requests

Authentication errors

If authentication fails, you’ll receive a 401 Unauthorized response:
Common authentication issues:
  • Missing Bearer prefix: Make sure to include Bearer before 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: