Skip to main content
POST
Create a custom_field

Authorizations

Authorization
string
header
required

OAuth access token or Slant personal access token (slnt_pat_...). Read-only personal tokens allow GET requests only.

Headers

Idempotency-Key
string

Unique key to ensure idempotent request handling. If a request with the same key was already processed, the original response will be returned.

Body

application/json
display_name
string
required

Human-readable field name

Example:

"Lead Source"

entity_type
enum<string>
required

Entity type this field applies to (Client and Prospect normalize to Household)

Available options:
Household,
Person,
Contact,
Opportunity,
Business,
Trust,
FinancialAccount,
InsurancePolicy
Example:

"Household"

field_type
enum<string>
required

Data type of the field

Available options:
text,
number,
date,
boolean,
single_select,
multi_select,
rich_text,
url
Example:

"text"

book_id
string

Deprecated. Ignored.

Example:

"abc123xyz"

field_key
string

Unique field key. Starts with a lowercase letter and contains lowercase letters, numbers, and underscores. Generated from display_name when omitted.

Example:

"pageport_lead_source"

options
object

Select-field options. Nest choices under options.select_options; a top-level array is not accepted.

Response

custom_field created

id
string
required

The custom field ID

Example:

"abc123xyz"

field_key
string
required

The unique field key

Example:

"pageport_lead_source"

display_name
string
required

The human-readable field name

Example:

"Lead Source"

entity_type
enum<string>
required

The entity type this field applies to

Available options:
Household,
Person,
Contact,
Opportunity,
Business,
Trust,
FinancialAccount,
InsurancePolicy
Example:

"Household"

field_type
enum<string>
required

The field data type

Available options:
text,
number,
date,
boolean,
single_select,
user_reference,
cross_reference,
rich_text,
url,
multi_select
Example:

"text"

options
object | null

Field-specific options (e.g., select_options for select fields, cross_reference_allowed_target_types for cross_reference)

company_id
string

The company ID