PdfParse Docs

How-To: Run an Extraction Job

Queue extraction for uploaded documents and poll for status.

1. Queue extraction

curl -X POST "https://api.pdfparse.net/v1/jobs" \
  -H "Authorization: Bearer ${PDFPARSE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "tableSlug": "invoice_rows-def67890",
    "documentKeys": ["file_a", "file_b"]
  }'

Store the returned id as job_id.

2. Poll job status

curl -X GET "https://api.pdfparse.net/v1/jobs/<job_id>" \
  -H "Authorization: Bearer ${PDFPARSE_API_KEY}"

3. Query table rows

curl -X POST "https://api.pdfparse.net/v1/rows/search" \
  -H "Authorization: Bearer ${PDFPARSE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "table_id": "<table_id>",
    "filters": [],
    "page": 1,
    "pageSize": 50
  }'