Seguros APIseguros-api reference
Reset user password
Reset user password using token from email. Token is valid for 1 hour and can only be used once.
Reset user password using token from email. Token is valid for 1 hour and can only be used once.
Request Body
application/json
Password reset token and new password
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/auth/reset-password" \ -H "Content-Type: application/json" \ -d '{ "token": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6", "newPassword": "NovaSenha123!" }'{
"message": "Senha redefinida com sucesso!"
}{
"statusCode": 401,
"message": "Token inválido ou expirado"
}