Skip to main content

Pagination

All list endpoints return paginated results. Admin API list endpoints use page-based pagination; SCIM 2.0 endpoints (directory sync) use the startIndex/count scheme described below.

Page-based Pagination​

Admin API list endpoints are paginated by page number:

Paginate Users
curl "https://app.lumoauth.dev/orgs/acme-corp/api/v1/admin/users?page=3&limit=20" \
-H "Authorization: ApiKey lmk_abc123"

Query Parameters​

ParameterTypeDefaultDescription
pageinteger11-based page number to return.
limitinteger25Number of items per page. Maximum 100.

Paginated Response​

List responses wrap the page in a data array alongside a meta object and a top-level resourceType string identifying the listed resource:

List Response with Pagination
{
"data": [ ... ],
"meta": {
"total": 1284,
"page": 3,
"limit": 20,
"totalPages": 65,
"hasNextPage": true,
"hasPreviousPage": true
},
"resourceType": "users"
}

Iterate through all pages by incrementing page until meta.hasNextPage is false (equivalently, until page >= meta.totalPages).

SCIM Pagination​

SCIM endpoints use 1-based startIndex and count parameters, as the SCIM 2.0 protocol defines:

SCIM List
curl "https://app.lumoauth.dev/orgs/acme-corp/api/v1/scim2.0/Users?startIndex=1&count=100" \
-H "Authorization: Bearer <scim_token>"
ParameterTypeDefaultDescription
startIndexinteger11-based index of the first result.
countinteger100Number of results to return.
SCIM List Response
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 542,
"startIndex": 1,
"itemsPerPage": 100,
"Resources": [ ... ]
}

Filtering and Sorting​

List endpoints that support filtering accept a search query parameter for full-text search, and sortBy / sortDir for ordering:

Search and Sort
curl "https://app.lumoauth.dev/orgs/acme-corp/api/v1/admin/users?search=alice&sortBy=createdAt&sortDir=desc&limit=20" \
-H "Authorization: ApiKey lmk_abc123"
ParameterDescription
searchFull-text search query
sortByField to sort on (e.g. createdAt, email)
sortDirasc or desc (default desc)

Standards used on this page​

Plain nameStandard
SCIM 2.0 (user and group provisioning)RFC 7642, RFC 7643 and RFC 7644

See the standards reference for what each one covers and how LumoAuth uses it.