curl --request POST \
--url https://api.example.com/api/auth/reset-password \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"error": "<string>"
}Reset a user password using a reset token
curl --request POST \
--url https://api.example.com/api/auth/reset-password \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"error": "<string>"
}Resets a user’s password using the token sent to their email via the forgot password endpoint. This completes the password recovery process.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pakomercado0517/tresa-contafy-web/llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST https://api.contafy.com/api/auth/reset-password \
-H "Content-Type: application/json" \
-d '{
"token": "prt_x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6",
"password": "NewSecurePass123!"
}'
{
"message": "Contraseña restablecida exitosamente"
}
{
"error": "INVALID_TOKEN",
"message": "El token de restablecimiento es inválido o ha expirado"
}
{
"error": "VALIDATION_ERROR",
"message": "Token y contraseña son requeridos"
}
{
"error": "VALIDATION_ERROR",
"message": "La contraseña debe tener al menos 8 caracteres"
}