Company

Create a new company

post

Creates a new company with the provided name and assigns it to the specified or current user.

Body
namestringRequired

The name of the company to create.

Example: Example Company
user_idintegerOptional

Optional user ID to associate with the new company. Defaults to the current session user.

Example: 12345
Responses
200

success

application/json
post
/company
200

success

Retrieve company details

get

Fetches the details of a company based on company ID, path, or invitation token.

Query parameters
company_idintegerOptional

The ID of the company to retrieve.

Example: 98765
pathstringOptional

The unique path of the company to retrieve.

Example: example-company
invitation_tokenstringOptional

The invitation token to retrieve the company associated with it.

Example: abc123def456
Responses
200

success

application/json
get
/company
200

success

Update company details

put

Updates the details of an existing company based on the provided fields.

Body
company_idintegerRequired

The ID of the company to update.

Example: 98765
send_followup_lead_emailintegerOptional

Number of days to wait before sending a follow-up lead email.

Example: 7
custom_urlstringOptional

Custom URL for the company.

Example: https://customurl.com
lock_profilesinteger · enumOptional

Flag to lock profiles for the company.

Example: 0Possible values:
force_ssointeger · enumOptional

Flag to force Single Sign-On (SSO) for the company.

Example: 0Possible values:
signup_optionsarray · enumOptional

Options for signup, e.g., 'email_password', 'google'.

Example: ["email_password"]Possible values:
profiles_publicinteger · enumOptional

Flag to make profiles public.

Example: 0Possible values:
descriptionstringOptional

The description of the company.

Example: This is a description of the company.
image_profilestringOptional

URL or path to the company's profile image.

Example: https://some-domain/images/profile.png
image_bannerstringOptional

URL or path to the company's banner image.

Example: https://some-domain/images/banner.png
backgroundstringOptional

Hex code for the company's background color.

Example: #ffffff
iconsstringOptional

Hex code for the company's icon color.

Example: #000000
textstringOptional

Hex code for the company's text color.

Example: #333333
fontstringOptional

Font used for the company's branding.

Example: https://some-domain/fonts/some-font.ttf
namestringOptional

The updated name of the company.

Example: Updated Company Name
lead_form_settinginteger · enumOptional

Lead form setting (valid values are 0, 1, 2, 3).

Example: 1Possible values:
lead_form_custominteger · enumOptional

Indicates whether the lead form is customized.

Example: 0Possible values:
disable_lead_forminteger · enumOptional

Flag to disable the lead form.

Example: 0Possible values:
instant_lead_form_oninteger · enumOptional

Flag to instantly enable the lead form.

Example: 0Possible values:
user_email_unchangeableinteger · enumOptional

Flag to make user emails unchangeable.

Example: 1Possible values:
lead_opt_out_availableinteger · enumOptional

Flag to allow lead opt-out.

Example: 0Possible values:
languagestringOptional

Language setting for the company.

Example: en
lead_data_consent_email_textstringOptional

Text for lead data consent emails.

Example: Please provide consent to receive emails.
uneditable_profile_fieldsstring[]Optional

Fields that cannot be edited in the profile.

Example: ["email","username"]
only_show_own_leadinteger · enumOptional

Flag to only show leads owned by the user.

Example: 0Possible values:
user_idintegerOptional

ID of the user associated with the company.

Example: 12345
send_followup_lead_email_in_daysintegerOptional

Number of days to wait before sending a follow-up lead email.

Example: 7
lead_create_reminder_daysintegerOptional

Number of days to wait before sending a lead creation reminder.

Example: 15
lead_create_reminder_typestringOptional

Type of reminder for lead creation (null or 'email').

Example: email
pathstringOptional

Unique path for the company.

Example: new-path
lead_data_consent_requiredinteger · enumOptional

Flag to require consent for lead data.

Example: 0Possible values:
lead_form_field_orderinteger[]Optional

Array of form field IDs in the desired order.

Example: [1,2,3]
Responses
200

success

application/json
put
/company
200

success

Delete a company

delete

Deletes the company specified by the provided company ID.

Body
company_idintegerRequired

The ID of the company to delete.

Example: 98765
Responses
200

success

application/json
delete
/company
200

success

Last updated