Skip to content

Forgot Password

Request a password reset email. A reset link will be sent to the customer's email address.

Endpoint

POST /api/shop/customers/forgot-password

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key

Note: No authentication required for this endpoint

Request Body

json
{
  "email": "[email protected]"
}

Request Parameters

ParameterTypeRequiredDescription
emailstringYesEmail address associated with account

Response Fields (200 OK)

FieldTypeDescription
messagestringSuccess message

Email Contents

The reset email will contain:

  • Reset link with token
  • Link expiration information
  • Instructions for password reset
  • Security information

The email includes a link in format:

https://yourstore.com/reset-password?token=xxxxx

Token Validity

  • Reset token valid for 24 hours
  • Can be used only once
  • Token is invalidated after successful reset
  • Requesting new reset invalidates previous token

Use Cases

  • Customer forgot their password
  • Locked out of account
  • Need to reset forgotten password
  • Regain access to account
  • Security password change

Important Notes

  • No authentication required
  • Email must exist in system
  • Token is sent via email
  • User must click link in email
  • Token expires after 24 hours

Security

  • Token-based reset (not SMS)
  • Email verification required
  • One-time use tokens
  • Prevents unauthorized access
  • Rate limiting (optional)

Released under the MIT License.