Analyze a legal document
Send the text of a legal document and receive a structured analysis generated by the Nexus Legal multi-agent engine. The credit is debited only after a successful analysis.
Supports the optional Idempotency-Key header (8-200 alphanumeric chars + -_). If sent, repeating the same request with the same key returns the cached response WITHOUT charging additional credits (24h TTL). If the body changes, it returns 409 Conflict.
⚠️ This endpoint is synchronous, and the gateway closes the connection at 300 s. That ceiling is not ours and cannot be raised from your side. MEASURED on 2026-08-18: a BYO account whose engine is a reasoning model (DeepSeek V-pro, o1-style, Claude 5 with thinking) running mode: "auditoria" over a ~5 KB contract went past it and returned 502 — the engine spends a large part of its budget on internal reasoning before it starts writing, and a second pass with a wider budget is issued automatically when it runs out. That combination belongs on the asynchronous path: POST /api/v1/jobs with kind: "analyze" returns 202 and a jobId to poll, with no wall clock. The synchronous endpoint remains the right one for platform engines and for mode: "standard".
Request
- Base URL: https://legal.nexusquantum.legal
- URL: https://legal.nexusquantum.legal/api/v1/analyze
- Auth: HTTP bearer
Headers
Optional idempotency key. Repeating with the same key returns the cached response (24h TTL).
Request body
Example request
{
"jurisdiction": "GB",
"roleVariant": "barrister"
}Response
Analysis completed successfully.
Example response
{
"model": "DeepSeek V4-Pro+deepseek-v4-pro",
"audit": {
"auditor": "deepseek-v4-pro",
"audited": true
}
}Changes
No recorded changes to this operation across all 1 revision of this API.