---
title: "List custom contact fields"
description: "Retrieve a list of the custom contact fields defined in your workspace, cursor-paginated. `GET /api/v1/contact-fields`"
url: https://www.unitpost.com/docs/platform/get-contact-fields
section: "Platform API reference"
updated: 2026-11-17
---
# List custom contact fields

`GET /api/v1/contact-fields`

Retrieve a list of the custom contact fields defined in your workspace, cursor-paginated. These are the typed attributes (text, number, date, boolean, and so on) you can set on any contact and reference as template variables. Define a new one with [Create a custom contact field](https://www.unitpost.com/docs/platform/post-contact-fields). Requires the `contacts:read` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Max rows to return (default 20, max 100). |
| `after` | query | string | no | Return rows after this id (forward paging). |
| `before` | query | string | no | Return rows before this id (backward paging). |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `id` | string | yes | — |
| `key` | string | yes | — |
| `label` | string | yes | — |
| `type` | enum | yes | One of: `text`, `number`, `boolean`, `date`. |
| `default_value` | string \| null | yes | The value used for any contact that has none for this field (key missing or null): when an email is sent (merge tags) and when segments are evaluated. It's never written onto contacts, so changing it takes effect everywhere at once. Stored as a string and coerced to the field's type; null means no default. In segment filters, is_set / is_not_set check whether the contact itself has a value. |
| `position` | number | yes | — |
| `created_at` | string | yes | — |
| `updated_at` | string | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 200 | A page of contact fields. |
| 401 | Missing or invalid API key. |
| 422 | Invalid pagination params. |

## Example request

```bash
curl -X GET 'https://www.unitpost.com/api/v1/contact-fields' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "contact_field",
      "id": "id_123",
      "key": "string",
      "label": "string",
      "type": "text",
      "default_value": "string",
      "position": 0,
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z"
    }
  ]
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/platform/get-contact-fields
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
