Customer - Password Resets

Requests a password reset token

Endpoint

POST /v1/customer_resets

Parameters

Name Description
email required Email
redirect required Path to redirect the user to

Request

curl "https://capi.storyblok.com/v1/customer_resets" -d '{"email":"charmaine@wilkinson.name","redirect":"reset_password/"}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=aaf78614a904faa868ed3d362292a395" \

Resets a customer password

Endpoint

PUT /v1/customer_resets/me

Parameters

Name Description
reset_password_token required Reset token
password required Password
password_confirmation required Password confirmation

Request

curl "https://capi.storyblok.com/v1/customer_resets/me" -d '{"reset_password_token":"936f65ac3e55355762a0c5f237bd1ef0539da00d3fa9bd1c340c18b27be6537a","password":"newpassword","password_confirmation":"newpassword"}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=a9f28caf9be867d0e38e68b55e9e631f" \

Response

[
  "Reset password token is invalid"
]