Skip to main content
The GET /api/v1/jobs/{jobId} endpoint lets you check the status of a job and retrieve its result once parsing completes. Because FileRouter processes documents asynchronously, you call this endpoint repeatedly until the job transitions to complete or failed. The response shape changes depending on the job’s current status.
The TypeScript FileRouterClient polls this endpoint automatically and resolves its promise when the job completes or rejects it when the job fails. You only need to poll manually when using the REST API directly from a non-TypeScript environment.

Path Parameters

jobId
string
required
The UUID of the job to retrieve. You get this value from the id field in the POST /api/v1/jobs response. Example: 550e8400-e29b-41d4-a716-446655440000.

Required Headers

Authorization
string
required
Bearer token authentication. Format: Bearer <your-api-key>. See Authentication for details.

Response Shapes by Status

The response body varies based on the job’s current status. Poll until you see "complete" or "failed".
The job is in the queue or actively being processed. Continue polling.
In-progress job response
id
string
required
The UUID of the job.
status
string
required
Either "queued" (waiting to start) or "running" (currently processing).
Results expire after 7 days. Fetching a job whose result has expired returns HTTP 410 Gone. Download or store your results before the expiry window if you need them long-term.

Polling Example

Poll every few seconds until the job reaches a terminal status (complete or failed):
Polling loop (bash)

Error Responses

The Authorization header is missing, invalid, or the key has been disabled or expired. See Authentication for details.
401 error body
No job with the given jobId exists for your account. Verify the UUID and ensure you’re using the same API key that created the job.
404 error body
The job completed, but its result has passed the 7-day retention window and has been deleted. You can no longer retrieve the result for this job ID.
410 error body
An unexpected server-side error occurred. The response includes a request_id — include it when contacting support.