Skip to main content

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 as cursor on the next request to get the following page. It's null on the last page.

Parameters

limitintegerdefault: "50"

Page size, 1100.

cursorstring

Opaque 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