List Users
curl --request GET \
--url https://api.example.com/api/users{
"users": [
{
"id": "<string>",
"email": "<string>",
"username": "<string>",
"role": "<string>",
"name": "<string>",
"profile_image_url": "<string>",
"profile_banner_image_url": "<string>",
"bio": "<string>",
"gender": "<string>",
"date_of_birth": "<string>",
"timezone": "<string>",
"presence_state": "<string>",
"status_emoji": "<string>",
"status_message": "<string>",
"status_expires_at": 123,
"info": {},
"settings": {
"ui": {}
},
"oauth": {},
"scim": {},
"last_active_at": 123,
"updated_at": 123,
"created_at": 123,
"group_ids": [
{}
]
}
],
"total": 123
}Users & Groups
List Users
GET
/
api
/
users
List Users
curl --request GET \
--url https://api.example.com/api/users{
"users": [
{
"id": "<string>",
"email": "<string>",
"username": "<string>",
"role": "<string>",
"name": "<string>",
"profile_image_url": "<string>",
"profile_banner_image_url": "<string>",
"bio": "<string>",
"gender": "<string>",
"date_of_birth": "<string>",
"timezone": "<string>",
"presence_state": "<string>",
"status_emoji": "<string>",
"status_message": "<string>",
"status_expires_at": 123,
"info": {},
"settings": {
"ui": {}
},
"oauth": {},
"scim": {},
"last_active_at": 123,
"updated_at": 123,
"created_at": 123,
"group_ids": [
{}
]
}
],
"total": 123
}Retrieves a paginated list of users with their group memberships and total count.
Authentication
Requires admin authentication.Query Parameters
Search query to filter users by name or email
Field to order results by. Options:
name, email, created_at, last_active_at, updated_at, role, or group_id:{group_id} for custom group orderingSort direction. Options:
asc or descPage number for pagination (minimum: 1)
Response
Array of user objects with group IDs
Show User Object
Show User Object
Unique user identifier
User email address
Username (optional)
User role:
admin, user, or pendingUser display name
URL to user’s profile image
URL to user’s profile banner image
User biography
User gender
User date of birth (ISO date format)
User timezone
User presence state
Status emoji
Status message text
Unix timestamp when status expires
Additional user information (JSON)
OAuth authentication data
SCIM provisioning data
Unix timestamp of last activity
Unix timestamp of last update
Unix timestamp of creation
Array of group IDs the user belongs to
Total number of users matching the query
Example Request
curl -X GET "https://your-domain.com/api/users?page=1&order_by=name&direction=asc" \
-H "Authorization: Bearer YOUR_TOKEN"
Example Response
{
"users": [
{
"id": "user-123",
"email": "user@example.com",
"username": "johndoe",
"role": "user",
"name": "John Doe",
"profile_image_url": "/api/v1/users/user-123/profile/image",
"bio": "Software developer",
"last_active_at": 1709424000,
"updated_at": 1709424000,
"created_at": 1709337600,
"group_ids": ["group-1", "group-2"]
}
],
"total": 1
}
Notes
- Returns 30 users per page
- Users are returned with their associated group IDs
- Profile image URLs default to
/api/v1/users/{id}/profile/imageif not set
⌘I