Skip to main content
GET
Get company custom field

Authorizations

Authorization
string
header
required

Authenticate with an API access token in the Authorization header: Authorization: Bearer <token>. Create a token from the API Access Tokens page in Contractors Cloud, under Integrations.

Path Parameters

companyId
integer
required

The id of the company.

customFieldId
integer
required

The id of the custom field.

Query Parameters

include
string

Comma-separated related resources to embed. Allowed: company.

Response

The requested custom field definition.

id
integer

The custom field's unique identifier.

Example:

19

tenant_id
integer

The id of your organization's account.

Example:

12

company_id
integer

The id of the company this custom field belongs to.

Example:

6

label
string

The custom field's display label.

Example:

"Roof Pitch"

type
enum<string>

The kind of value this custom field accepts. date = a date, string = single-line text, select = one of options, int = a whole number, bool = a checkbox (true/false), text = multi-line text.

Available options:
date,
string,
select,
int,
bool,
text
Example:

"select"

options
string[] | null

The list of selectable values when type is select. Null for other field types.

Example:
comment
string | null

Free-form notes about the custom field. Null if not set.

position
integer

The custom field's position among a company's custom fields, used for ordering. Lower numbers appear earlier.

Example:

2

is_active
boolean

Whether the custom field is active. Only active custom fields can be assigned a value when creating a project.

Example:

true

is_required
boolean

Whether a value for this field must be provided when creating a project. Only enforced while the field is active.

Example:

true