Skip to main content
Vault supports API key authentication (server-to-server) and JWT authentication (dashboard and management). POST /tokenize requires X-Pub-Key when using a production vault API key; test/sandbox API keys do not require it. Some requests support hybrid (API key + JWT for user attribution).

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 both X-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).

Verify API key

See GET /api/applications/key to validate a key and read its project and permissions.

Base URL

Use the Vault base URL (sandbox or production).