OpenFi uses standard bearer API keys for account-level authentication, plus a separate signing scheme for agentic session keys.
API keys
Every request must include your account API key in the Authorization header:
Keep live API keys server-side only. Never embed a live key in client-side or agent-facing code; use a scoped session key instead (see below).
Session keys (for autonomous agents)
An API key authenticates your backend. A session key authenticates an individual AI agent acting within the limits of a specific mandate. It’s how an agent transacts without ever holding your master API key or a wallet’s private key.
Session keys are:
- Time-bound: created with an explicit
expires_in
- Velocity-bound: capped by the
max_amount / interval set on the parent mandate
- Revocable: can be invalidated independently of the mandate that issued them
See Create a session key for the full reference.
Identity credentials
For flows that require proving an account or agent is a verified, unique, KYC’d entity, OpenFi issues W3C Verifiable Credentials (VC-JWT format), rooted at did:web:openfi.co for issuer identity and did:pkh for wallet-based subjects. See Identity overview.