Global App Search SDK Functions

These SDK methods let you query users and user-generated data across your entire application. All functions require appId and are designed for admin-level operations.

getAllUsersFromApp

Fetch all users registered in your app with cursor-based pagination.

ParamTypeRequiredDescription
limitnumberNoNumber of users per page (default 20)
cursorstringNoPagination cursor for next page
Ts
1// Get all users in your app (pagination supported)
2const res = await authix.getAllUsersFromApp({
3  limit: 20,
4  cursor: null,
5});
6
7console.log(res.data);
8console.log(res.hasMore, res.nextCursor);
9
10// Next page
11const next = await authix.getAllUsersFromApp({
12  limit: 20,
13  cursor: res.nextCursor,
14});

searchInAllAppUsers

Search across all users using text query and structured filters.

ParamTypeRequiredDescription
qstringNoFree-text search query
keysobjectNoStructured filters (e.g. role, status)
Ts
1// Search across all app users
2const res = await authix.searchInAllAppUsers({
3  q: "john",
4  keys: {
5    role: "admin",
6    isVerified: true,
7  },
8});
9
10console.log(res);

getAllUsersDataFromApp

Fetch all user-generated data across the app (useful for analytics and admin dashboards).

ParamTypeRequiredDescription
categorystringNoFilter data by category
limitnumberNoNumber of records per page
cursorstringNoPagination cursor
Ts
1// Fetch all users' data across the app
2const res = await authix.getAllUsersDataFromApp({
3  category: "orders",
4  limit: 20,
5});
6
7console.log(res.data);
8
9// Pagination
10if (res.hasMore) {
11  const next = await authix.getAllUsersDataFromApp({
12    category: "orders",
13    cursor: res.nextCursor,
14  });
15}

searchInAllAppUsersData

Perform deep search inside all users’ data using category, query, and dynamic keys.

ParamTypeRequiredDescription
categorystringNoData category to search in
qstringNoFree-text search query
keysobjectNoDynamic filters (e.g. status, shopId)
Ts
1// Deep search in all users' data
2const res = await authix.searchInAllAppUsersData({
3  category: "orders",
4  q: "pending",
5  keys: {
6    status: "active",
7    shopId: "12",
8  },
9});
10
11console.log(res);

Related docs