Discussions

Ask a Question
Back to All

pageCursor on Notes endpoint: Last page returns pageCursor of first page again.

I am consuming https://api.productboard.com/notes and I specify the featureId for which I want all notes.

When there are more than 100 results, the results get paginated and the documentation tells me to

This API is paginated, only the first 100 items are returned by default. The client should then recursively call /notes/ by using returned pageCursor

That's fine to do, however, the last page seems to return the pageCursor of the first page again! So if I call it recursively, I am creating an endless loop.

Is this by design and therefore I need to store the pageCursor of the first page to make sure I stop calling it when I reach the last page?