Skip to main content

One field is wrong

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

On this page

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

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.

Was this useful?

Your answer stays in this browser.