Recipe

Fix consent_required errors

consent_required is the most common enquiry rejection. The public enquiry endpoint requires fields.consent to equal the string "yes" on every submission. This is a hard gate — there is no bypass — so collect real consent and send it correctly.

2 min read

422Status
fields.consentThe field
"yes"Exact value

The rule

Every enquiry submission must include fields.consent equal to the exact string "yes". A missing flag, a boolean true, or "Yes" all fail with consent_required.

Send it right

Collect explicit consent in your UI, then send the string.

{ "form": "contact-us",
  "fields": { "name": "Jordan Ellis", "email": "[email protected]",
              "message": "Please call me.", "consent": "yes" } }

Why it is strict

The flag is the record that the person agreed to be contacted. It is deliberately un-bypassable, which is why it is validated as an exact string rather than a loose truthy value.

Frequently asked questions

Can I default consent to yes server-side?

No — and you should not. The flag records a real human agreement. Collect it explicitly, then pass it through.

Does "true" or true work?

No. It must be the exact string "yes". Anything else fails with consent_required. See the error page.

Funding for UK limited companies

Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.