Documentation Index
Fetch the complete documentation index at: https://prefetch.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
API keys
All Prefetch API endpoints (except/health and /ready) require an API key. Pass your key in the X-API-Key request header:
Key validation
Every request validates your API key against the following checks, in order:- Present — key must be included in the header
- Not revoked — key has not been manually revoked
- Not expired — key has not passed its expiry date
- Within credit limit — key has not exceeded its configured credit limit
X-API-Key header returns 401 Unauthorized. All other failures (invalid, revoked, expired, or over-limit key) return 403 Forbidden.
Key security best practices
- Rotate keys regularly from the dashboard
- Use separate keys for development and production
- Set a credit limit on each key to prevent unexpected overages
- Revoke compromised keys immediately from the dashboard
Error responses
| Status | Error message | Cause |
|---|---|---|
401 | "Missing API key" | No X-API-Key header provided |
403 | "Invalid API key" | Key not found in the system |
403 | "API key has been revoked" | Key was manually revoked |
403 | "API key has expired" | Key passed its expiry date |
403 | "Credit limit exceeded" | Key used all its allocated credits |