Quantum Nexus Firm Memory API

The Firm Memory API from Quantum Nexus — 3 operation(s) for firm memory.

GitHub OpenAPI

Operations 6

GET /api/v1/firm-memory List firm memory (firm-scoped) · 0 credits #
POST /api/v1/firm-memory Create firm memory entry (creator-only) · 0 credits #
GET /api/v1/firm-memory/{id} Firm memory entry detail (firm-scoped) · 0 credits #
PATCH /api/v1/firm-memory/{id} Update firm memory entry (creator-only) · 0 credits #
DELETE /api/v1/firm-memory/{id} Delete firm memory entry (creator-only, idempotent) · 0 credits #
GET /api/v1/firm-memory/{id}/history Version history of a firm memory entry (creator-only) · 0 credits #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nexusquantum-legal:nexusquantum-legal-firm-memory-api"
All apis
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.

Get an API 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 Specification

nexusquantum-legal-firm-memory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nexus Legal Firm Memory 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: Firm Memory
paths:
  /api/v1/firm-memory:
    get:
      tags:
      - Firm Memory
      summary: List firm memory (firm-scoped) · 0 credits
      description: 'Lists the firm knowledge base entries (playbook/tone/risk/format). Firm-scoped: you see the entries of every member of your firm. Optional filters by scope. No charge. Scope: cases | mcp | *.'
      parameters:
      - name: category
        in: query
        required: false
        schema:
          type: string
          enum:
          - clausula
          - tono
          - riesgo
          - formato
          - general
      - name: jurisdiction
        in: query
        required: false
        schema:
          type: string
        description: Filter by the entry's scope code (NOT routing).
      - name: subject_matter
        in: query
        required: false
        schema:
          type: string
      - name: case_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Array of FirmMemory (firm-scoped).
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FirmMemory'
      operationId: getApiV1FirmMemory
      x-operation-id-source: derived
    post:
      tags:
      - Firm Memory
      summary: Create firm memory entry (creator-only) · 0 credits
      description: 'Creates an entry; the caller becomes its creator (only they can edit or delete it). `title` and `content` are required. `jurisdiction`/`subject_matter`/`case_id` are optional SCOPE fields of the data (NOT routing defaults — ES is never assumed). No charge. Scope: cases | mcp | *.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFirmMemoryRequest'
      responses:
        '201':
          description: FirmMemory created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FirmMemory'
        '400':
          description: title/content missing or too long | invalid category
        '403':
          description: case_id outside your firm
        '404':
          description: case_id does not exist
      operationId: postApiV1FirmMemory
      x-operation-id-source: derived
  /api/v1/firm-memory/{id}:
    get:
      tags:
      - Firm Memory
      summary: Firm memory entry detail (firm-scoped) · 0 credits
      description: Returns an entry by its id (firm-scoped projection over the list). An entry from another firm does not appear → 404 (isolation by construction). No charge.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: FirmMemory.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FirmMemory'
        '400':
          description: INVALID_ID (not a UUID)
        '404':
          description: NOT_FOUND (does not exist or does not belong to your firm)
      operationId: getApiV1FirmMemoryById
      x-operation-id-source: derived
    patch:
      tags:
      - Firm Memory
      summary: Update firm memory entry (creator-only) · 0 credits
      description: 'Partial update: send only the fields to change. Creator-only (someone else''s or nonexistent → 404). Each change to content/scope archives a snapshot and bumps `version`. An empty string in jurisdiction/subject_matter/case_id clears that field. No charge.'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFirmMemoryRequest'
      responses:
        '200':
          description: FirmMemory updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FirmMemory'
        '400':
          description: INVALID_ID | validation (empty/overlong fields, invalid category, no fields to update)
        '403':
          description: case_id outside your firm
        '404':
          description: NOT_FOUND (you are not the creator or it does not exist) | case_id does not exist
      operationId: patchApiV1FirmMemoryById
      x-operation-id-source: derived
    delete:
      tags:
      - Firm Memory
      summary: Delete firm memory entry (creator-only, idempotent) · 0 credits
      description: 'Hard delete, creator-only. IDEMPOTENT: it returns 204 even if the id does not exist or you are not the creator (it does not reveal cross-firm existence). No charge.'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Deleted (or the id did not exist / you were not the creator — no body).
        '400':
          description: INVALID_ID (not a UUID)
      operationId: deleteApiV1FirmMemoryById
      x-operation-id-source: derived
  /api/v1/firm-memory/{id}/history:
    get:
      tags:
      - Firm Memory
      summary: Version history of a firm memory entry (creator-only) · 0 credits
      description: 'Snapshot chain (max. 20, most recent first). Creator-only: 404 if the live entry is not yours. No charge.'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: '{ snapshots: [FirmMemory] }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FirmMemoryHistory'
        '400':
          description: INVALID_ID (not a UUID)
        '404':
          description: NOT_FOUND (you are not the creator or it does not exist)
      operationId: getApiV1FirmMemoryByIdHistory
      x-operation-id-source: derived
components:
  schemas:
    FirmMemoryHistory:
      type: object
      properties:
        snapshots:
          type: array
          description: Chain of archived snapshots (max. 20), most recent first.
          items:
            $ref: '#/components/schemas/FirmMemory'
    UpdateFirmMemoryRequest:
      type: object
      description: 'PARTIAL update: send only the fields to change. An empty string in jurisdiction/subject_matter/case_id clears that field.'
      properties:
        title:
          type: string
          maxLength: 200
        content:
          type: string
          maxLength: 4000
        category:
          type: string
          enum:
          - clausula
          - tono
          - riesgo
          - formato
          - general
        active:
          type: boolean
        sort_order:
          type: integer
        jurisdiction:
          type: string
          description: New scope code, or an empty string to clear it.
        subject_matter:
          type: string
          description: New subject matter, or an empty string to clear it.
        case_id:
          type: string
          description: New case UUID (from your firm), or an empty string to unlink it.
    FirmMemory:
      type: object
      description: FIRM MEMORY entry (persistent playbook/tone/risk/format that grounds analyses and drafts). Reads are firm-scoped (every firm member); writes are creator-only (only the creator — `user_id` — can edit or delete). `jurisdiction`/`subject_matter`/`case_id` are OPTIONAL SCOPE fields of the record, NOT routing defaults. Every content/scope edit archives a snapshot and bumps `version`.
      properties:
        id:
          type: string
          format: uuid
        category:
          type: string
          enum:
          - clausula
          - tono
          - riesgo
          - formato
          - general
          description: Entry category (default general).
        title:
          type: string
          maxLength: 200
        content:
          type: string
          maxLength: 4000
        active:
          type: boolean
        sort_order:
          type: integer
          description: Display order (default 0).
        jurisdiction:
          type:
          - string
          - 'null'
          description: ISO code scoping the entry (ES, CO…). OPTIONAL; NEVER assumed by default.
        subject_matter:
          type:
          - string
          - 'null'
          description: Legal subject matter scope (e.g. laboral).
        case_id:
          type:
          - string
          - 'null'
          format: uuid
          description: Associated case (must belong to your firm).
        version:
          type: integer
          description: Current version (starts at 1; bumps on every content/scope edit).
        previous_version_id:
          type:
          - string
          - 'null'
          format: uuid
        user_id:
          type: string
          format: uuid
          description: Entry creator (creator-only for writes).
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    CreateFirmMemoryRequest:
      type: object
      required:
      - title
      - content
      properties:
        title:
          type: string
          maxLength: 200
        content:
          type: string
          maxLength: 4000
        category:
          type: string
          enum:
          - clausula
          - tono
          - riesgo
          - formato
          - general
          default: general
        sort_order:
          type: integer
          default: 0
        jurisdiction:
          type: string
          description: ISO scope code (OPTIONAL; NOT a routing default — assuming ES is forbidden).
        subject_matter:
          type: string
          description: Subject matter scope (OPTIONAL).
        case_id:
          type: string
          format: uuid
          description: Associated case (OPTIONAL; must be from your firm → otherwise 403; non-existent → 404).
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: nlk_...