Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint
GET /ocr/v1/:id
curl https://api.case.dev/ocr/v1/JOB_ID \
  -H "Authorization: Bearer sk_case_YOUR_API_KEY"
Response (processing)
{
  "id": "1f4a195e-026b-41ff-b367-c61089f5f367",
  "status": "processing",
  "page_count": 245,
  "chunk_count": 50,
  "chunks_completed": 23,
  "chunks_processing": 15,
  "created_at": "2025-11-04T09:30:12Z"
}
Response (completed)
{
  "id": "1f4a195e-026b-41ff-b367-c61089f5f367",
  "status": "completed",
  "page_count": 245,
  "text": "Full extracted text from all 245 pages...",
  "confidence": 0.96,
  "processing_time_ms": 1091000,
  "links": {
    "text": "https://api.case.dev/ocr/v1/.../download/text",
    "json": "https://api.case.dev/ocr/v1/.../download/json",
    "pdf": "https://api.case.dev/ocr/v1/.../download/pdf"
  }
}

Status values

StatusMeaning
pendingQueued, not started
processingOCR in progress
completedDone, results ready
failedProcessing failed

Polling example

casedev ocr:v1 retrieve --id $JOB_ID
Use webhooks for large documents. Set callback_url when submitting to avoid polling.