Reset Password
Reset user password with obtained token from the email.
Endpoint
http
POST /api/v1/password/resetParameters
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | yes | The user email for which password recovery link was generated. |
token | string | yes | The password reset token received in the email. |
password | string | yes | The new user password. |
password_confirmation | string | yes | The new user password confirmation. |
Request example
sh
curl --location --request POST 'https://files.ro/api/v1/password/reset' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "jane@doe.com",
"token": "{token}",
"password": "filesro",
"password_confirmation": "filesro"
}'Response
json
{
"message": "Your password has been reset!"
}json
{
"error": "This password reset token is invalid."
}