List all users
client.users.list(UserListParams { after, before, limit } query?, RequestOptionsoptions?): CursorPagination<User { id, created_at, email, 3 more } >
/users
Retrieve a paginated list of users using cursor-based pagination
Parameters
Returns
List all users
import Luminary from 'withluminary';
const client = new Luminary();
// Automatically fetches more pages as needed.
for await (const user of client.users.list()) {
console.log(user.id);
}
{
"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
}
Returns Examples
{
"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
}