/api/v1/versions/{id}/analyze # Queue a full AI review of a DOCX version: clause segmentation, metadata extraction, baseline comparison (when a baseline is pinned), risk findings with verified evidence, and a summary. Asynchronous — poll GET /analysis until run.status is 'complete' (or 'partial'/'failed').
Auth · Bearer token · reviewer role or above · 10 AI credits
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | uuid | yes | Version id (ready DOCX) |
| mode | body | enum | no | full (default) | delta | selected_text | focused |
curl -X POST "https://app.version90.com/api/v1/versions/$VID/analyze" \
-H "Authorization: Bearer $V90_TOKEN" \
-H "Content-Type: application/json" -d '{"mode": "full"}' { "run_id": "c5d6e7f8-…", "status": "queued" } Errors
402 allowance_exhaustedmonthly AI credits used (production)403 user_ai_limit / user_ai_blockedadmin capped the token creator's AI usage422version is not a ready DOCX