Quantum Nexus DMS API
The DMS API from Quantum Nexus — 1 operation(s) for dms.
The DMS API from Quantum Nexus — 1 operation(s) for dms.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nexusquantum-legal:nexusquantum-legal-dms-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Nexus Legal DMS API
version: 1.95.0
description: 'Multi-jurisdictional legal analysis API with a multi-agent architecture and Zero Retention. ## Output language
`language` (and the language implied by the jurisdiction) sets the language the text is written in. For `es` and `en` the delivered text is also measured: when a substantial part of it came back in the other of the two, a block headed `⚠️ LANGUAGE OF THIS REPORT` (`⚠️ IDIOMA DE ESTE INFORME` when `es` was requested) is added at the end of the text. It works the same with any engine, BYO included. - **When there is no block**: it is not a confirmation. Other languages are not measured, and neither is a text too short or too mixed to tell. - **With BYO**: how closely the output follows the request depends on your engine. - **If the output language is essential to your workflow**: check it on your side against the `analysis` string. ## The verdict travels INSIDE the text — read this before you parse a response
Every string this API returns that a lawyer reads — `analysis`, `answer`, `report`, `draft`, `synthesisText`, and the string fields of structured results like `applicableLaw[]` — carries the citation verdict **inline**, not only in the `citationChecks` object beside it. **What you will actually see:**
```
An acknowledgement does not revive a claim already barred: section 29(7) of the
Limitation Act 1980 【✓】. See also [2019] EWHC 3556 (Comm)
【◻ not checked — the reason is in this citation''s note】. ---
DETERMINISTIC CITATION CHECK (against the official corpus)
1 verified · 1 not checked. ◻ **Not checked** — they were not compared against any official corpus…
```
- **Inline marker**: a `【…】` block immediately after each citation, in the response language. The glyph carries the verdict: `✓` verified · `⚠` a warning (e.g. the decision exists but a party you named does not appear in it) · `⛔` broken · `◻` not checked. - **Footer**: a `---` block at the end with the tally and, for anything not clean, the list of citations and why. **Why it is in the text and not only in the JSON.** Whoever copies an answer into an email, a brief or a .docx takes the PROSE. The `citationChecks` object does not travel with it. A verdict that only exists in a field beside the text is a verdict the reader can lose without noticing. **If you parse these strings**: markers are the only `【…】` sequences we emit, so they are safe to strip with a single regex if your pipeline needs the raw prose — but do not strip them from anything a human will read. `citationChecks` remains the machine-readable source of truth for counts and per-citation status; the markers are the same verdict, placed where it cannot get lost. **Idempotent**: annotating an already-annotated text does not duplicate markers or the footer. ## Streaming: `verifiedText` on the `done` event
On SSE routes the client already holds the raw prose by the time the verifier finishes, so the closing `{type:"done"}` event carries `verifiedText`: the same answer with the verdict already in it. **If it is present, render it in place of the concatenated `text_delta` chunks.** It is omitted when there is nothing to annotate, in which case the deltas are already final. The REST wrappers do this for you — `/v1/consulta`, `/v1/chat` and the rest aggregate server-side and hand you the annotated text — so this only concerns you if you consume the SSE stream directly. ## Base capabilities
- **Mode=deep**: the Node A (Claude Opus 4.7) + Node B (DeepSeek V4-Pro) chain audits adversarially. 2 credits. Returns an `audit` object with structured findings (hallucinations, false citations, omissions). - **Direct models**: calls through the providers'' own APIs (Anthropic, DeepSeek) with no proxies — lower latency, better rate limits. - **Stable Stripe-style error format**: `error.type`, `error.code`, `error.request_id`, `error.details` + backward-compat aliases. ## Errors and rate limits
- **Branch on `error.code`.** A code you do not recognise is handled by its `error.type`.'
contact:
name: Nexus Legal
email: support@nexusquantum.legal
url: https://legal.nexusquantum.legal/developers
license:
name: Commercial
url: https://nexusquantum.legal/terms
servers:
- url: https://legal.nexusquantum.legal
description: Production
security:
- ApiKeyAuth: []
tags:
- name: DMS
paths:
/api/v1/dms/box/analyze:
post:
tags:
- DMS
summary: Analyze a Box file without downloading it manually
description: 'Pass a Box file_id and Nexus downloads + extracts the text (Gemini OCR for .pdf/.docx, direct read for .txt/.md) + analyzes it with Node A. Charges 1 credit only on success. The user behind the API key must have an active Box connection in dms_connections. Max file size: 50 MB.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- file_id
- jurisdiction
properties:
file_id:
type: string
description: Box file id (16 digits)
jurisdiction:
type: string
example: ES
legal_branch:
type: string
example: civil
description: 'Default: civil'
language:
type: string
example: es
mode:
type: string
enum:
- standard
- deep
description: deep = Node B audit (Premium)
write_metadata:
type: boolean
default: true
description: 'Writes the analysis result back to the Box file as metadata (global properties template: nexus_jurisdiction, nexus_legal_branch, nexus_risk, nexus_summary, nexus_model, nexus_analyzed_at). Best-effort: the analysis does not fail if the write fails. Requires the Box root_readwrite scope (already granted).'
responses:
'200':
description: '{ analysis, jurisdiction, legalBranch, model, processingMs, metadata_written, source: {provider, file_id, file_name, ...} }'
'402':
description: INSUFFICIENT_CREDITS — balance < 1 | SPEND_CAP_REACHED — the key's monthly cap (per-key monthly cap; `debitCredits` now receives `apiKeyId`). type `insufficient_credits_error`, code `SPEND_CAP_REACHED`, not retryable.
content:
application/json:
schema:
$ref: '#/components/schemas/InsufficientCreditsError'
'403':
description: BOX_NOT_CONNECTED | INSUFFICIENT_SCOPE
'409':
description: BYO_PROVIDER_REQUIRED — BYO-mandatory account without an enabled BYO configuration (fail-closed, no charge).
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictError'
'413':
description: FILE_TOO_LARGE — file > 50 MB
'422':
description: '`OUTPUT_WITHHELD_BY_POLICY` (type `policy_error`) — enforced surface (parity with `/v1/analyze`): delegated verification enforcement active and the output had real broken citations. **No credits are charged.** `error.details` follows the `WithholdDetails` schema.'
content:
application/json:
schema:
$ref: '#/components/schemas/WithholdDetails'
operationId: postApiV1DmsBoxAnalyze
x-operation-id-source: derived
components:
schemas:
InsufficientCreditsError:
type: object
required:
- error
- balance
- required
properties:
error:
type: string
example: INSUFFICIENT_CREDITS
balance:
type: number
description: User's current credit balance.
required:
type: number
description: Credits required for this operation.
ConflictError:
type: object
required:
- error
description: '409 Conflict — Stripe-style envelope. Main case: code BYO_PROVIDER_REQUIRED (account with BYO-LLM enforced and no enabled configuration; register a provider with POST /api/v1/llm-providers). On SSE routes whose stream is already open, the same code travels as an event {type:''error'', code}. It applies to the generative endpoints, where the account can supply its own engine, and there is no fallback to the platform engines: with an enabled configuration, the effective routing on those endpoints is `own_only`, even if the configuration declares `own_then_platform`. Case-mode utilities that do not take your engine (timeline, metadata extraction, tone analysis) never return this code: they run with personal data masked first and return a `ZERO_RETENTION_EXTERNAL_UTILITY` notice (severity `warning`) in `notices`/`warnings`, as OCR and audio do with `ZERO_RETENTION_EXTERNAL_PERCEPTION`. The requirement is set by Nexus on the account and cannot be changed through the API.'
properties:
error:
type: object
required:
- type
- code
- message
properties:
type:
type: string
example: conflict_error
code:
type: string
example: BYO_PROVIDER_REQUIRED
message:
type: string
request_id:
type: string
details:
type: object
error_message:
type: string
description: Backward-compat (deprecated v1.7).
code:
type: string
description: Backward-compat (deprecated v1.7).
Attestation:
type: object
description: 'Signed, offline-verifiable attestation of an output. The EdDSA (Ed25519) signature is verified against the public JWKS (`GET /api/v1/attestations/keys`) with no shared secret. Zero-Retention: `citation_summary` carries counts only (no canonical citation text); `content_hash` binds the exact text the verifier re-submits.'
required:
- attestation_version
- issued_at
- signer_key_id
- jurisdiction
- integrity_hash
- content_hash
- verify_engine_version
- signature
properties:
attestation_version:
type: string
example: '1'
issued_at:
type: string
format: date-time
signer_key_id:
type: string
description: kid of the signing key (matches a key in the JWKS).
example: att_20260712_a
output_id:
type: string
format: uuid
job_id:
type:
- string
- 'null'
format: uuid
request_id:
type:
- string
- 'null'
jurisdiction:
type: string
example: ES
routing:
type: object
description: Effective routing for the attested run.
properties:
mode:
type: string
enum:
- byo
- platform
provider_id:
type:
- string
- 'null'
integrity_hash:
type: string
description: analysis_outputs.integrity_hash = SHA256(analysis_text + job_id + created_at).
content_hash:
type: string
description: SHA256(normalize(analysis_text)); normalize = NFC + trim. Binds the content the verifier re-submits.
model_chain:
type: array
items:
type: string
verify_engine_version:
type: string
example: 2026-06-08.1
citation_summary:
type: object
description: 'Counts only (ZR): { counts, anyBroken, total }.'
signature:
type: string
description: base64url EdDSA signature over the canonical JSON of the attestation with `signature` excluded.
WithholdDetails:
type: object
description: '`error.details` of a `422 OUTPUT_WITHHELD_BY_POLICY` (and the async job envelope). Zero-Retention: `broken_citations` are the CLIENT''s own citation strings, never canonical corpus text.'
properties:
policy_scope:
type: string
enum:
- api_key
- organization
- user
policy_version:
type: integer
broken_count:
type: integer
description: Real broken citations (mismatch/not_found/derogated).
broken_citations:
type: array
items:
type: object
properties:
citation:
type: string
status:
type: string
enum:
- mismatch
- not_found
- derogated
description: Up to 50; your own citation strings + status. No canonical text.
broken_citations_truncated:
type: boolean
description: Present (true) when more than 50 broken citations were found.
attestation:
$ref: '#/components/schemas/Attestation'
securitySchemes:
ApiKeyAuth:
type: http
scheme: bearer
bearerFormat: nlk_...