API

Hanko AI API

Integrate Hanko AI legal intelligence directly into your workflows. All endpoints require a Bearer token obtained from your organization settings, except where noted.

API access is currently in closed beta. Contact sales@hanko.ai to request access.

Base URL

https://app.hanko.ai

Authentication

Authorization: Bearer <your-api-key>
X-Org-Id: <your-org-id>

API keys are scoped to your organization. All requests are logged with the key ID, timestamp, and token usage for billing and audit purposes.

Endpoints

POST/api/documents/uploadBusiness+

Upload a document (PDF or DOCX) for extraction and review.

POST/api/documents/{id}/reviewBusiness+

Trigger a full contract review by the Keiyaku Agent. Returns redlines, risk score, and citations.

GET/api/documents/{id}/review.htmlBusiness+

Download the standalone HTML redline report for a reviewed document.

GET/api/documents/{id}/review.pdfBusiness+

Download the annotated PDF with highlights and a summary page appended.

POST/api/stamps/issueEnterprise

Issue a Hanko Digital Stamp (ECDSA-P256) for a reviewed document meeting eligibility criteria.

GET/verify/{stamp_id}Public

Public verification endpoint. No authentication required. Returns stamp authenticity and document fingerprint.

POST/api/qaBusiness+

Ask a legal question against your uploaded documents. Returns SSE streaming response with citations.

Request API Access

API access is available on Business and Enterprise plans.

Contact Sales