Most Dragon Guard list endpoints return paginated responses to keep payloads manageable for both handheld scanner devices on slow warehouse networks and back-office clients that may be processing thousands of records. Rather than returning all matching records in a single call, the API divides results into pages and tells you exactly how many total records and pages exist so your client can navigate the full dataset efficiently.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodexaCP/DG_BACK/llms.txt
Use this file to discover all available pages before exploring further.
Query Parameters
All paginated endpoints accept the following query parameters defined inPaginationParameters:
The 1-based page number to retrieve. Values less than
1 are automatically clamped to 1.The number of records to return per page. The default is
20 for most endpoints. The hard maximum enforced by PaginationParameters is 100; any value above 100 is silently clamped to 100.Some endpoints override the default
pageSize. For example, GET /api/audit/logs defaults to pageSize=25. Check the individual endpoint reference for endpoint-specific defaults.PagedResponse Wrapper
Every paginated endpoint wraps its result set in aPagedResponse<T> object:
The array of result objects for the current page. The element type varies by endpoint (e.g., items, bins, audit log entries).
The page number that was returned (mirrors the requested
pageNumber).The number of records per page that was applied (mirrors the effective
pageSize after clamping).The total count of records matching the applied filters across all pages.
The total number of pages:
ceil(totalRecords / pageSize). Returns 0 when there are no matching records.Example Response
The following is a representative paged response for a warehouse items list:Iterating Through All Pages
To retrieve the full result set, incrementpageNumber by one on each successive request until the page you received equals totalPages.
If a new record is inserted or deleted between page requests,
totalRecords and totalPages may shift. For bulk exports that require consistency, consider filtering by a fixed date range or using a snapshot approach.Anonymous Pagination Objects
Some older controllers in the Dragon Guard API return inline anonymous objects rather than the typedPagedResponse<T> class. These objects carry the same field names (data, pageNumber, pageSize, totalRecords, totalPages) and follow the same pagination contract, so client-side deserialization code does not need to distinguish between the two shapes.
Audit Logs Pagination
The/api/audit/logs endpoint follows the same pageNumber / pageSize pattern. Its defaults differ slightly:
| Parameter | Default | Maximum |
|---|---|---|
pageNumber | 1 | — |
pageSize | 25 | 100 |