from retab import Retab client = Retab() edits = client.edits.list(limit=20, order="desc") for edit in edits.data: print(f"{edit.id}: {edit.file.filename}") # Filter by template edits = client.edits.list(template_id="edittplt_abc123", limit=50)
{ "data": [ { "id": "edit_01G34H8J2K", "file": { "id": "file_6dd6eb00688ad8d1", "filename": "form.pdf", "mime_type": "application/pdf" }, "model": "retab-small", "template_id": null, "usage": {"page_count": 1, "credits": 1.0}, "created_at": "2024-03-15T10:30:00Z", "updated_at": "2024-03-15T10:30:00Z" } ], "list_metadata": { "before": null, "after": "edit_01G34H8J2K", "total_count": 42 } }
100
created_at
asc
desc
file.filename
GET /v1/edits/count?template_id=edittplt_abc123
{ "count": <int> }
1 <= x <= 100
Successful Response
Show child attributes