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 user

GET
/v1/communities/{communityId}/users/{userId}

What this endpoint does#

Returns one community member. Use it when you already have that community's ObjectId and the member's Mongo ObjectId or email.
It does not search. Numeric platform id and username are not accepted as userId on the current public runtime. It does not return roles, XP, coins, or custom-field values.
INFO
Workflow
Authenticate for this community → GET with ObjectId or email and no query string → read data → use POST /v1/users/info when you only have a numeric platform id.

Quick start#

Replace <communityId> with a 24-character community ObjectId. Replace <userId> with the member's Mongo ObjectId, or with their email. On the current public runtime, omit query parameters when you need the default field set.

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 that the permission layer treats as an application member and that the controller treats as a community member, owner, or admin.
The route permission check uses APPLICATION_MEMBER. After that, the controller still requires community membership flags before it loads another user. A community API key can read members of its own community. The same key cannot read a user through another community ObjectId.
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 or unknown community401 Get user error. with detail: User can only get your own information! and a solution pointing at the community pathUse a credential and communityId that belong together.

Complete examples#

The structured 200 populated example is the current no-query success shape for ObjectId or email. The structured 200 selected example is ?username=true. The structured 200 empty example is the current response when a query key such as page is sent: HTTP 200 with data: {}.
Treat names, avatars, and timestamps in examples as synthetic.

Success and readback#

HTTP 200. message is Get user success. The envelope is { meta, message, data }.
data is one user object, not an array.
meta includes status and statusCode. It does not include page, limit, or total.
Default fields are _id, id, avatar, displayName, username, firstName, lastName, email, isOnline, and lastLogin.
Boolean query flags named after those fields include only the flags sent as true. This GET is a read. Repeat the same request to refresh. There is no extra readback call.
CHECK
ObjectId or email, no query
Call the community path with a member ObjectId or email and no query string. The current https://api.returning.ai runtime returns the default field set for a community API key that belongs to that community.

Errors and recovery#

StatusWhenRecovery
400 Get user validation error. detail.communityId: Community ID is requiredcommunityId is missing or not an ObjectIdSend a 24-character ObjectId.
401 authorization middleware / Token is wrong.Missing or invalid Bearer tokenAdd a valid community key or member token.
401 User can only get your own information!Token is valid but the controller does not treat the caller as a member, owner, or admin of this communitySwitch to a credential for this community. The solution string still names the community path even when that path was already used.
404 Get user error. detail: User not foundUnknown ObjectId, numeric platform id, or usernameUse Mongo ObjectId or email. For numeric id, use POST /v1/users/info.
404 Route not found error.GET /v1/users/{userId} on api.returning.aiUse this community path or POST /v1/users/info.
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, 401, or 404 without changing the path, query, or credential.
The service caches community membership and the aggregation pipeline. A retry immediately after a profile or membership change can return a stale object.

Gotchas#

Numeric id and username are not userId
Unrecognized query keys empty the object
A community API key can get a member of its own community. The 2026-06-07 401 User can only get your own information result is stale for that own-community case.
GET /v1/users/{userId} is not mounted on the current public gateway.
avatar may be null.
Privacy settings can replace firstName, lastName, or email with ********.
Do not send a request body on this GET.
The permission middleware message You are not allowed to get user is in source. The Codex community-key probes hit the controller 401 instead for a foreign community.

Next steps#

Look up one user by email or numeric id
Use POST /v1/users/info when you have an email or numeric platform id and this GET returned 404.

Request

Path Params

Query Params

Header Params

Responses

🟢200OK
application/json
One member. Omit query parameters to receive the default field set.
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://adss-application.returning.ai/v1/communities/61100af5c548eb5c7ebc7819/users/61100af5c548eb5c7ebc7819?_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
  },
  "message": "Get user 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"
  }
}
Modified at 2026-08-18 15:30:34
Previous
Get community users
Next
Create community
Built with