List all documents
documents.list(DocumentListParams**kwargs) -> SyncCursorPagination[Document]
/documents
Retrieve a paginated list of documents 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.
household_id: Optional[str]
Filter documents by household ID
limit: Optional[int]
Maximum number of items to return
maximum1000
minimum1
Returns
List all documents
from withluminary import Luminary
client = Luminary()
page = client.documents.list()
page = page.data[0]
print(page.id)
{
"data": [
{
"id": "document_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "Trust Agreement.pdf",
"type": "GRAT_DESIGN_SUMMARY",
"updated_at": "2024-01-20T14:45:00Z",
"enable_ai_suggestions": true,
"entity_id": "entity_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"individual_id": "client_profile_01ARZ3NDEKTSV4RRFFQ69G5FAV"
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": false,
"end_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9",
"start_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9"
},
"total_count": 100
}
Returns Examples
{
"data": [
{
"id": "document_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "Trust Agreement.pdf",
"type": "GRAT_DESIGN_SUMMARY",
"updated_at": "2024-01-20T14:45:00Z",
"enable_ai_suggestions": true,
"entity_id": "entity_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"individual_id": "client_profile_01ARZ3NDEKTSV4RRFFQ69G5FAV"
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": false,
"end_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9",
"start_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9"
},
"total_count": 100
}