Developer Reference · v2.8
Integrate spatial PDF intelligence in four lines of code.
Synchronous extraction for sub-second interactive pipelines, or asynchronous webhook queues for multi-million page archives.
from kinetixrag import KinetixClient
client = KinetixClient(api_key="kx_live_...")
result = client.extract(
file="q4-10k-filing.pdf",
modules=["tables", "equations", "diagrams"],
confidence_threshold=0.92,
include_bboxes=True,
zero_retention=True,
)
for table in result.tables:
print(table.page, table.confidence, table.to_markdown()) Response Provenance Contract
Every extracted table cell, diagram node, and LaTeX block includes a four-point PDF coordinate array in 72 DPI user-space points alongside calibrated log-probability confidence.
Zero-Retention Header
Send X-Zero-Retention: true to enforce ephemeral RAM-only inference with cryptographic wipe confirmation.
Idempotent Retries
Pass Idempotency-Key on async S3 batch jobs to prevent duplicate billing during network retries.
Core Endpoints
POST /v2/extract Sync ≤ 40 pp Immediate layout-aware JSON extraction with confidence scores.
POST /v2/jobs/batch Async S3/GCS High-throughput queue returning Parquet and JSONL manifests.
POST /v2/schemas/validate Dry-run Compile Zod or JSON Schema definitions into constrained grammar caches.
HTTP Status Codes
200 OKExtraction succeeded within confidence gate206 PartialDocument parsed with low-confidence cells flagged422 UnprocessableEncrypted PDF missing decryption password429 Rate LimitRetry after X-RateLimit-Reset header