Authentication
Every request needs an API key, sent as a bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Creating keys
Create keys on the API keys page in app.fabrence.com. We show the full key once, when you create it. After that, the dashboard shows only its last four characters. If you lose a key, delete it and create a new one.
Create as many keys as you need, for example one per environment or service. The dashboard tracks usage and spend for each key.
Keeping keys safe
- Keep keys out of client-side code, mobile apps and public repositories. Call Fabrence from your server.
- Load keys from environment variables or a secrets manager.
- If a key may have leaked, delete it. Deleted keys stop working within seconds.
Errors
A missing or invalid key returns 401. A valid key on an account without credits returns 402. See Errors for the full list.