List custom field definitions
Returns all custom field definitions. Optionally filter by profile.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
Filter by profile. Omit to list across all profiles
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.customfields.listCustomFields();console.log(data);{
"success": true,
"fields": [
{
"id": "string",
"name": "string",
"slug": "string",
"type": "text",
"options": [
"string"
],
"createdAt": "2019-08-24T14:15:22Z"
}
]
}{
"error": "Unauthorized"
}Bulk create contacts POST
Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. When accountId is set, each contact must carry a platformIdentifier; a row missing it is rejected individually (reported in errors[], HTTP 200), not a 400 for the whole import. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
Create custom field POST
Create a new custom field definition. Supported types are text, number, date, boolean, and select.