Pagination
Calls that return a list take two query parameters:
limit: how many items to return. Between 1 and 100. The default is 20.startingAfter: the id of the last item of the previous page.
The answer is an object with the items in data and a flag telling you if there are more:
{
"data": [ { "id": 41 }, { "id": 42 } ],
"hasMore": true
}While hasMore is true, ask again with startingAfter set to the id of the last item you received. Stop when it is false.