Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

List custom fields for segment criteria

GET
/api/v3/contacts/custom-fields/segment-criteria
curl --request GET \
--url 'https://api.tryletterhead.com/api/v3/contacts/custom-fields/segment-criteria?api=true' \
--header 'Authorization: Bearer <token>'

Lists the custom fields available to build segment criteria with — your company’s own custom fields, merged with Letterhead’s system-managed fields (mailbox provider, last-open date, and similar). Each entry carries a source of user or system so you can tell them apart. This is the catalog Create a segment and List segmentscriteria.conditions[].customFieldKey values are drawn from.

This is a company-level (v3) read. Authenticate with a company API key as a Bearer token.

api
required
boolean

Required. Set to true.

200 OK

Media type application/json
object
items
Array<object>
object
id
integer
name
string
label
string
type
string
required
boolean
sortOrder
integer
createdAt
string
updatedAt
string
source

user or system.

string
message
string
total
integer
Example
{
"items": [
{
"id": 4,
"name": "favoriteColor",
"label": "Favorite color",
"type": "text",
"required": false,
"sortOrder": 0,
"createdAt": "2026-05-01T10:00:00+00:00",
"updatedAt": "2026-05-01T10:00:00+00:00",
"source": "user"
},
{
"id": -3,
"name": "__lh.mailboxProvider",
"label": "Mailbox provider",
"type": "text",
"required": false,
"sortOrder": 0,
"createdAt": "",
"updatedAt": "",
"source": "system"
}
],
"message": "Segment criteria fields retrieved.",
"total": 2
}

Still can’t find what you need? Contact support.