Pagination
Every list endpoint returns the same envelope and pages the same way, so once you've handled one you've handled all of them.
The envelope
{
"data": [ /* the page of results */ ],
"nextCursor": "eyJ1IjoiMjAyNi0wNi0xN1QwOTo0MTo1NVoiLCJpIjoiYzEifQ"
}
data— the array of results for this page.nextCursor— an opaque string. Pass it ascursoron the next request to get the following page. It'snullon the last page.
Parameters
limitintegerdefault: "50"Page size, 1–100.
cursorstringOpaque cursor from the previous response's nextCursor. Omit it for the first page.
Paging through everything
# First page
curl "https://api.zerowidth.ai/1.0/flows/public?limit=50"
# Next page — pass the previous nextCursor
curl "https://api.zerowidth.ai/1.0/flows/public?limit=50&cursor=eyJ1IjoiMjAyNi0…"
Stop when nextCursor comes back null.
1 min read