Send the key
Send the key in theAuthorization header with the Bearer scheme:
Key format
A key looks likefa_<prefix>_<secret>:
fa_<prefix>isn’t secret. The dashboard shows it in the prefix column so you can tell your keys apart.<secret>is the private part. Federal Access doesn’t store it, so it can’t show it to you again or recover it.
Store the key safely
- Keep it in an environment variable or a secrets manager, never in source code or a repository.
- Use it only from a server. Don’t ship it in a web or mobile app, where anyone could read it.
- Create one key per integration. That way you can revoke one without cutting off the others, and the dashboard shows each key’s last use.
Rotate a key
Keys don’t expire. To replace one without downtime:- Create a new key with the same scopes.
- Configure your system with the new key.
- Confirm your system works, then revoke the old key.
Revoke a key
In the dashboard, go to Configuración (Settings) > API, find the key, and revoke it. To confirm, type the key’s name.- The key stops working from the next request: the API answers
401. - Revoking can’t be undone.
- Revoked keys stay in the list for 7 days, then they’re deleted.
Authentication errors
Every
401 has the same message and the WWW-Authenticate: Bearer realm="public_api" header. The response doesn’t say which part failed, so it gives no hints to someone trying to guess a key.
403s, see Scopes.
