Authorization header as a Bearer token.
You can view and manage API keys in the UseAgents Dashboard under Settings → API Keys. See API Keys for setup instructions.
Protected endpoints
Protected API endpoints require authentication. The/tools/search endpoint is one example.
How to authenticate
Include this header in authenticated API requests:YOUR_API_KEY with the key from your dashboard.
Example request
Authentication errors
When authentication fails, the API returns specific error responses to help you troubleshoot.Missing API key
If you do not include theAuthorization header on a protected endpoint, the API returns 401 Unauthorized:
Invalid API key
If the key is incorrect, malformed, revoked, or otherwise invalid, the API returns403 Forbidden:
Best practices
- Store API keys securely and never commit them to version control.
- Rotate keys if you suspect they were exposed.
- Use separate keys for different environments or integrations when appropriate.