List all entities
client.entities.list(EntityListParams { after, before, household_id, 2 more } query?, RequestOptionsoptions?): CursorPagination<Entity { id, created_at, display_name, 5 more } >
/entities
Retrieve a paginated list of entities (trusts, businesses, accounts, etc.) using cursor-based pagination
Parameters
Returns
List all entities
import Luminary from 'withluminary';
const client = new Luminary();
// Automatically fetches more pages as needed.
for await (const entity of client.entities.list()) {
console.log(entity.id);
}
{
"data": [
{
"id": "entity_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"display_name": "My Revocable Trust",
"household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"in_estate_status": "in_estate",
"kind": "REVOCABLE_TRUST",
"stage": "PRE_CREATED",
"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": "entity_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"display_name": "My Revocable Trust",
"household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"in_estate_status": "in_estate",
"kind": "REVOCABLE_TRUST",
"stage": "PRE_CREATED",
"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
}