Analysis

Analyze up to 50 documents in parallel

Processes an array of up to 50 legal documents in parallel (configurable concurrency 1-10). Returns results in the same order as the input array, with status: success or status: error per document.

Credits: worst-case pre-check (documents.length credits). Post-processing charges only for status: success. If the balance is not enough for the full batch, it returns 402 without processing anything.

Rate limit: 1 batch = 1 hit against RPM (credits do scale linearly).

Supports Idempotency-Key applied to the whole batch (hash of the array). 24h cache.

post/api/v1/analyze/batch

Request

  • Base URL: https://legal.nexusquantum.legal
  • URL: https://legal.nexusquantum.legal/api/v1/analyze/batch
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Optional idempotency key. Same key + same array returns the cached batch (24h TTL).

Request body

mode'standard' | 'deep'

Mode override for ALL documents in the batch. Compat aliases accepted: agil ⇄ standard, auditoria ⇄ deep. An invalid mode returns 400 INVALID_MODE.

concurrencyinteger

Simultaneous parallel analyses.

Example request

{
  "documents": [
    {
      "jurisdiction": "ES",
      "legalBranch": "civil"
    }
  ]
}

Response

Batch completed. Individual documents may come back with status: error.

batchIdstring uuid

Changes

No recorded changes to this operation across all 1 revision of this API.