HubSpot Ideas

Sachavskyi

Add sort parameter to GET /crm/v3/objects/{object}

I need to get recently archived objects (e.g. contacts) for the last week. I am sending a request:
GET https://api.hubapi.com/crm/v3/objects/contacts?limit=100&archived=true

But the response isn't sorted by any of the fields. So, I need to get all archived contacts (10 pages).

Please add a sort={field}&direction={ASC,DESC} (e.g. sort=archivedAt&direction=DESC in my case) parameters to GET/crm/v3/objects/{object}.

1 Reply
rindrar
Member

Thank you @Sachavskyi . I'm also in need for this feature especially if it could allow a sort by `archivedAt` (implicit) property