Pre-release — contact your Fortary account team for access.
Create a key
API keys are created from the Fortary portal by a signed-in user who holds the Developer role on the relevant vaults. Creating a key requires re-confirming multi-factor authentication. When you create a key you choose:- Scopes — what the key can do. For v1 the only scope is
vault:read. See Scopes. - Vault allowlist — which of your vaults the key can see.
- IP allowlist — optional; see below.
- Expiry — optional; defaults to 365 days. See below.
- Label — a name to recognize the key later.
Send the token
Send the key as a bearer token in theAuthorization header on every request:
X-API-Key header and no separate API-secret field — the credential is always the bearer token.
Key expiry
A new key is given a 365-day expiry by default. You can extend it, shorten it, or clear it to no expiry when you create the key or later. A request made with an expired key is rejected with401.
Restrict a key to your IP ranges
A key can carry an optional IP allowlist — a list of CIDR ranges (your servers’ egress addresses). When set, requests from any other address are rejected, even with a valid key. When left empty there is no IP restriction. The allowlist is enforced on every request, so a leaked secret is useless from outside your network.Revoke and rotate
- Revoke — revoking a key takes effect immediately across the API; the key stops working at once.
- Rotate the secret — secrets can’t be changed in place. To rotate, create a new key and revoke the old one once your integration is using the new secret.
- Edit a key — its scopes, vault allowlist, and IP allowlist can be edited in place (for example, to remove a vault from a key’s reach). The secret itself is never editable.
Operational behavior to plan for
A key is bound to the user who created it and inherits that user’s live roles:
- If the owner loses the Developer role, the key’s access is withdrawn — but not instantly. Role changes may take up to 5 minutes to fully propagate. For immediate access changes, revoke the API key directly.
- If the owning user is deactivated, their keys are revoked automatically.

