Skip to main content
POST
Analyze Document
This endpoint consumes AI credits based on document size: 3 credits for documents up to 10 pages, 6 credits up to 50 pages, and 12 credits up to 250 pages. Documents larger than 250 pages are rejected with 413 payload_too_large. If the workspace balance is insufficient, the API returns 402 insufficient_credits.

Request

Headers

string
Optional UUID. Deduplicates retries within 24 hours.

Body Parameters

string
required
UUID of a document stored via POST /v1/documents.
array
Optional subset of sections to produce: summary, clauses, entities, risks, obligations, dates, amounts, signatories. Defaults to all.
string
Optional free-form instruction to steer the analysis (e.g. “focus on indemnity and limitation of liability clauses”).

Response

object
Responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.

Example Response

Errors