API key
Header:X-API-Key: <your_api_key>
Use for: Tokenization, proxy, verify key. For POST /tokenize you must also send X-Pub-Key when using a production vault API key. Test/sandbox API keys do not require X-Pub-Key.
Endpoints that accept API key:
API key format may vary (e.g. provisioned keys); docs often show keys starting with
key_ as an example. Never expose API keys in client-side code.
JWT
Header:Authorization: Bearer <jwt> or cookie (after login).
Use for: Dashboard and management — projects, applications, audit logs, user settings, MFA. JWT is required for management endpoints (projects, applications, audit logs, token management, user settings); Applications also documents the verify-key endpoint (API key).
Auth endpoints (explicit paths)
MFA setup is via POST /user/settings/mfa (toggle/setup); response can include
totp_uri and backup_codes when enabling. There is no separate /auth/mfa/setup path.
Hybrid
Send bothX-API-Key and Authorization: Bearer <jwt>. The API key authorizes the request; the JWT identifies the user for audit logging (e.g. on tokenize or proxy).