1. Community Users
Returning.AI
  • Getting Started
  • Users
    • User directory and provisioning
    • Get Users with Filters
      POST
    • Create New User
      POST
    • Get User Data
      POST
    • Manage User Account
      POST
    • Get User Milestones
      POST
    • Update User Data, Identifier, And Roles
      POST
    • Update User XP and Currency
      POST
  • Messaging
    • Agent messaging workflow
    • Get Messages
      GET
    • Send Message
      POST
    • Reply Message
      POST
    • React Message
      POST
    • Upload message images
      POST
  • Gamification
    • Leaderboards
      • Leaderboards
      • List leaderboards with pagination
      • Create a new leaderboard
      • Update an existing leaderboard
      • Get a single leaderboard by ID
      • Delete a leaderboard
    • Streaks & Mini Games
      • Mini-game State and History
      • List user streak logs
      • List mini-game logs by user email
      • Get current mini-game and streak state
      • Update user spin-wheel information
    • Referral
      • Referral Program Integration
      • Get referral programs
      • Get user's referral summary
    • Rolling Data
      • Get Daily Calculation Data
      • Get Rolling Calculation Data
    • Match Predictions
    • Get tier configuration
      GET
    • Get daily user XP and coin changes
      POST
    • Search user gamification logs
      POST
    • Get user activity stats
      POST
  • Rewards & Redemptions
    • Store catalog to redemptions
    • Update redemption order status or refund
    • List redemption orders by user email
    • List redemption statuses
    • Get redemption status by ID
    • List redemption orders by community
    • Create redemption order status
    • Get redemption order status history
  • Chart Analysis
    • Create Analysis
    • Get Analysis
    • Update Analysis
    • Delete Analysis
    • List Analyses
    • Append Drawings
  • Bulk Operations
    • Bulk user updates
    • List bulk update jobs
    • Get bulk update job status
    • Get bulk update job details
    • Bulk update users from CSV
    • Bulk update premium currency from CSV
  • Channels
    • Iframe
    • List integration channels
  • Events
    • Outgoing webhooks
      • Encryption
      • User Joins Server
      • User Visits server
      • New Message Posted Anywhere
      • New Message Posted To channel
      • Purchased Store Item
    • Incoming webhooks
      • API Keys & Encryption
      • Send message into channels
      • Update Custom User Fields
      • Update In-game currency
  • Widgets
    • Authenticated Widgets
    • Public widgets
    • Channels
    • Leaderboard
    • Milestone
    • Socials
    • Store
  • Community Analytics
    • Get Loyalty Overview
    • Get Phone Verification Contacts
  • Store
    • Store catalog
    • Purchase History
      • Update redemption instructions or voucher details
    • Categories
      • List Store categories
      • Create Store category
      • Get Store category by ID
      • Update Store category
      • Delete Store category
    • Products
      • List products
      • Update products in bulk
      • Create products in bulk
      • Create product with vouchers
      • Read product
      • Update product and append vouchers
      • Delete product
    • Redemption-transaction
      • Get redemption transaction detail
    • Get Store configuration
    • Update Store configuration
  • Community
    • Community directory and appearance
    • Appearance
      • Update community theme colors
      • Update community bot profile
      • Update community URL metadata
      • Update community name and URL
    • Community Users
      • Get community users
        GET
      • Get user
        GET
    • Create community
      POST
  • API Keys
    • API key lifecycle
    • Community API Keys
      • Create API key
      • Read API keys
      • Delete API key
      • Update API key
    • User API Keys
      • List user API keys
      • Create user API key
      • Update user API key
      • Delete user API key
      • Get current API key information
  • User Fields
    • User field definitions and history
    • User Field History
      • Get all user field histories in a community
      • Get user field histories for a specific field
      • Get user field histories for a specific user
      • Get user field histories of specific user field and user
      • Update A User Field Value
      • Deprecated Field-First History Write
      • Deprecated Field-First History Read
    • Get A User Field Definition
    • Update A User Field Definition
    • Create A User Field Definition
    • Delete A User Field Definition
    • List User Field Definitions
  • Legacy
    • Servers
      • Create server
      • List servers
      • Update server metadata
    • Bulk Operations
      • Bulk import users from CSV
    • Authentication
      • Secure Auth
      • Register user with password
      • Verify user email
      • Log in user with password
    • Badges
      • List badges
      • Create badge
      • Update badge
      • Delete badge
      • Remove badge from user
      • Award badge to user
    • Messaging
    • Roles & Permissions
      • List server roles
      • Create role
      • Update role
      • Delete role
      • List user roles
      • Add role to user
      • Remove role from user
    • Users
      • Get user
      • Upload user avatar
    • Channels
      • Create channel
      • Update channel
      • Delete channel
    • API Keys
      • List integration API keys
      • Create integration API key
      • Delete integration API key
      • Update integration API key
  1. Community Users

Get community users

GET
/v1/communities/{communityId}/users

What this endpoint does#

Returns a page of members for one community. Use it when you already have that community's ObjectId and need a directory snapshot for an admin or member view.
It does not search by email, username, or custom field. It does not return roles, XP, coins, or custom-field values.
INFO
Workflow
Authenticate for this community → GET with no query string → read data and meta.total → look up one member or search with a different endpoint.

Quick start#

Replace <communityId> with a 24-character community ObjectId. On the current public runtime, omit query parameters when you need rows returned.

Authentication and permission#

Send a Bearer credential for the target community:
a community API key that belongs to that community, or
a member session token with COMMUNITY_MEMBER, COMMUNITY_ADMIN, or COMMUNITY_OWNER on that community.
The permission check uses the authenticated principal's community membership. It runs after ObjectId validation and before the service loads members.
FailureObserved resultRecovery
Missing Authorization401 from the authorization middleware. The body may be MessagePack with Content-Type: text/html rather than JSON.Add Authorization: Bearer <token>.
Invalid token401 JSON Authorization middleware error. with detail: Token is wrong.Replace the token.
Valid token, wrong community401 You are not allowed to get usersUse a credential that belongs to this community.

Complete examples#

The structured 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 [].
Treat names, avatars, and timestamps in examples as synthetic.

Success and readback#

HTTP 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.
Default fields are _id, id, avatar, displayName, username, firstName, lastName, email, isOnline, and lastLogin. Rows are ordered online first, then by lastLogin descending.
This is a read. Repeat the same request to refresh. There is no extra readback call.
CHECK
Default page
Call the path with no query string. The current https://api.returning.ai runtime returns up to 20 members and the full default field set.

Errors and recovery#

StatusWhenRecovery
400 Get users validation error. detail.communityId: Community ID is requiredcommunityId is missing or not an ObjectIdSend a 24-character ObjectId.
400 Get community users error. detail.page: Page must be at least 1page=0Use page ≥ 1 after query parameters start returning rows.
400 Get community users error. detail.limit: Limit cannot exceed 100limit=101Use limit 1–100 after query parameters start returning rows.
401 authorization middleware / Token is wrong.Missing or invalid Bearer tokenAdd a valid community key or member token.
401 You are not allowed to get usersToken is valid but cannot access this communitySwitch to a credential for this community.
A 500 from the service is an unexpected failure. Retry with bounded backoff and stop if it persists. This run did not induce 500.

Retry safety#

TIP
Exact retry
This GET does not create or modify users. Retry timeouts and 500 with bounded exponential backoff. Do not retry 400 or 401 without changing the path, query, or credential.
The service caches community membership and the aggregation pipeline. A retry immediately after a membership change can return a stale page.

Gotchas#

Query parameters currently return no rows
avatar may be null.
Privacy settings can replace firstName, lastName, or email with ********.
meta.total can be larger than data.length.
Users that fail response validation are omitted from data and may appear in meta.validationErrors.
Do not send a request body on this GET.
A malformed community path such as /v1/communities/users is a different route and is not this operation.

Next steps#

Search members by email or field
Use POST /v1/users/filter when you need filters. Send a required fields array. This list endpoint does not search.

Request

Path Params

Query Params

Header Params

Responses

🟢200OK
application/json
Membership page. Omit query parameters to receive rows on the current runtime.
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
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>'
Response Response Example
200 - Success Example
{
  "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"
    }
  ]
}
Modified at 2026-08-18 13:52:18
Previous
Update community name and URL
Next
Get user
Built with