Complete the password recovery process by setting a new password.
curl -X POST https://api.gosentrix.io/api/v1/recovery/complete \
-H "Content-Type: application/json" \
-d '{
"reset_token": "RESET_TOKEN_FROM_VERIFY",
"new_password": "NewSecurePassword123!"
}'
{
"message": "Password reset successfully",
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Request Body
Reset token from recovery verify step
New password (min 12 characters, must include uppercase, lowercase, number, and special character)
Response
New access token (user is automatically logged in)
Errors
Invalid token or weak password
Notes
- User is automatically logged in after password reset
- All existing sessions are invalidated
- MFA must be re-verified if enabled