Skip to main content

Get Contact Custom Fields

Retrieve all custom field values for a specific contact.

Request​

GET /contacts/{contactUuid}/custom-fields

Path Parameters​

ParameterTypeDescription
contactUuidstringContact's UUID

Query Parameters​

ParameterTypeDefaultDescription
pageinteger1Page number (min: 1)
per_pageinteger100Items per page (min: 1, max: 100)

Ordering: Results are ordered by created_at descending (newest first).

Example Request​

curl -X GET "https://email.easy.tools/api/v1/contacts/88727c70-1a81-4677-a14f-d2039bfb8a5e/custom-fields?page=1&per_page=50" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"

Response​

Success Response (200 OK)​

{
"data": [
{
"uuid": "ac01820d-7686-4a84-baaf-db773a117642",
"field_key": "company",
"name": "Company",
"type": "text",
"value": "Acme Inc"
},
{
"uuid": "431a5cd9-a69b-48c3-b25f-2031a2b5a582",
"field_key": "plan",
"name": "Plan",
"type": "select",
"value": "enterprise"
},
{
"uuid": "3f07e9ca-e8b6-4822-b77b-dcb26b32ac8b",
"field_key": "is_vip",
"name": "VIP Customer",
"type": "boolean",
"value": true
},
{
"uuid": "f10b27ee-315f-4c3c-a780-5f550e3a9db9",
"field_key": "events-attended",
"name": "Events Attended",
"type": "list",
"value": ["Webinar X", "Webinar Y"]
}
],
"pagination": {
"current_page": 1,
"per_page": 50,
"total": 4
}
}

Response Fields​

FieldTypeDescription
uuidstringField's unique identifier
field_keystringUnique key for the field
namestringDisplay name
typestringField type
valuemixedThe field value (type depends on field type)

Supported Field Types and Value Formats​

Field TypeValue TypeExample
textstring"Acme Inc"
numbernumber42, 3.14
booleanbooleantrue, false
datestring"2025-01-15"
datetimestring"2025-01-15T10:30:00Z"
selectstring"enterprise"
listarray of strings["Webinar X", "Webinar Y"]

Pagination Object​

FieldTypeDescription
current_pageintegerCurrent page number
per_pageintegerNumber of items per page
totalintegerTotal number of custom field values

Error Responses​

Not Found Error (404)​

{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Contact not found"
}
}

Validation Error (422 Unprocessable Entity)​

{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid",
"details": {
"per_page": ["The per page field must not be greater than 100."]
}
}
}