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
iduuid
account_iduuid
created_byuuid
namestring
domainstring
industrystring
notesstring
phonestring
websitestring
linkedin_urlstring
addressstring
citystring
statestring
zip_codestring
countrystring
employee_countint?
annual_revenueint?
tagsstring[]
custom_fieldsobject
created_atdatetime
updated_atdatetime

Endpoint: companies-create

FieldTypeRequiredDescription
namestringYes
domainstringNo
industrystringNo
notesstringNo
phonestringNo
websitestringNo
linkedin_urlstringNo
addressstringNo
citystringNo
statestringNo
zip_codestringNo
countrystringNo
employee_countint?No
annual_revenueint?No
tagsstring[]No
custom_fieldsobject?No
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
idstringYes
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
idstringYes
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
searchstringNo
tagsstring[]No
cursorstringNo
limitintNo
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
idstringYes
namestring?No
domainstring?No
industrystring?No
notesstring?No
phonestring?No
websitestring?No
linkedin_urlstring?No
addressstring?No
citystring?No
statestring?No
zip_codestring?No
countrystring?No
employee_countint?No
annual_revenueint?No
tagsstring[]No
custom_fieldsobject?No
Terminal window
curl -X POST https://api.driftwoodapp.com/api/companies-update \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'