Skip to main content
A contact field gives one metadata key on contacts a type. Once plan_interest is a select field with the choices Basic and Pro, every write to metadata.plan_interest is checked against those choices and stored as the choice’s key. Metadata keys without a field stay free-form strings, as before. Values live where they always did: in each contact’s metadata, under the field key. There is no separate values endpoint.

The object

Manage fields

options takes labels ("For sale" gets the key for_sale) or { "key", "label" } objects. billing_address is reserved. An account has at most 100 active fields, and a field at most 100 options. Creating a key that belongs to an archived field answers 422: restore it instead.

Write values

Write values through the contact’s metadata, as on any contact create or update. Values are cast to one canonical string:
A value that does not fit its field answers 400 parameter_invalid with param set to metadata[<key>], and nothing is saved. null or "" clears a value. GET /v1/contacts?metadata[plan_interest]=pro filters on the stored string, so it matches select, boolean and the other single values exactly. It does not match one choice inside a multi_select value; use a broadcast audience for that.

Use them

  • Email campaigns: audience: { "fields": { "plan_interest": "pro" } } sends to contacts that match every pair. A multi_select pair matches contacts who have that choice. See POST /v1/broadcasts.
  • Email sequences: trigger: { "event": "contact.field_changed", "field": "plan_interest", "value": "pro" } enrolls a contact when the field becomes pro, or when pro is added to a multi_select. Omit value to enroll on any new value. Clearing a field enrolls no one.
  • Emails: {{customer.fields.plan_interest}} prints the stored value.
  • Webhooks and tasks: contact.field_changed fires once per changed field, after the change is saved. data.object is the contact, with the new value in metadata, and data.field is the field. A task on this event runs for every field; check data.field.id in its instructions to act on one.