---
title: "Working with custom fields"
img: https://s3.us-east-2.amazonaws.com/unified-article-images/working_with_custom_fields-icon.png
date: 2026-11-09T04:27:00.000Z
updated: "2026-11-30T16:41:37.921Z"
tag: Guides
integrations: 
description: "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..."
url: "https://docs.unified.to/guides/working_with_custom_fields"
---

# 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:


```plain text
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 as `TEXT`, `NUMBER`, `DATE`, `BOOLEAN`, `SINGLE_SELECT` or `MULTIPLE_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:


```json
{
  "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:


```plain text
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:


```plain text
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** **`metadata`** **array is missing:** it's probably a slow field that's being skipped. Add `metadata` to the `fields` parameter.
- **A write is rejected:** check that the `slug` exists 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?](https://app.notion.com/p/4286207b83848182bb53d3b5ef2518ca): custom objects, original fields and Passthrough, and how other unified APIs handle custom fields.