List users
const url = 'http://localhost:3000/api/v1/users?search=john&email=john.doe%40example.com&active=true&isSuperAdmin=false&include=organizations&limit=50&offset=0';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/v1/users?search=john&email=john.doe%40example.com&active=true&isSuperAdmin=false&include=organizations&limit=50&offset=0' \ --header 'X-API-Key: <X-API-Key>'Retrieves a list of all users. Requires Super Admin privileges.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Example
johnSearch term for user name or email
Example
john.doe@example.comFilter by exact email address
Example
trueFilter by active status
Example
falseFilter by super admin status
Example
organizationsInclude related data. Use “organizations” to include organization memberships.
Example
50Maximum number of results to return
Example
0Number of results to skip for pagination
Responses
Section titled “ Responses ”Users retrieved successfully
object
List of users
object
Unique user identifier
User email address
User display name
Whether the user account is active
Whether the user email has been verified
Whether the user is a super admin with platform-wide privileges
When the user was created
When the user was last updated
When the user last logged in
Total number of users matching the query
Number of results returned
Number of results skipped
Example
{ "items": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "email": "john.doe@example.com", "name": "John Doe", "active": true, "emailVerified": true, "isSuperAdmin": false, "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-06-20T14:45:00Z", "lastLoginAt": "2024-12-20T09:15:00Z" } ], "total": 100, "limit": 50, "offset": 0}Unauthorized
Forbidden - Super Admin required