Skip to content

Companies

Companies represent the organizations your team works with. Link contacts to companies, track key details, and see the full picture of every business relationship.

FieldTypeDescription
iduuidUnique identifier of the company (UUID).
account_iduuidID of the account that owns this company (UUID).
created_byuuidID of the user who created this company (UUID).
namestringCompany name.
domainstringPrimary domain of the company (e.g. example.com).
industrystringIndustry the company operates in (free-form text).
notesstringFree-form notes about the company.
phonestringCompany phone number.
websitestringCompany website URL.
linkedin_urlstringCompany LinkedIn profile URL.
addressstringStreet address.
citystringCity.
statestringState or province.
zip_codestringPostal or ZIP code.
countrystringCountry.
employee_countint?Number of employees, or null if unknown.
annual_revenueint?Annual revenue in integer cents, or null if unknown.
tagsstring[]Tags associated with the company; normalized to lowercase, trimmed, and deduplicated.
custom_fieldsobjectCustom field values as a JSON object, validated against the account’s company custom field definitions.
created_atdatetimeTimestamp when the company was created (ISO 8601).
updated_atdatetimeTimestamp when the company was last updated (ISO 8601).

Endpoint: companies-create

FieldTypeRequiredDescription
namestringYesCompany name.
domainstringNoPrimary domain of the company (e.g. example.com).
industrystringNoIndustry the company operates in (free-form text).
notesstringNoFree-form notes about the company.
phonestringNoCompany phone number.
websitestringNoCompany website URL.
linkedin_urlstringNoCompany LinkedIn profile URL.
addressstringNoStreet address.
citystringNoCity.
statestringNoState or province.
zip_codestringNoPostal or ZIP code.
countrystringNoCountry.
employee_countint?NoNumber of employees.
annual_revenueint?NoAnnual revenue in integer cents.
tagsstring[]NoTags to assign; normalized to lowercase, trimmed, and deduplicated.
custom_fieldsobject?NoCustom field values as a JSON object, validated against the account’s company custom field definitions.
Terminal window
curl -X POST https://api.driftwoodapp.com/api/companies-create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "..."}'

Endpoint: companies-delete

FieldTypeRequiredDescription
idstringYesID of the company to delete (UUID).
Terminal window
curl -X POST https://api.driftwoodapp.com/api/companies-delete \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'

Endpoint: companies-get

FieldTypeRequiredDescription
idstringYesID of the company to retrieve (UUID).
Terminal window
curl -X POST https://api.driftwoodapp.com/api/companies-get \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'

List companies with filtering and pagination

Section titled “List companies with filtering and pagination”

Endpoint: companies-list

FieldTypeRequiredDescription
searchstringNoFull-text search query matched against company fields.
tagsstring[]NoFilter to companies that have all of these tags; normalized to lowercase, trimmed, and deduplicated.
cursorstringNoOpaque pagination cursor from a previous response’s next_cursor.
limitintNoMaximum number of companies to return per page.
Terminal window
curl -X POST https://api.driftwoodapp.com/api/companies-list \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Endpoint: companies-update

FieldTypeRequiredDescription
idstringYesID of the company to update (UUID). Required.
namestring?NoNew company name. Omit to leave unchanged.
domainstring?NoNew primary domain. Omit to leave unchanged.
industrystring?NoNew industry (free-form text). Omit to leave unchanged.
notesstring?NoNew notes. Omit to leave unchanged.
phonestring?NoNew phone number. Omit to leave unchanged.
websitestring?NoNew website URL. Omit to leave unchanged.
linkedin_urlstring?NoNew LinkedIn profile URL. Omit to leave unchanged.
addressstring?NoNew street address. Omit to leave unchanged.
citystring?NoNew city. Omit to leave unchanged.
statestring?NoNew state or province. Omit to leave unchanged.
zip_codestring?NoNew postal or ZIP code. Omit to leave unchanged.
countrystring?NoNew country. Omit to leave unchanged.
employee_countint?NoNew employee count. Omit to leave unchanged.
annual_revenueint?NoNew annual revenue in integer cents. Omit to leave unchanged.
tagsstring[]NoReplacement set of tags; normalized to lowercase, trimmed, and deduplicated. Omit to leave unchanged.
custom_fieldsobject?NoCustom field values to merge onto existing values, validated against the account’s company custom field definitions. Omit to leave unchanged.
Terminal window
curl -X POST https://api.driftwoodapp.com/api/companies-update \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'
CodeDescription
companies.invalid_requestinvalid request body
companies.invalid_custom_fieldscustom field validation failed
companies.invalid_idinvalid company ID
companies.not_foundcompany not found