Home / Developers
Developers

Drop the engine into your stack.

The same pipeline the app runs is one API call away. Send a document, get back a verdict, a risk score, the document type, and a durable key to re-fetch it later. The REST API ships with our paid plans — coming soon; the docs are open today.

§01 / API
REST API

One endpoint. One verdict.

Authenticate with your API key, post a file, and receive a slim, structured result. It runs the identical five-layer engine as the app.

  • One endpoint. POST /api/v1/analyze returns status, verdict, score, type, and a document key.
  • Revocable keys. Generate a drk_live_ key in Settings — hash-only storage, regenerate or revoke anytime.
  • Re-fetch results. Pull any past analysis back by its document key.
API reference
analyze.sh
# scan a document — same engine as the app
$ curl -X POST https://docurensic.com/api/v1/analyze \
-H "Authorization: Bearer drk_live_•••" \
# → response
{
"status": "completed",
"document_key": "a3f1c8e0-2b4d-4e6a-9c1f-7d20e5b40a10",
"document_type": "invoice",
"score": 52,
"verdict": "review"
}
§02 / WEBHOOKS
webhook · complete
# signed POST to your endpoint on every completed scan
X-Docurensic-Signature: sha256=•••
{
"event": "complete",
"risk_level": "medium",
"timestamp": "2026-07-18T14:22:05Z",
"document": {
"report_id": "a3f1c8e0-2b4d-4e6a-9c1f-7d20e5b40a10",
"filename": "invoice-4471.pdf",
"verdict": "review",
"risk_score": 52,
"report_url": "https://docurensic.com/report?id=a3f1c8e0…"
}
}
Webhooks

Get told the moment a scan finishes.

Register an endpoint and Docurensic sends a signed POST on every completed scan, carrying the verdict, filename, risk score, and report id. Each delivery is HMAC-signed so you can trust it came from us.

  • Signed. Verify X-Docurensic-Signature with your per-endpoint secret.
  • Logged. Every delivery attempt is recorded so you can see what fired and when.
  • Workflow-driven. Or fire a webhook only when a rule matches — you decide the trigger.

Build with the engine.

The REST API ships with our paid plans — coming soon. Start scanning free today, and talk to us for early API access.