Skip to main content
Custom fields extend the default contact profile with the data that matters most to your business. Use this endpoint to create a new custom field in your workspace. You must supply a unique name and a type that matches the kind of data you want to store. Optionally, you can assign the field to an existing folder to keep things organised.
POST /api/v1/custom-fields

Request Body

string
required
A unique name for the custom field. Must be between 1 and 255 characters.
string
required
The data type for the field. Accepted values: shortText, longText, number, date, datetime, boolean, email, phoneNumber.
string | null
The ID of the folder to place this field in. Pass null or omit to leave the field unorganised.

Code Examples

Response

Returns 201 Created with the newly created custom field object.

Response Fields

string
required
The unique identifier for the created custom field.
string
required
The name of the newly created custom field.
string
required
The data type of the field. One of shortText, longText, number, date, datetime, boolean, email, or phoneNumber.
string | null
required
An optional description, or null if none was provided.

Example Response