Skip to main content
This guide walks through the complete workflow of ingesting a document and waiting for extraction.

The Workflow

Prerequisites

  • DocIntell API key (get one here)
  • A PDF document (we’ll use an invoice as an example)

Step 1: Upload the Document

curl -X POST https://api.docintell.com/v1/documents \
  -H "Authorization: Bearer dk_live_YOUR_API_KEY" \
  -F "file=@invoice.pdf" \
  -F "retention_years=7"
You’ll receive a 202 Accepted response:
{
  "document_id": "019370ab-c123-7def-8901-234567890abc",
  "job_id": "019370ab-c456-7def-8901-234567890def",
  "status": "pending"
}

Step 2: Wait for Processing

Poll the job status or use webhooks:
curl -X GET https://api.docintell.com/v1/jobs/019370ab-c456-7def-8901-234567890def \
  -H "Authorization: Bearer dk_live_YOUR_API_KEY"
Wait until status is "completed".
Use webhooks instead of polling for production workloads.

Next Steps