Working with the API
Pagination
List endpoints use opaque cursors with a default page size of 25 and a maximum of 100.
Updated
Browse the developer docs
Steps
- Call a list endpoint:
GET /,v1/ students GET /orv1/ events GET /. Responses have the shapev1/ webhook_endpoints/ {id}/ deliveries { data: [...], page: { next_cursor } }. - Set
limitto choose a page size. The default is 25 and values above 100 are reduced to 100. A value that is not a positive integer returns 400"limit must be a positive integer". - To get the next page, pass the previous page’s
next_cursoras thecursorquery parameter. Whennext_cursoris null you have reached the last page. - Treat the cursor as opaque. A cursor you changed or built yourself returns 400
"malformed cursor".
Notes
- Pages are ordered newest first. They stay stable when new rows are added while you page.
GET /does not page. It returns up to 25 matches withv1/ students?email= next_cursornull.GET /also acceptsv1/ events after, which returns newer events oldest first for polling. See the Events article.
Related guides
Still need help?
Email hello@chesscore.io. Using ChessCore day to day? Visit the Help centre.