CRM APIv3 associations result set limit

Hello,

I’ve been exploring the v3 api, and particularly the tickets endpoint of the crm api with the associations parameter. e.g.

https://api.hubapi.com/crm/v3/objects/tickets?associations=engagements
However, I notice that if there are more than 100 engagements associated with a ticket, only 100 are returned in the results array embedded in the ticket object in the json returned.

{
 "id": "x",
 "properties": {...
 },
 "createdAt": "2020-04-21T15:38:38.922Z",
 "updatedAt": "2021-01-04T09:39:19.697Z",
 "archived": false,
 "associations": {
 "engagements": {
 "results": [
 {
 "id": "12345678",
 "type": "ticket_to_engagement"
 },
 {
 "id": "123456789",
 "type": "ticket_to_engagement"
 }...etc. Only 100 results in here.

 ]
 }
 }
 }

Is there a way to increase this limit or paginate through the results? Or is it a bug at the hubspot side which isn’t handling pagination of the associations resultset correctly?

Thanks!

Heya @colsil !

If you have more, you should see paging in the return

Example:

"paging": {
 "next": {
 "after": "MC0xNy0xMjAyMjQ4NzcxMg%3D%3D",
 "link": "https://api.hubapi.com/crm/v3/objects/0-5/327637938/associations/0-4?portalId=xxxx&after=MC0xNy0xMjAyMjQ4NzcxMg%3D%3D"
 }
 }

Thanks Dennis, i didn’t spot that there was nested paging data, nice. Good job.