Expose pagination state in the response body.
Section: Pagination patterns
Return next-page metadata
json
json
{
"data": [/* ... */],
"page": 2,
"limit": 25,
"total": 140,
"next_cursor": null
}Explanation
Pagination metadata helps clients build pagers and infinite-scroll experiences without guessing.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Pagination patterns