Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 608 Bytes

token.md

File metadata and controls

42 lines (34 loc) · 608 Bytes

Forgot password

Endpoint is sending email with link to your website. Link in query parameter contains special GUID which have to used in next endpoint.

Request

METHOD: POST
URL: /forgot/token
BODY:
{
    "email": "[email protected]"
}

Response

STATUS: 200 (Ok)

Errors

STATUS: 404 (NotFound)
BODY: 
{
    "error": true,
    "code": "userNotFound",
    "reason": "User not exists."
}
STATUS: 400 (BadRequest)
BODY: 
{
    "error": true,
    "code": "userAccountIsBlocked",
    "reason": "User account is blocked. You cannot change password right now."
}