Jobs
Check processing status for a document or job. After uploading a document with POST /v1/documents, poll this endpoint with the document ID until status is completed or failed.
Get job status
GET /v1/jobs/:id| Parameter | Description |
|---|---|
id | Job ID or document ID (for document processing, use the document ID returned from upload) |
curl "https://docld.com/api/v1/jobs/f47ac10b-58cc-4372-a567-0e02b2c3d479" \
-H "Authorization: Bearer docld_..."Response
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"object": "job",
"status": "completed",
"result": { "document_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479" },
"error": null,
"created": 1710000000
}| Field | Description |
|---|---|
status | pending, processing, completed, or failed |
result | On success, includes document_id or job-specific data; otherwise null |
error | Error message if status is failed; otherwise null |
Timestamps are Unix epoch seconds.
Last updated on