Retrieve user information by user ID within a community context with optional field selection.Bearer token authentication required
User must have COMMUNITY_MEMBER
or COMMUNITY_OWNER
or COMMUNITY_ADMIN
permission for the specified community
User must be a community member, owner, or administrator to access other users' information
Community members can access information of other community members but some fields are protected
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Request Code Samples
curl --location --request GET 'https://application.returning.ai/apis/v1/communities//users/?_id&id&avatar&displayName&username&firstName&lastName&email&isOnline&lastLogin'
Responses
{
"meta": {
"status": "success",
"statusCode": 200
},
"message": "Get user success.",
"data": {
"_id": "61100af5c548eb5c7ebc7819",
"id": 123456789,
"avatar": "https://returning-ai.com/avatar.png",
"displayName": "Admin",
"username": "admin",
"firstName": "John",
"lastName": "Doe",
"email": "admin@example.com",
"isOnline": true,
"lastLogin": "2023-12-01T10:30:00Z"
}
}
Modified at 2025-08-28 10:33:56