Possible to download more than 1000 messages in 1 request?

It would appear there is a hard limit of 1000 for downloading messages using the REST api. For example, executing the following request:

https://dashboard.hologram.io/api/1/csr/rdm?deviceid=1&limit=9999

will only download 1000 messages, even though device 1 has more than 1000 messages available.

Is there an easy way to get all the messages from a device? Or do I have to issue multiple requests?

You have to make multiple requests and page through. If the continues flag on the response is true then you know there is another page to request and you can look at the links section on the response to see what the URL would be to request the next page.
Or can look at the lastid field and you would set startafter=<lastid> on the request.

The continues flag and links section works great for getting everything! Thanks.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.