Pagination
List endpoints use cursor pagination. Pass limit (1 to 200, default 50) and follow next_cursor until it is null.
List endpoints return a page of data and a next_cursor. Pass limit (1 to 200, default 50) and an optional cursor.
curl -s "https://api.wpwaterfall.com/v1/companies/me/members?limit=50" \
-H "Authorization: Bearer wpw_live_YOUR_SECRET"
{
"data": [],
"next_cursor": "01J9K2Q7M4Z8X0T6Y3B5N1C2D4"
}
When next_cursor is not null, request the next page with ?cursor=. Stop when it is null. Cursors are opaque: do not build your own offsets or ask for page 3 directly. A cursor the API does not recognize, such as one for a row that was deleted since, answers 422. Start again without a cursor.
Which lists page differently?
Every list endpoint pages, with a few fixed catalogs excepted. Lists such as redirects, IP rules, and the database tables of an environment default to 200. A few short feeds keep a smaller size, such as 30 for the security log. The DNS records of a zone take limit from 1 to 1000 and default to 1000, the most a Cloudflare Free zone holds. Write your client to follow next_cursor on every list.
Still stuck?
Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.