Companies
List companies
The companies the organization does business with, by name. Filter by q (part of the name), status or type. A company groups the contacts that work in it.
Required scope: contacts:read.
query Parameters
limitcursorThe nextCursor of the previous page, with the same filters.
qPart of the name, ignoring case.
statustypeHeaders
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
List companies › Responses
objecthasMorenextCursorCreate a company
A company groups the contacts that work in it. Only name is required; type defaults to prospect and status to lead. rut is unique among the live companies of the organization: using one that is taken is a 409 conflict with param rut. To link a contact to the company, send companyId when you create or update the contact.
Required scope: companies:write.
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Idempotency-KeyMakes the request safe to retry. Once it starts running, its final response (2xx, 4xx or 5xx) is kept for 24 hours and the same key gets it back, without repeating the effect. A request rejected before it runs leaves the key free. A replayed create omits the secret. The same key with a different request is rejected with 409 idempotency_key_reused.
Create a company › Request Body
namerutUnique among the live companies of the organization.
typestatuswebsiteindustrysourcenotesCreate a company › Responses
objectidnameruttypeWhat the company is for the organization.
statusHow the relationship is today.
websiteindustrysourcenotescreatedAtupdatedAtcontactIdsThe people of this company, as contact ids.
Retrieve a company
Returns one company by id with the ids of its contacts. Use it to refresh a single record you already know; to find records, use the list route. Read only. 404 not_found when the id does not exist or belongs to another organization. You can repeat it safely: it has no side effects.
Required scope: contacts:read.
path Parameters
id^cpy_[0-9A-Za-z]{22}… · requiredThe id of the company (cpy_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Retrieve a company › Responses
objectidnameruttypeWhat the company is for the organization.
statusHow the relationship is today.
websiteindustrysourcenotescreatedAtupdatedAtcontactIdsThe people of this company, as contact ids.
Delete a company
For data created by mistake: a company that was lost as a business is kept with status lost. Its contacts are not deleted: they stay and their companyId becomes null. The rut is free to use again. 404 not_found when the id does not exist or belongs to another organization.
Required scope: companies:write.
path Parameters
id^cpy_[0-9A-Za-z]{22}… · requiredThe id of the company (cpy_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Delete a company › Responses
Update a company
Only the fields you send change. Send null in rut, website, industry, source or notes to remove it. A company that was lost as a business is not deleted: set its status to lost. Taking the rut of another live company is a 409 conflict with param rut.
Required scope: companies:write.
path Parameters
id^cpy_[0-9A-Za-z]{22}… · requiredThe id of the company (cpy_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Update a company › Request Body optional
namerutnull removes it.
typestatuswebsitenull removes it.
industrynull removes it.
sourcenull removes it.
notesnull removes it.
Update a company › Responses
objectidnameruttypeWhat the company is for the organization.
statusHow the relationship is today.
websiteindustrysourcenotescreatedAtupdatedAtcontactIdsThe people of this company, as contact ids.