/v1/apps/{app_id}/end-usersAuthList end-users in this app (cursor-paginated).
Path parameters
app_id*stringId of the app.
Query parameters
limitintegerPage size. Defaults to 20, clamped to 100.
cursorstringOpaque `next_cursor` from the previous page.
statusenum (3)Only users with this status.
searchstringCase-insensitive substring of the username or of any contact (email or phone).
signalenum (5)Narrow to accounts carrying one risk signal. Each is a fact already recorded: `unverified` (no verified email contact), `failing_signin` (>= 3 failed sign-ins in 30d), `no_mfa` (no enabled auth factor), `locked` (a live session locked out of step-up), `never_active` (no audit-log entry at all).
providerstringNarrow to accounts that can sign in with this provider. `password` matches accounts with a password credential; any other value matches a linked OAuth identity.
sortenum (7)Order the list. Nulls sort last in BOTH directions.
orderenum (2)Sort direction for `sort`.
Response · 200
data*arrayThe end user items on this page.
pagination*objectnext_cursor*stringOpaque cursor for the next page. `null` when no more pages are available.
Example: "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ"
has_more*booleanTrue iff another page exists; if true, pass `next_cursor` on the next request.
Example: false
Example
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/end-users
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
for await (const endUser of auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").endUsers.list()) {
console.log(endUser);
}
const page = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").endUsers.list({}, { timeout: 5_000 });auth.admin.app(…).endUsers.list(params?, options?): PagePromise<Auth.EndUserSummary>
Response
{
"data": [
{
"id": "string",
"username": "string",
"display_name": "string",
"status": {},
"role": "string",
"joined_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"email": "string",
"email_verified_at": "2026-01-01T00:00:00.000Z",
"active_session_count": 0,
"last_used_at": "2026-01-01T00:00:00.000Z",
"last_activity_at": "2026-01-01T00:00:00.000Z",
"failed_signins": 0,
"mfa_factor_count": 0,
"verified_email_count": 0,
"auth_providers": [
"password",
"google"
],
"step_up_locked_until": "2026-01-01T00:00:00.000Z"
}
],
"pagination": {
"next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ",
"has_more": false
}
}