The three credentials
Get a session JWT
Sign in with email, phone, or OAuth. The response includes a JWT.Authorization: Bearer eyJhbGciOi... on every user-scoped request. If the account has 2FA enabled, the login response indicates a challenge and you must call POST /api/auth/2fa/verify before receiving a full session.
Create an API key
API keys are Bifrost virtual keys prefixed withbfvk-. They are created from the dashboard or via the API and used against the per-site gateway and authenticated download endpoints.
key. Store it in a secret manager. Later GET /api/api-keys responses only return prefix, never the full value.
Query-token downloads
Some file endpoints support?token=<jwt> so that a plain <a href> in the browser can download the file without setting headers. This applies to:
GET /api/models/{slug}/download?token=...GET /api/billing/invoices/{paymentId}/download?token=...GET /api/billing/receipts/{paymentId}/download?token=...
Authorization header.
Failure modes
Session tokens are short-lived. Re-authenticate by calling
POST /api/auth/login when the current token expires.