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’smetadata, as on any contact create or update. Values are cast to one canonical string:
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. Amulti_selectpair matches contacts who have that choice. SeePOST /v1/broadcasts. - Email sequences:
trigger: { "event": "contact.field_changed", "field": "plan_interest", "value": "pro" }enrolls a contact when the field becomespro, or whenprois added to amulti_select. Omitvalueto 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_changedfires once per changed field, after the change is saved.data.objectis the contact, with the new value inmetadata, anddata.fieldis the field. A task on this event runs for every field; checkdata.field.idin its instructions to act on one.

