Users
Retrieve user information by user ID with optional field selection.Bearer token authentication required
Only application members can access this endpoint
User must have APPLICATION_MEMBER
permission
User can only get their own information unless using community-based access
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
The ID of the user to retrieve
Example:61100af5c548eb5c7ebc7819
Include _id field in response
Include id field in response
Include avatar field in response
Include displayName field in response
Include username field in response
Include firstName field in response
Include lastName field in response
Include email field in response
Include isOnline field in response
Include lastLogin field in response
Request samples
curl --location --request GET 'https://application.returning.ai/apis/v1/users/'
Responses
Success message for the operation
lastLogin
string <date-time>
optional{
"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-06-24 08:36:32