Working with custom fields
November 9, 2026
Most systems let their users add their own fields, such as "Industry" on a CRM contact or "Shirt size" on an employee. Unified returns these custom fields in a metadata array on each record, and lets you list their definitions with the Metadata API.
1. List the custom field definitions
Use the Metadata API to see which custom fields exist for an object, and their names, keys (slug) and formats:
GET /metadata/{connection_id}/metadata?type=crm_contact
Each definition includes:
name: the display name, for example "Industry".slug: the integration's key for the field. Use this to read and write values.format: the data type, such asTEXT,NUMBER,DATE,BOOLEAN,SINGLE_SELECTorMULTIPLE_SELECT.options: the allowed values for select fields, when the integration provides them.is_required: whether the field must be set when creating a record.
2. Read custom field values
Custom field values appear in the record's metadata array:
{
"id": "contact1",
"name": "Jane Doe",
"metadata": [
{ "slug": "industry", "value": "Software", "format": "TEXT" }
]
}
On many integrations, metadata is a slow field. If your workspace has opted out of slow fields, include it in the fields parameter:
GET /crm/{connection_id}/contact?fields=id,name,metadata
See What are slow fields and how to request them.
3. Write custom field values
To set custom fields, create or update the record and include a metadata array. Identify each field by its slug (or id) from the definitions:
PATCH /crm/{connection_id}/contact/{id}
{
"metadata": [
{ "slug": "industry", "value": "Healthcare" }
]
}
Format values to match the field's format:
| Format | Value |
|---|---|
DATE | ISO 8601, for example 2026-11-09 |
NUMBER, PRICE, CURRENCY | A number |
BOOLEAN, YES_NO | true or false |
MULTIPLE_SELECT | An array of option values |
| Everything else | A string |
Creating new custom fields
Some integrations let you create, update or delete custom field definitions through the Metadata API (POST /metadata/{connection_id}/metadata). Many don't, and in that case the field needs to be created in the integration itself first.
Supported objects and integrations
Custom fields are available on many objects, including CRM companies, contacts, deals and leads, ATS candidates, applications and jobs, HRIS employees, accounting invoices and bills, and commerce items. Support varies by integration; check the Feature support tab on the integration's page for the Metadata API and for the metadata field on the object you need.
Troubleshooting
- The
metadataarray is missing: it's probably a slow field that's being skipped. Addmetadatato thefieldsparameter. - A write is rejected: check that the
slugexists in the definitions for that object and that the value matches the field's format and options. Unknown slugs are rejected by the integration. - A field the connected user can't see is missing: Unified reads custom fields with the connected user's permissions in the integration.
- You only need the field once: you can also find it in the integration's original data with
fields=raw.
Related
- How Does Unified.to Handle Custom Fields and Custom Objects?: custom objects, original fields and Passthrough, and how other unified APIs handle custom fields.