Skip to content
Sign in Create account

Reset password with emailed token

POST /api/auth/reset-password

Consumes the {token,email,password,password_confirmation} payload. Password must be at least 12 characters long. On success returns a bearer token and revokes prior tokens.

This operation needs no authentication.

Request body

application/json object

  • email string (email) required
  • password string (password) required
    Length: at least 12 characters
  • password_confirmation string required
  • token string required

Generated sample

{
  "email": "user@example.com",
  "password": "string",
  "password_confirmation": "string",
  "token": "string"
}

Responses

200 Password updated; caller is signed in

application/json object

  • message string
  • token string

Generated sample

{
  "message": "string",
  "token": "string"
}
403 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 Validation error or reset_failed

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Route rate limit exceeded.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string