curl --request PATCH \
--url https://brew.new/api/v1/contacts/{email} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fields": {
"firstName": "Janet",
"plan": "scale"
}
}
'{
"contact": {
"email": "jane@example.com",
"firstName": "Janet",
"lastName": "Doe",
"subscribed": true,
"validationStatus": "valid",
"lastValidatedAt": "2026-04-08T12:01:00.000Z",
"suppressed": false,
"suppressedReason": null,
"consent": {
"source": "form",
"capturedAt": "2026-04-08T12:00:00.000Z",
"policyVersion": "2026-03"
},
"createdAt": "2026-04-08T12:00:00.000Z",
"updatedAt": "2026-04-08T12:05:00.000Z",
"importId": null,
"customFields": {
"plan": "enterprise",
"revenue": 4200
}
},
"updated": [
"firstName",
"plan",
"consent"
],
"warnings": []
}Update a contact
Patches fields on the contact ({ fields: { <name>: <value> } } — core columns or custom fields) and/or records marketing consent provenance ({ consent: { source, capturedAt?, policyVersion?, evidence? } }, never re-subscribing an opt-out). Send one or both. Returns { contact, updated, warnings }: updated lists the fields whose stored value changed (consent included), and is empty when every value sent matched what was stored (nothing is written then). warnings carries the same DATE_ORDER_ASSUMED and FIELD_TYPE_COERCED caveats a single upsert reports: an ambiguous date such as 03/04/2026 reads month/day, so send YYYY-MM-DD. A JSON number past 9007199254740991 (2^53 - 1) arrives already rounded, so a number or string field refuses it with 409 FIELD_TYPE_MISMATCH; send large ids as JSON strings to a string field. fields.subscribed: false unsubscribes; true on a contact who opted out is a 422 RESUBSCRIBE_NOT_ALLOWED (they re-subscribe through their own action, or from their contact page in the Brew app). Two fields keys that name one field (plan and Plan, customFields.plan and plan) are a 422 FIELD_NAME_COLLISION, nothing written.
curl --request PATCH \
--url https://brew.new/api/v1/contacts/{email} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fields": {
"firstName": "Janet",
"plan": "scale"
}
}
'{
"contact": {
"email": "jane@example.com",
"firstName": "Janet",
"lastName": "Doe",
"subscribed": true,
"validationStatus": "valid",
"lastValidatedAt": "2026-04-08T12:01:00.000Z",
"suppressed": false,
"suppressedReason": null,
"consent": {
"source": "form",
"capturedAt": "2026-04-08T12:00:00.000Z",
"policyVersion": "2026-03"
},
"createdAt": "2026-04-08T12:00:00.000Z",
"updatedAt": "2026-04-08T12:05:00.000Z",
"importId": null,
"customFields": {
"plan": "enterprise",
"revenue": 4200
}
},
"updated": [
"firstName",
"plan",
"consent"
],
"warnings": []
}Authorizations
Headers
The brand this request acts on. REQUIRED for organization-scoped credentials (otherwise 400 BRAND_ID_REQUIRED — there is no default brand); list ids with GET /v1/brands. Brand-scoped credentials may omit it, and sending a different brand returns 403 BRAND_SCOPE_MISMATCH. A brand outside your organization returns 404 BRAND_NOT_FOUND.
1 - 64Path Parameters
Body
Response
Patched.
Was this page helpful?