I’m trying to get all the contacts and I used Get all contacts API. Everything is fine except I cannot find an option to get the latest data first (order by addedAt). Please help!!!
@jerome.kwek is correct in that the Contacts API doesn’t support sorting, but we do have an endpoint that you can use to get contacts ordered by when they were created: GET /contacts/v1/lists/all/contacts/recent
For example, this will get you the most recently created contacts from the demo portal: https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=demo
@jerome.kwek is correct in that the Contacts API doesn’t support sorting, but we do have an endpoint that you can use to get contacts ordered by when they were created: GET /contacts/v1/lists/all/contacts/recent
For example, this will get you the most recently created contacts from the demo portal: https://api.hubapi.com/contacts/v1/lists/all/contacts/recent?hapikey=demo