Authentication and sessions
25 operations. Open one for its parameters, request body, responses and examples.
| Method | Path | Summary |
|---|---|---|
| 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/confirm | Turn MFA on; returns recovery codes once and rotates the session cookie |
| POST | /api/v1/auth/mfa/disable | Turn 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/enroll | Re-check the password and start TOTP enrollment |
| POST | /api/v1/auth/mfa/verify | Complete 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/begin | Options for a sign-in with no password |
| POST | /api/v1/auth/passkey/login/finish | Finish a passkey sign-in; cookie set |
| POST | /api/v1/auth/passkey/register/begin | Re-check the password and start registration |
| POST | /api/v1/auth/passkey/register/finish | Store the new passkey |
| POST | /api/v1/auth/passkey/verify/begin | Options for using a passkey after a password |
| POST | /api/v1/auth/passkey/verify/finish | Complete MFA with a passkey; rotates the session cookie |
| POST | /api/v1/auth/password | Change 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/recovery | Sign 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-policy | The 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} |