Overview
Authentication
Sending your key
Section titled “Sending your key”Send your key in the Authorization header on every request:
curl https://api.footnotehq.com/v1/brands \ -H "Authorization: Bearer fn_your_key"The x-api-key: fn_your_key header is accepted as an alternative.
A missing, unknown, revoked or expired key gets a 401:
{ "_tag": "Unauthorized", "message": "Invalid API key" }Creating and revoking keys
Section titled “Creating and revoking keys”Keys are managed in the app under Settings → API keys.
- A key is shown once, when you create it. Footnote stores only a hash, so a lost key can’t be recovered. Create a new one instead.
- A key can expire after 30 days, 90 days or a year, or never.
- Revoking a key takes effect immediately.
What a key can access
Section titled “What a key can access”A key acts as the account that created it and needs an active subscription, the same as the app. What it can do within that account depends on its permissions.
Keeping keys safe
Section titled “Keeping keys safe”Treat a key like a password. Keep it on your server, never in a web page or mobile app, and revoke it if it leaks.