Create a Custom Field
Creates a new custom field for your account.
Headers
- Type: stringContent
- Type application/json
Body·
application/json
- Type: objectcustom
_field required
Responses
- application/json
- application/json
- application/json
- application/json
Request Example for post/custom_fields
curl /custom_fields \
--request POST \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: YOUR_SECRET_TOKEN' \
--data '{
"custom_field": {
"key": "",
"label": "",
"object_ref": "campaign",
"active": true
}
}'
{
"custom_field": {
"id": 1,
"key": "string",
"label": "string",
"object_ref": "string",
"active": true,
"created_at": "2026-06-19T19:21:28.124Z",
"updated_at": "2026-06-19T19:21:28.124Z"
}
}