List jobs for a document
List all extraction jobs for a specific document.
Returns the extraction history for a document, including any re-processing attempts. Jobs are ordered from newest to oldest.
Args: document_id: UUID of the document to list jobs for. session_and_auth: Database session and auth context (injected). page: Page number (1-indexed). Values < 1 are normalized to 1. per_page: Items per page (1-100). Values outside range are clamped.
Returns: JobListResponse: Paginated list of jobs for this document.
Raises: HTTPException 404: Document not found or not accessible by tenant.
Edge Cases:
- Document without jobs: Document exists but returns empty jobs list (rare).
- Re-processing history: Multiple jobs show extraction history over time.
- Latest job: First item (page=1, index=0) is the most recent job.
- Tenant isolation: Verifies document ownership before listing jobs.
Authorizations
API Key authentication. Format: dk_test_ or dk_live_
Path Parameters
UUID of the document
Query Parameters
Page number (1-indexed)
x >= 1Items per page (max 100)
1 <= x <= 100Response
Paginated list of extraction jobs for the document