REST API áttekintés

API · v1.4.0

Authentication

14 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.

POST /auth/forgot-password

Send a reset link to the given user

Kéréstörzs

NévTípus
emailkötelezőstring

Válaszok

  • 200
  • 422 Validation error

POST /auth/login

Attempt to authenticate a new session

Kéréstörzs

NévTípus
emailkötelezőstring
passwordkötelezőstring
rememberstring

Válaszok

  • 200
  • 422 Validation error

POST /auth/logout

Destroy an authenticated session

Válaszok

  • 200
  • 401 Unauthenticated

POST /auth/reset-password

Reset the user's password

Kéréstörzs

NévTípus
tokenkötelezőstring
emailkötelezőstring
passwordkötelezőstring

Válaszok

  • 200
  • 422 Validation error

POST /auth/two-factor-challenge

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

Kéréstörzs

NévTípus
codestring | null
recovery_codestring | null

Válaszok

  • 200
  • 422 Validation error

POST /auth/user/confirm-password

Confirm the user's password

Kéréstörzs

NévTípus
passwordstring | null

Válaszok

  • 200
  • 422 Validation error
  • 401 Unauthenticated

GET /auth/user/confirmed-password-status

Get the password confirmation status

Válaszok

  • 200
  • 401 Unauthenticated

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

Enable two factor authentication for the user

Kéréstörzs

NévTípus
codestring

Válaszok

  • 200
  • 401 Unauthenticated

POST /auth/user/two-factor-authentication

Enable two factor authentication for the user

Kéréstörzs

NévTípus
forceboolean

Válaszok

  • 200
  • 401 Unauthenticated

DELETE /auth/user/two-factor-authentication

Disable two factor authentication for the user

Válaszok

  • 200
  • 401 Unauthenticated

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

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

Válaszok

  • 200
  • 401 Unauthenticated

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

Get the two factor authentication recovery codes for authenticated user

Válaszok

  • 200
  • 401 Unauthenticated

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

Generate a fresh set of two factor authentication recovery codes

Válaszok

  • 200
  • 401 Unauthenticated

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

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

Válaszok

  • 200
  • 404 Not found
  • 401 Unauthenticated