cURL
curl --request POST \ --url https://api.example.com/api/auth/forgot-password \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>" } '
{ "message": "<string>", "error": "<string>" }
Request a password reset email
curl -X POST https://api.contafy.com/api/auth/forgot-password \ -H "Content-Type: application/json" \ -d '{ "email": "usuario@ejemplo.com" }'
{ "message": "Si el email existe en nuestro sistema, recibirás instrucciones para restablecer tu contraseña" }
{ "error": "VALIDATION_ERROR", "message": "Email es requerido" }
{ "error": "VALIDATION_ERROR", "message": "El formato del email es inválido" }
{ "error": "RATE_LIMIT_EXCEEDED", "message": "Demasiadas solicitudes. Por favor intenta más tarde" }