# bad_request

> The bad_request error from the Warmerly API (HTTP 400): Malformed request body/query, often paired with field errors in `details`.

Source: https://warmerly.com/docs/errors/bad-request

The API returns `bad_request` with HTTP status **400**.

Malformed request body/query, often paired with field errors in `details`.

## Where the API reference mentions it

- [Steps (Campaigns)](https://warmerly.com/docs/campaigns/steps)
- [Create a key (API Keys)](https://warmerly.com/docs/keys/create-a-key)

## What the response looks like

```json
{
  "error": {
    "code": "bad_request",
    "message": "...",
    "details": null
  }
}
```

`error.code` is stable and safe to branch on. `error.message` is debugging context, not something to parse. The full list of codes, and the rate limits, are on [Errors & Rate Limits](https://warmerly.com/docs/errors).

## More from Errors & Rate Limits

- [unauthorized](https://warmerly.com/docs/errors/unauthorized): The unauthorized error from the Warmerly API (HTTP 401): Missing, invalid, or revoked API key.
- [forbidden](https://warmerly.com/docs/errors/forbidden): The forbidden error from the Warmerly API (HTTP 403): Authenticated, but not allowed to access this resource.
- [account_suspended](https://warmerly.com/docs/errors/account-suspended): The account_suspended error from the Warmerly API (HTTP 403): The account is suspended. Returned on every…
