User-related API environment
Production user-related API docs
These pages describe the Production user-related API stack.
Use production OAuth credentials, production API base URLs, and production app URLs when following this documentation.
Need to test before going live? Switch to the Pre-live docs using the environment switcher above.
Search for users
Search users by name or username. Supports mentioning in posts, finding users for room invites, and general discovery. Results can be scoped to specific contexts.
Query Parameters
Search term for name/username
Results per page (default: 10)
Page number (default: 1)
Search all users (not just followed)
Filter for posting-as feature
User ID for posting-as context
Room ID for scoped search
- 200
Matching users with pagination. When roomId is provided, each result includes isMember.
Schema
- Array [
- ]
data object[] required
Default value: false
Default value: 0
{
"total": 10,
"currentPage": 1,
"limit": 10,
"pages": 1,
"data": [
{
"id": "8d77a633-b49d-4978-bc1a-70bc2fda7b4b",
"username": "string",
"verified": false,
"firstName": "string",
"lastName": "string",
"avatarUrls": {
"small": "https://avatars.githubusercontent.com/u/12345678",
"medium": "https://avatars.githubusercontent.com/u/12345678",
"large": "https://avatars.githubusercontent.com/u/12345678"
},
"followersCount": 0,
"bio": "string",
"isFollowed": false,
"followed": false,
"isMember": false
}
]
}
{
"total": 10,
"currentPage": 1,
"limit": 10,
"pages": 1,
"data": [
{
"id": "8d77a633-b49d-4978-bc1a-70bc2fda7b4b",
"username": "string",
"verified": false,
"firstName": "string",
"lastName": "string",
"avatarUrls": {
"small": "https://avatars.githubusercontent.com/u/12345678",
"medium": "https://avatars.githubusercontent.com/u/12345678",
"large": "https://avatars.githubusercontent.com/u/12345678"
},
"followersCount": 0,
"bio": "string",
"isFollowed": false,
"followed": false,
"isMember": false
}
]
}