POST Request Password Reset
Sends a password reset code to the customer's email address.
Only accounts that use a password can reset one: a guest account, or an account created through social sign-in, is refused.
This is unavailable for brands that use an external identity provider — check GET /brands/{brand_id}/customer-identity-provider-configuration and send the customer to the provider instead.
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringX
- Request - I D requiredUnique request identifier
Body
required
application/json
- Type: stringFormat: emailemailrequired
Responses
- application/json
- 400
No password account exists for that email on this brand, or the account uses social sign-in.
Request Example for post/customers/password/request-reset
curl https://api-public-demo.menu.app/api/customers/password/request-reset \
--request POST \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"email": "ada@example.com"
}'
{
"status": "OK",
"code": 200,
"data": {
"info_message": {
"title": "Check your email",
"body": "We have sent a reset code to ada@example.com."
}
}
}