# Users ## List all users `users.list(UserListParams**kwargs) -> SyncCursorPagination[User]` **get** `/users` Retrieve a paginated list of users using cursor-based pagination ### Parameters - `after: Optional[str]` Cursor for forward pagination. Returns items after this cursor. - `before: Optional[str]` Cursor for backward pagination. Returns items before this cursor. - `limit: Optional[int]` Maximum number of items to return ### Returns - `class User: …` - `id: str` Unique identifier with user_ prefix - `created_at: datetime` Timestamp when the user was created - `email: str` Email address of the user - `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 ### Example ```python from withluminary import Luminary client = Luminary() page = client.users.list() page = page.data[0] print(page.id) ``` #### Response ```json { "data": [ { "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" } ], "page_info": { "has_next_page": true, "has_previous_page": false, "end_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9", "start_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9" }, "total_count": 100 } ``` ## Get a user by ID `users.retrieve(strid) -> User` **get** `/users/{id}` Retrieve detailed information about a specific user ### Parameters - `id: str` ### Returns - `class User: …` - `id: str` Unique identifier with user_ prefix - `created_at: datetime` Timestamp when the user was created - `email: str` Email address of the user - `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 ### Example ```python from withluminary import Luminary client = Luminary() user = client.users.retrieve( "id", ) print(user.id) ``` #### Response ```json { "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" } ``` ## Domain Types ### User - `class User: …` - `id: str` Unique identifier with user_ prefix - `created_at: datetime` Timestamp when the user was created - `email: str` Email address of the user - `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