Skip to main content
All Fenra API requests require an API key passed in the X-Api-Key header.

Getting an API Key

  1. Sign in to app.fenra.io
  2. Go to Settings → API Keys
  3. Click Create New Key
  4. Copy the key immediately. It is only shown once.

Using Your API Key

Include the key in the X-Api-Key header on every request:
curl -X POST 'https://api.fenra.io/ingest/usage' \
  -H 'Content-Type: application/json' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -d '{"provider": "openai", ...}'

Error Response

Invalid or missing keys return 401 Unauthorized:
{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or missing API key"
  }
}

Troubleshooting

If you’re getting 401 Unauthorized:
  1. Verify the key exists in your dashboard
  2. Check the key is active (not disabled)
  3. Confirm the header name is X-Api-Key (case-sensitive)
  4. Check for extra spaces or characters