# One field is wrong

The invalid_field error: why it happens and how to fix it.

Code: `invalid_field`. Status: `422`.

## Why it happens

The JSON is fine, but one value breaks a rule.

## How to fix it

Read field and message in the answer. They name the field and the rule.

## What the answer looks like

```json title="Example answer"
{
  "error": {
    "code": "invalid_field",
    "message": "A short message about this call.",
    "docs": "https://usetotems.com/docs/errors/invalid_field"
  },
  "request_id": "req_..."
}
```

The answer can also have `field` and `help`. See [all error codes](/docs/api/errors).
