API · v1.4.0
Authentication
14 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.
POST /auth/forgot-password
Send a reset link to the given user
Request body
| Name | Type |
|---|---|
emailrequired | string |
Responses
200422Validation error
POST /auth/login
Attempt to authenticate a new session
Request body
| Name | Type |
|---|---|
emailrequired | string |
passwordrequired | string |
remember | string |
Responses
200422Validation error
POST /auth/logout
Destroy an authenticated session
Responses
200401Unauthenticated
POST /auth/reset-password
Reset the user's password
Request body
| Name | Type |
|---|---|
tokenrequired | string |
emailrequired | string |
passwordrequired | string |
Responses
200422Validation error
POST /auth/two-factor-challenge
Attempt to authenticate a new session using the two factor authentication code
Request body
| Name | Type |
|---|---|
code | string | null |
recovery_code | string | null |
Responses
200422Validation error
POST /auth/user/confirm-password
Confirm the user's password
Request body
| Name | Type |
|---|---|
password | string | null |
Responses
200422Validation error401Unauthenticated
GET /auth/user/confirmed-password-status
Get the password confirmation status
Responses
200401Unauthenticated
POST /auth/user/confirmed-two-factor-authentication
Enable two factor authentication for the user
Request body
| Name | Type |
|---|---|
code | string |
Responses
200401Unauthenticated
POST /auth/user/two-factor-authentication
Enable two factor authentication for the user
Request body
| Name | Type |
|---|---|
force | boolean |
Responses
200401Unauthenticated
DELETE /auth/user/two-factor-authentication
Disable two factor authentication for the user
Responses
200401Unauthenticated
GET /auth/user/two-factor-qr-code
Get the SVG element for the user's two factor authentication QR code
Responses
200401Unauthenticated
GET /auth/user/two-factor-recovery-codes
Get the two factor authentication recovery codes for authenticated user
Responses
200401Unauthenticated
POST /auth/user/two-factor-recovery-codes
Generate a fresh set of two factor authentication recovery codes
Responses
200401Unauthenticated
GET /auth/user/two-factor-secret-key
Get the current user's two factor authentication setup / secret key
Responses
200404Not found401Unauthenticated