Skip to main content

Forget Password

POST /auth/forget_password

Description

Requests a password reset code by email. This endpoint intentionally returns the same success message whether the account exists or not.

Request Parameters

Requires Authentication: false

BODY

NameTypeRequiredDescription
emailstringYesAccount email.

Usage Example

await axios.post("https://api.daykeeper.app/auth/forget_password", {
email: "johndoe@example.com",
})

Success Response

{
"message": "If an account with that email exists, a password reset email has been sent."
}

Notes

  • The API does not reveal whether the email exists.
  • Only verified accounts receive reset codes.

Error Response

CodeDescription
200Generic success response, even when the account does not exist
500Server error