Skip to main content

List All Fields

Retrieve all contact fields defined in your workspace. Fields represent the data schema for contacts and are referenced by their merge_tag when creating or updating contacts.


Endpoint

GET https://api.campaignlark.com/v1/fields

Request

This endpoint accepts no query parameters or request body.


Response

Success — 200 OK

{
"data": [
{
"id": 1,
"label": "Email Address",
"merge_tag": "email_address",
"type": "TEXT",
"definition": "",
"default_value": "",
"order": 0,
"immutable": true,
"required": true
},
{
"id": 2,
"label": "First Name",
"merge_tag": "first_name",
"type": "TEXT",
"definition": "",
"default_value": "",
"order": 1,
"immutable": false,
"required": false
}
]
}

Response Fields

FieldTypeDescription
idintegerUnique identifier for the field.
labelstringHuman-readable display name for the field.
merge_tagstringThe key used to reference this field in contact data payloads (e.g. email_address).
typestringData type of the field. See Field Types below.
definitionstringAdditional field configuration (e.g. options for multi-select fields).
default_valuestringValue used when no value is provided for this field.
orderintegerDisplay order of the field.
immutablebooleanIf true, this field cannot be deleted or renamed. System fields such as email_address are immutable.
requiredbooleanIf true, this field must have a value on every contact.

Field Types

ValueDescription
TEXTPlain text string.
NUMBERNumeric value.
BOOLBoolean (true / false).
DATEDate value in RFC 3339 format.
MULTIMulti-select; valid options are defined in definition.