custom fields
List custom field definitions
Returns all custom field definitions. Optionally filter by profile.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
profileId?string
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"
}