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

  1. Open the API Keys dashboard
  2. Click Create API Key
  3. 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

TierRequests/minute
Free60
Professional300
Growth1000
Scale5000
Was this page helpful? /
Back to docs