Marketing & CRM
This endpoint is used to get all of the companies in a HubSpot account.
Use case for this endpoint: This endpoint is useful when you're installing a new application and need to sync company data from HubSpot. For example, if you install an app that integrates HubSpot with an Enterprise Resource Planning app (ERP), that app may want to get all the company records stored in the CRM. It could then match them to customer records stored in the ERP and use webhooks to get incremental updates.
If the request is successful, it returns a paginated list of companies.
In addition to the list of companies, each request will also return two values,
has-more is true, you'll need to make another request, using the
offset to get the next page of company records. These are often used with a recursive function in order to get all companies stored in a CRM.