Skip to content
Get started

Get a user by ID

users.retrieve(strid) -> User
get/users/{id}

Retrieve detailed information about a specific user

ParametersExpand Collapse
id: str
ReturnsExpand Collapse
class User:
id: str

Unique identifier with user_ prefix

created_at: datetime

Timestamp when the user was created

formatdate-time
email: str

Email address of the user

formatemail
first_name: str

First name of the user

last_name: str

Last name of the user

updated_at: datetime

Timestamp when the user was last updated

formatdate-time
Get a user by ID
from withluminary import Luminary

client = Luminary()
user = client.users.retrieve(
    "id",
)
print(user.id)
{
  "id": "user_01ARZ3NDEKTSV4RRFFQ69G5FAV",
  "created_at": "2024-01-15T09:30:00Z",
  "email": "jane.doe@example.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "updated_at": "2024-01-20T14:45:00Z"
}
Returns Examples
{
  "id": "user_01ARZ3NDEKTSV4RRFFQ69G5FAV",
  "created_at": "2024-01-15T09:30:00Z",
  "email": "jane.doe@example.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "updated_at": "2024-01-20T14:45:00Z"
}