# auth

UrbeStack release 0.2.35 API group, 14 operations.

Sign in with a second step if a second factor is enrolled. These operations also cover the caller's identity, tokens, and second factor.

- [POST /auth/login](https://urbestack.com/docs/api/post-auth-login.md): Exchange a name and password for a session token or a second-factor challenge
- [POST /auth/login/second-factor](https://urbestack.com/docs/api/post-auth-login-second-factor.md): Complete sign-in with an authenticator app code or a recovery code
- [POST /auth/logout](https://urbestack.com/docs/api/post-auth-logout.md): Revoke the token used for this request
- [GET /auth/me](https://urbestack.com/docs/api/get-auth-me.md): Get the authenticated user and token details
- [GET /auth/notifications](https://urbestack.com/docs/api/get-auth-notifications.md): List the caller's notification preferences
- [PUT /auth/notifications/{kind}](https://urbestack.com/docs/api/put-auth-notifications-kind.md): Set the caller's preference for one notification kind
- [POST /auth/second-factor](https://urbestack.com/docs/api/post-auth-second-factor.md): Start enrolment of the caller's second factor
- [POST /auth/second-factor/confirm](https://urbestack.com/docs/api/post-auth-second-factor-confirm.md): Confirm the caller's pending second factor
- [POST /auth/second-factor/disable](https://urbestack.com/docs/api/post-auth-second-factor-disable.md): Disable the caller's second factor
- [POST /auth/second-factor/recovery-codes](https://urbestack.com/docs/api/post-auth-second-factor-recovery-codes.md): Replace the caller's second-factor recovery codes
- [GET /tokens](https://urbestack.com/docs/api/get-tokens.md): List the caller's sessions and API tokens
- [POST /tokens](https://urbestack.com/docs/api/post-tokens.md): Create an API token for the caller
- [DELETE /tokens/{id}](https://urbestack.com/docs/api/delete-tokens-id.md): Revoke one of the caller's tokens
- [GET /version](https://urbestack.com/docs/api/get-version.md): Get the UrbeStack and API versions and the web interface URL

Every operation of the group in one file: https://urbestack.com/docs/api/group/auth/full.md
