Skip to main content
Every request to the API is authenticated with an API key. The key belongs to one installation: everything you do with it happens in that installation.

Send the key

Send the key in the Authorization header with the Bearer scheme:
The API doesn’t accept the key in the URL or in the request body.

Key format

A key looks like fa_<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:
  1. Create a new key with the same scopes.
  2. Configure your system with the new key.
  3. Confirm your system works, then revoke the old key.
Each active key in an installation needs a distinct name. Revoking a key frees its name.

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.
If a key leaks, revoke it right away and create another.

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.
For scope 403s, see Scopes.
Last modified on November 25, 2026