Pagination

All top-level API resources have support for bulk fetches via “list” API methods. For instance you can list transactions, list cards, and list rewards.

These list API methods share a common structure, taking at least these three parameters: limit, skip, and take.

Domec utilizes cursor-based pagination via the skip and take parameters. Both take an existing number value (see below). The take parameter returns objects created after the named object, in descending chronological order. The skip parameter returns objects created after the named object, in ascending chronological order.

If both parameters are provided, only take is used.