API referenceSections

Authentication and sessions

25 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
POST/api/v1/auth/login
GET/api/v1/auth/login-link/{token}A page that asks to continue; it does not use the link, so link previews cannot spend it (ADR 0055)
POST/api/v1/auth/login-link/{token}Use a one-time sign-in link once (ADR 0055)
POST/api/v1/auth/logout
POST/api/v1/auth/mfa/confirmTurn MFA on; returns recovery codes once and rotates the session cookie
POST/api/v1/auth/mfa/disableTurn the authenticator app off (ADR 0054); needs the password and a current or recovery code. Refused with MFA_REQUIRED_BY_POLICY when the provider requires two-step verification and the user has no passkey
POST/api/v1/auth/mfa/enrollRe-check the password and start TOTP enrollment
POST/api/v1/auth/mfa/verifyComplete sign-in with a TOTP or recovery code; rotates the session cookie
GET/api/v1/auth/oidc/callback
GET/api/v1/auth/oidc/{id}/start
POST/api/v1/auth/passkey/login/beginOptions for a sign-in with no password
POST/api/v1/auth/passkey/login/finishFinish a passkey sign-in; cookie set
POST/api/v1/auth/passkey/register/beginRe-check the password and start registration
POST/api/v1/auth/passkey/register/finishStore the new passkey
POST/api/v1/auth/passkey/verify/beginOptions for using a passkey after a password
POST/api/v1/auth/passkey/verify/finishComplete MFA with a passkey; rotates the session cookie
POST/api/v1/auth/passwordChange your own password (ADR 0057). The current password is needed except in a session from a recovery link; every other session ends and a new one is set
POST/api/v1/auth/recoverySign in with a one-time link from `zopanel-setup admin-login` (ADR 0057); two-step verification still applies, and the session must set a new password
GET/api/v1/me/permissions
GET/api/v1/passkeys
DELETE/api/v1/passkeys/{id}
GET/api/v1/password-policyThe password rules of every scope, for forms and the password generator; any signed-in user
GET/api/v1/session
GET/api/v1/sessions
DELETE/api/v1/sessions/{id}