API key authentication
All requests to the AgentScore API use an API key passed in theX-API-Key header.
Getting an API key
- Sign up at agentscore.sh/dashboard
- Create a new API key from the dashboard
- Copy the key — it is only shown once
Free tier
The free tier provides 5,000 API calls per month. Free-tier requests return thesummary view of the reputation endpoint.
Unauthenticated requests may be supported with stricter rate limits but are not recommended for production use.
Paid tiers
Paid API keys unlock:view=fullon the reputation endpoint (includesdecision,factors,identity)- Batch scoring via
POST /v1/reputation:batch - Higher rate limits
- Custom policy parameters (
min_grade,min_transactions)
Error responses
Missing or invalid key
401 Unauthorized
Exceeded plan limits
402 Payment Required
Rate limit headers
Every response includes rate limit information:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window |
X-RateLimit-Remaining | Requests remaining in the current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
Security recommendations
- Store API keys in environment variables, never in client-side code
- Rotate keys periodically from the dashboard
- Use separate keys for development and production
- Monitor usage from the dashboard to detect unexpected spikes