HSX_E_API_BAD_REQUEST

Bad request to the API.

What this error means

4xx response other than the dedicated codes.

When this error stops a command, hs-x exits with code 50. With --json, the failure is reported as a structured error whose code field is HSX_E_API_BAD_REQUEST — stable to match on in scripts and agents.

Likely causes

  • Bad request body shape
  • Missing required field

How to fix it

  • Re-run with --debug to see the response body

Still stuck? Re-run the command with --debug for the wire-level detail, or hs-x doctor to check accounts, link state, and connectivity in one pass.