Authentication
Authenticate with the Fairseq API using API keys.
All Fairseq API requests require an API key tied to your organization. Keys are used for both hosted proof generation and usage tracking.
Create an API key
- Open the API Keys dashboard
- Click Create API Key
- Copy the secret immediately (shown once)
Send the key
Use either Authorization or X-API-Key headers:
BASH
curl https://api.fairseq.io/v1/proofs \
-H "Authorization: Bearer fsk_your_api_key"BASH
curl https://api.fairseq.io/v1/usage \
-H "X-API-Key: fsk_your_api_key"Key safety
- Treat API keys as secrets.
- Rotate keys regularly.
- Revoke immediately if compromised.
Error responses
JSON
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Rate limits
| Tier | Requests/minute |
|---|---|
| Free | 60 |
| Professional | 300 |
| Growth | 1000 |
| Scale | 5000 |
Was this page helpful? /
Back to docs