APIs & Integrations

Anonymous
Not applicable

Sort order of results returned by Company API endpoints

I can’t find any mention of sort order in the documentation.

Does the server guarantee a sort order of the companies returned by the following Company API endpoints?

0 Upvotes
1 Reply 1
Dadams
HubSpot Employee
HubSpot Employee

Sort order of results returned by Company API endpoints

Hi @johnpkennedy

There is no guaranteed order for getting all companies.

The recently created endpoint returns companies in the order they were created (based on the createdate property), starting with the most recently created records.

The recently modified endpoint returns companies in the order they were last modified (based on the hs_lastmodifieddate property), starting with the most recently modified records.