Skip to content

Forgot Password

Request a password reset email for an account.

Arguments

NameTypeRequiredDescription
emailString✅ YesCustomer's registered email address

Response

FieldTypeDescription
messageStringSuccess or error message
successBooleanRequest success status

Behavior

  • Sends a password reset link to the customer's email
  • The reset link is valid for a configurable period (typically 24 hours)
  • Customer uses the link to set a new password
  • Old tokens are invalidated when password is reset

Error Responses

json
{
  "errors": {
    "email": ["No account found with this email address."]
  }
}

Email Content

The reset email typically contains:

  • A unique password reset link/token
  • Expiration time for the token
  • Instructions to reset the password
  • Security information

Next Steps

After requesting password reset:

  1. Customer receives email with reset link
  2. Customer clicks the link
  3. Customer enters new password
  4. Customer uses Reset Password mutation to confirm

Released under the MIT License.