REST API overview

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

NameType
emailrequiredstring

Responses

  • 200
  • 422 Validation error

POST /auth/login

Attempt to authenticate a new session

Request body

NameType
emailrequiredstring
passwordrequiredstring
rememberstring

Responses

  • 200
  • 422 Validation error

POST /auth/logout

Destroy an authenticated session

Responses

  • 200
  • 401 Unauthenticated

POST /auth/reset-password

Reset the user's password

Request body

NameType
tokenrequiredstring
emailrequiredstring
passwordrequiredstring

Responses

  • 200
  • 422 Validation error

POST /auth/two-factor-challenge

Attempt to authenticate a new session using the two factor authentication code

Request body

NameType
codestring | null
recovery_codestring | null

Responses

  • 200
  • 422 Validation error

POST /auth/user/confirm-password

Confirm the user's password

Request body

NameType
passwordstring | null

Responses

  • 200
  • 422 Validation error
  • 401 Unauthenticated

GET /auth/user/confirmed-password-status

Get the password confirmation status

Responses

  • 200
  • 401 Unauthenticated

POST /auth/user/confirmed-two-factor-authentication

Enable two factor authentication for the user

Request body

NameType
codestring

Responses

  • 200
  • 401 Unauthenticated

POST /auth/user/two-factor-authentication

Enable two factor authentication for the user

Request body

NameType
forceboolean

Responses

  • 200
  • 401 Unauthenticated

DELETE /auth/user/two-factor-authentication

Disable two factor authentication for the user

Responses

  • 200
  • 401 Unauthenticated

GET /auth/user/two-factor-qr-code

Get the SVG element for the user's two factor authentication QR code

Responses

  • 200
  • 401 Unauthenticated

GET /auth/user/two-factor-recovery-codes

Get the two factor authentication recovery codes for authenticated user

Responses

  • 200
  • 401 Unauthenticated

POST /auth/user/two-factor-recovery-codes

Generate a fresh set of two factor authentication recovery codes

Responses

  • 200
  • 401 Unauthenticated

GET /auth/user/two-factor-secret-key

Get the current user's two factor authentication setup / secret key

Responses

  • 200
  • 404 Not found
  • 401 Unauthenticated