Get User
curl --request GET \
--url https://api.example.com/api/users/{user_id}{
"id": "<string>",
"email": "<string>",
"username": "<string>",
"role": "<string>",
"name": "<string>",
"profile_image_url": "<string>",
"profile_banner_image_url": "<string>",
"bio": "<string>",
"gender": "<string>",
"date_of_birth": "<string>",
"timezone": "<string>",
"presence_state": "<string>",
"status_emoji": "<string>",
"status_message": "<string>",
"status_expires_at": 123,
"info": {},
"settings": {
"ui": {}
},
"oauth": {},
"scim": {},
"last_active_at": 123,
"updated_at": 123,
"created_at": 123,
"groups": [
{
"id": "<string>",
"name": "<string>"
}
],
"is_active": true
}Users & Groups
Get User
GET
/
api
/
users
/
{user_id}
Get User
curl --request GET \
--url https://api.example.com/api/users/{user_id}{
"id": "<string>",
"email": "<string>",
"username": "<string>",
"role": "<string>",
"name": "<string>",
"profile_image_url": "<string>",
"profile_banner_image_url": "<string>",
"bio": "<string>",
"gender": "<string>",
"date_of_birth": "<string>",
"timezone": "<string>",
"presence_state": "<string>",
"status_emoji": "<string>",
"status_message": "<string>",
"status_expires_at": 123,
"info": {},
"settings": {
"ui": {}
},
"oauth": {},
"scim": {},
"last_active_at": 123,
"updated_at": 123,
"created_at": 123,
"groups": [
{
"id": "<string>",
"name": "<string>"
}
],
"is_active": true
}Retrieves detailed information about a specific user, including their groups and active status.
Authentication
Requires admin authentication.Path Parameters
The unique identifier of the user. Can also accept
shared-{chat_id} format to retrieve the user from a shared chat.Response
Unique user identifier
User email address
Username (optional)
User role:
admin, user, or pendingUser display name
URL to user’s profile image
URL to user’s profile banner image
User biography
User gender
User date of birth (ISO date format)
User timezone
User presence state
Status emoji
Status message text
Unix timestamp when status expires
Additional user information (JSON)
OAuth authentication data
SCIM provisioning data
Unix timestamp of last activity
Unix timestamp of last update
Unix timestamp of creation
Whether the user is currently active (last active within 3 minutes)
Example Request
curl -X GET "https://your-domain.com/api/users/user-123" \
-H "Authorization: Bearer YOUR_TOKEN"
Example Response
{
"id": "user-123",
"email": "user@example.com",
"username": "johndoe",
"role": "user",
"name": "John Doe",
"profile_image_url": "/api/v1/users/user-123/profile/image",
"bio": "Software developer",
"timezone": "America/New_York",
"status_emoji": "💻",
"status_message": "Working on a project",
"last_active_at": 1709424000,
"updated_at": 1709424000,
"created_at": 1709337600,
"groups": [
{
"id": "group-1",
"name": "Engineering"
},
{
"id": "group-2",
"name": "Admins"
}
],
"is_active": true
}
Notes
- Active status is determined by last activity within 3 minutes
- Can resolve user from shared chats using
shared-{chat_id}format - Returns 400 error if user not found
- Returns 403 error if action is prohibited (e.g., accessing primary admin)
⌘I