Skip to main content
GET
Get User
Retrieves detailed information about a specific user, including their groups and active status.

Authentication

Requires admin authentication.

Path Parameters

string
required
The unique identifier of the user. Can also accept shared-{chat_id} format to retrieve the user from a shared chat.

Response

string
Unique user identifier
string
User email address
string
Username (optional)
string
User role: admin, user, or pending
string
User display name
string
URL to user’s profile image
string
URL to user’s profile banner image
string
User biography
string
User gender
string
User date of birth (ISO date format)
string
User timezone
string
User presence state
string
Status emoji
string
Status message text
integer
Unix timestamp when status expires
object
Additional user information (JSON)
object
User settings object
object
OAuth authentication data
object
SCIM provisioning data
integer
Unix timestamp of last activity
integer
Unix timestamp of last update
integer
Unix timestamp of creation
array
Array of groups the user belongs to
boolean
Whether the user is currently active (last active within 3 minutes)

Example Request

Example Response

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)