GET with no query string → read data and meta.total → look up one member or search with a different endpoint.<communityId> with a 24-character community ObjectId. On the current public runtime, omit query parameters when you need rows returned.COMMUNITY_MEMBER, COMMUNITY_ADMIN, or COMMUNITY_OWNER on that community.| Failure | Observed result | Recovery |
|---|---|---|
Missing Authorization | 401 from the authorization middleware. The body may be MessagePack with Content-Type: text/html rather than JSON. | Add Authorization: Bearer <token>. |
| Invalid token | 401 JSON Authorization middleware error. with detail: Token is wrong. | Replace the token. |
| Valid token, wrong community | 401 You are not allowed to get users | Use a credential that belongs to this community. |
200 populated example is the current no-query success shape. The structured 200 empty example is the current response when page, limit, or field-select query flags are sent: meta.total stays populated and data is [].200. message is Get community users success. The envelope is { meta, message, data }.data is an array of user objects.meta.total is the community membership-array length.meta.page defaults to 1.meta.limit defaults to 20 and cannot exceed 100._id, id, avatar, displayName, username, firstName, lastName, email, isOnline, and lastLogin. Rows are ordered online first, then by lastLogin descending.https://api.returning.ai runtime returns up to 20 members and the full default field set.| Status | When | Recovery |
|---|---|---|
400 Get users validation error. detail.communityId: Community ID is required | communityId is missing or not an ObjectId | Send a 24-character ObjectId. |
400 Get community users error. detail.page: Page must be at least 1 | page=0 | Use page ≥ 1 after query parameters start returning rows. |
400 Get community users error. detail.limit: Limit cannot exceed 100 | limit=101 | Use limit 1–100 after query parameters start returning rows. |
401 authorization middleware / Token is wrong. | Missing or invalid Bearer token | Add a valid community key or member token. |
401 You are not allowed to get users | Token is valid but cannot access this community | Switch to a credential for this community. |
500 from the service is an unexpected failure. Retry with bounded backoff and stop if it persists. This run did not induce 500.500 with bounded exponential backoff. Do not retry 400 or 401 without changing the path, query, or credential.avatar may be null.firstName, lastName, or email with ********.meta.total can be larger than data.length.data and may appear in meta.validationErrors./v1/communities/users is a different route and is not this operation.curl --location 'https://adss-application.returning.ai/v1/communities/61100af5c548eb5c7ebc7819/users?page=1&limit=20&_id=true&id=true&avatar=true&displayName=true&username=true&firstName=true&lastName=true&email=true&isOnline=true&lastLogin=true' \
--header 'Authorization: Bearer <COMMUNITY_API_KEY>'{
"meta": {
"status": "success",
"statusCode": 200,
"total": 58,
"page": 1,
"limit": 20
},
"message": "Get community users success.",
"data": [
{
"_id": "61100af5c548eb5c7ebc7819",
"id": 11898,
"avatar": "https://example.com/avatar.png",
"displayName": "Alex Admin",
"username": "alex.admin",
"firstName": "Alex",
"lastName": "Admin",
"email": "alex.admin@example.com",
"isOnline": true,
"lastLogin": "2026-08-17T20:45:33.832Z"
},
{
"_id": "61100af5c548eb5c7ebc781a",
"id": 11899,
"avatar": null,
"displayName": "Jordan Member",
"username": "jordan.member",
"firstName": "Jordan",
"lastName": "Member",
"email": "jordan.member@example.com",
"isOnline": false,
"lastLogin": "2026-08-16T14:01:15.111Z"
}
]
}