Analyze Document
AI Analysis
Analyze Document
Extract structured insights from a stored document - summary, clauses, entities, and risks
POST
Analyze Document
Request
Headers
Optional UUID. Deduplicates retries within 24 hours.
Body Parameters
UUID of a document stored via
POST /v1/documents.Optional subset of sections to produce:
summary, clauses, entities, risks, obligations, dates, amounts, signatories. Defaults to all.Optional free-form instruction to steer the analysis (e.g. “focus on indemnity and limitation of liability clauses”).
Response
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
Example Response
Errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing or malformed document_id |
| 401 | invalid_key | Invalid or expired API key |
| 402 | insufficient_credits | Workspace credit balance is exhausted |
| 403 | insufficient_permissions | Missing write:ai permission |
| 404 | not_found | Document not found |
| 413 | payload_too_large | Document exceeds the 250-page limit |
| 429 | rate_limited | Rate limit exceeded |