Skip to main content
POST
/
api
/
v1
/
recovery
/
complete
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..."
}
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
string
required
Reset token from recovery verify step
new_password
string
required
New password (min 12 characters, must include uppercase, lowercase, number, and special character)

Response

message
string
Success message
access_token
string
New access token (user is automatically logged in)
refresh_token
string
New refresh token

Errors

400
object
Invalid token or weak password
404
object
Token not found

Notes

  • User is automatically logged in after password reset
  • All existing sessions are invalidated
  • MFA must be re-verified if enabled