from retab import Retab client = Retab() splits = client.splits.list(limit=20, order="desc") for s in splits.data: print(f"{s.id}: {s.file.filename}")
{ "data": [ { "id": "split_01G34H8J2K", "organization_id": "org_abc123", "file": { "id": "file_6dd6eb00688ad8d1", "filename": "invoice_batch.pdf", "mime_type": "application/pdf" }, "model": "retab-small", "output": [ {"name": "invoice", "pages": [1, 2, 3], "partitions": []} ], "created_at": "2024-03-15T10:30:00Z", "updated_at": "2024-03-15T10:30:00Z" } ], "list_metadata": { "before": null, "after": "split_01G34H8J2K", "total_count": 12 } }
created_at
asc
desc
file.filename
YYYY-MM-DD
GET /v1/splits/count?filename=invoice&from_date=2024-01-01
{ "count": <int> }
Successful Response
Show child attributes