# E01002 — InvalidRequest

The request was malformed.

- **HTTP status**: `400`
- **Type**: `bad_request_error`
- **Name**: `InvalidRequest`

## What to do

The request was malformed: an unparseable body or an invalid header (for example, a bad `Idempotency-Key`). Fix the request shape before retrying: check the JSON syntax, content type, and header values against the endpoint's reference.

## Related

- [E01xxx — Infrastructure](/docs/api/errors/E01xxx): every code in this range
- [Errors](/docs/api/errors): the full wire contract, status mapping, and error catalog
- [Error handling](/docs/guides/errors): branching on `type` and `code`, validation details, and `vendor_code`