Companies represent the organizations your team works with. Link contacts to companies, track key details, and see the full picture of every business relationship.
Field Type Description iduuid Unique identifier of the company (UUID). account_iduuid ID of the account that owns this company (UUID). created_byuuid ID of the user who created this company (UUID). namestring Company name. domainstring Primary domain of the company (e.g. example.com). industrystring Industry the company operates in (free-form text). notesstring Free-form notes about the company. phonestring Company phone number. websitestring Company website URL. linkedin_urlstring Company LinkedIn profile URL. addressstring Street address. citystring City. statestring State or province. zip_codestring Postal or ZIP code. countrystring Country. 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_fieldsobject Custom field values as a JSON object, validated against the account’s company custom field definitions. created_atdatetime Timestamp when the company was created (ISO 8601). updated_atdatetime Timestamp when the company was last updated (ISO 8601).
Endpoint: companies-create
Field Type Required Description namestring Yes Company name. domainstring No Primary domain of the company (e.g. example.com). industrystring No Industry the company operates in (free-form text). notesstring No Free-form notes about the company. phonestring No Company phone number. websitestring No Company website URL. linkedin_urlstring No Company LinkedIn profile URL. addressstring No Street address. citystring No City. statestring No State or province. zip_codestring No Postal or ZIP code. countrystring No Country. employee_countint? No Number of employees. annual_revenueint? No Annual revenue in integer cents. tagsstring[] No Tags to assign; normalized to lowercase, trimmed, and deduplicated. custom_fieldsobject? No Custom field values as a JSON object, validated against the account’s company custom field definitions.
curl -X POST https://api.driftwoodapp.com/api/companies-create \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: companies-delete
Field Type Required Description idstring Yes ID of the company to delete (UUID).
curl -X POST https://api.driftwoodapp.com/api/companies-delete \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: companies-get
Field Type Required Description idstring Yes ID of the company to retrieve (UUID).
curl -X POST https://api.driftwoodapp.com/api/companies-get \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: companies-list
Field Type Required Description searchstring No Full-text search query matched against company fields. tagsstring[] No Filter to companies that have all of these tags; normalized to lowercase, trimmed, and deduplicated. cursorstring No Opaque pagination cursor from a previous response’s next_cursor. limitint No Maximum number of companies to return per page.
curl -X POST https://api.driftwoodapp.com/api/companies-list \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: companies-update
Field Type Required Description idstring Yes ID of the company to update (UUID). Required. namestring? No New company name. Omit to leave unchanged. domainstring? No New primary domain. Omit to leave unchanged. industrystring? No New industry (free-form text). Omit to leave unchanged. notesstring? No New notes. Omit to leave unchanged. phonestring? No New phone number. Omit to leave unchanged. websitestring? No New website URL. Omit to leave unchanged. linkedin_urlstring? No New LinkedIn profile URL. Omit to leave unchanged. addressstring? No New street address. Omit to leave unchanged. citystring? No New city. Omit to leave unchanged. statestring? No New state or province. Omit to leave unchanged. zip_codestring? No New postal or ZIP code. Omit to leave unchanged. countrystring? No New country. Omit to leave unchanged. employee_countint? No New employee count. Omit to leave unchanged. annual_revenueint? No New annual revenue in integer cents. Omit to leave unchanged. tagsstring[] No Replacement set of tags; normalized to lowercase, trimmed, and deduplicated. Omit to leave unchanged. custom_fieldsobject? No Custom field values to merge onto existing values, validated against the account’s company custom field definitions. Omit to leave unchanged.
curl -X POST https://api.driftwoodapp.com/api/companies-update \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Code Description companies.invalid_requestinvalid request body companies.invalid_custom_fieldscustom field validation failed companies.invalid_idinvalid company ID companies.not_foundcompany not found