https://api.finowl.co/v1 must include your API key in the Authorization header:
401 with {"error": {"code": "unauthorized"}}, and nothing is charged.
Create a key
- Open API Keys in the dashboard.
- Select Create key and give it a descriptive label, such as
billing-service-prod. - Copy the key immediately. It is shown only once.
Key format
Keys look like this:
The prefix (
finowl_ plus 24 characters) is not secret. It is shown in the dashboard so you can tell keys apart, and it is safe to log. The part after the dot is the secret.
Keep keys safe
Only use keys on your server
Only use keys on your server
The API does not send CORS headers, so browsers block direct calls. That is deliberate: a key in frontend code or a mobile app can be extracted by anyone. Call Finowl from your backend and return only what your client needs.
Use one key per service and environment
Use one key per service and environment
Separate keys for production, staging and each service let you revoke one without breaking the others. The dashboard shows when each key was last used, which makes unused keys easy to spot.
Store keys in a secret manager
Store keys in a secret manager
Load keys from environment variables or a secret manager such as AWS Secrets Manager, Google Secret Manager, Doppler or Vault. Never commit them to source control.
Rotate a key
Rotate keys on a schedule, when someone with access leaves, or immediately if a key may have leaked.1
Create a new key
Create a replacement key in the dashboard with a clear label.
2
Deploy it
Update your secret store and deploy. Both keys work at the same time, so there is no downtime.
3
Revoke the old key
Once the old key’s last used time stops updating, revoke it. Revocation takes effect immediately.