Pagination
List operations do not share one pagination scheme. The query parameters and the response shape are on each operation. Three patterns cover what the document defines.
Page and size
This is the usual pattern. page is a zero-based index. The first page is 0, not 1. size is the page length. Defaults in the document are commonly size=20 or size=10, and some operations cap size at 50.
Code
sort, when the operation has it, is property,(asc|desc). The default direction is ascending unless the operation says otherwise. Repeat the parameter to sort by more than one property. Example: sort=createdAt,desc.
A full page response includes a total, so you can compute how many pages exist:
| Field | Meaning |
|---|---|
content | The items for this page |
number or page | The page index you are on |
size | The requested page length |
numberOfElements | How many items are in content |
totalElements | Items across all pages |
totalPages | Page count |
first / last / empty | Position in the result, on the Spring-style page objects |
PageResponse objects use page and hasNext instead of number, first, and last. Stop when last is true, hasNext is false, or content is empty.
GET /dashboard/api/v1/list-feature/custom-list/creator/{creatorId} is a page response. GET /dashboard/api/v1/accounting/additional-costs is another.
Slices
A slice is a page without a total. GET /dashboard/api/v2/tracking/{creatorId}/messages/sent is documented as slice-based. The body has content, page, size, numberOfElements, and hasNext. It does not include totalElements or totalPages.
Request the next page while hasNext is true. Do not infer a total from size.
GET /dashboard/api/v1/users is also a slice: team users, with an optional name search, page defaulting to 0 and size defaulting to 10.
Limit and offset
Some OnlyFans-backed lists use limit and offset instead of page and size. offset is the index of the first item to return. limit is how many items to return, and several operations cap it (a documented maximum is 50).
Read the parameter descriptions. On a few list endpoints the description of offset talks about a maximum count. The schema and the description on that operation win over the general rule.
Keyset
GET /dashboard/api/v1/of-chat/{creatorId}/ppv-messages does not use a page index. Pass fromCreatedAt and fromOfMessageId to walk backwards through messages.
- Send both or neither. Leave both out for the first page.
limitdefaults to 50 and the maximum is 50.
For the next page, send the sentAt and the message id of the last item you received as fromCreatedAt and fromOfMessageId. Continue while hasNext is true. The schema notes that hasNext can be a false positive if a message no longer matches the filter by the time you request it.
