nu:legal Resolve API

The Resolve API from nu:legal — 1 operation(s) for resolve.

GitHub OpenAPI

Operations 1

POST /v1/resolve Resolve #

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/nulegal-eu:nulegal-eu-resolve-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

nulegal-eu-resolve-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nulegal Eu Resolve API
  version: '1.0'
  contact:
    email: contact@nulegal.de
  license:
    name: CC BY 4.0 (curated layer)
    url: https://recht.nulegal.eu/license
  termsOfService: https://recht.nulegal.eu/nutzungsbedingungen#terms-en
  description: 'Operations tagged Resolve across 2 of this provider''s published API definitions: openapi.json, nulegal-eu-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Resolve
paths:
  /v1/resolve:
    post:
      summary: Resolve
      description: 'Resolve a batch of citations — norms AND decisions — or say honestly why not. added the decision half. Until it, an Aktenzeichen or an ECLI came back

        `unsupported`, so the Open Assistant''s citation gate could existence-check the

        statutes a model cited and nothing else: decisions were shown to the reader

        without a verified check mark even when the corpus held them. THE SHAPE IS ADDITIVE. Every key an existing consumer reads is unchanged and

        every norm citation resolves exactly as before (`test_resolve_cases_1001.py`

        pins both). New keys:


        citation_kind norm | ecli | docket | fundstelle — which sort of identifier we

        read the input as. Named `citation_kind` and not `kind` because

        a norm result''s `kind` is already the norm''s own ref kind

        (''para''/''art''); this is the same collision `law_status` was

        given a distinct name for in, resolved the same way. case the decision, on a resolved decision citation

        preview its Leitsatz or opening text

        candidates on `ambiguous` — every decision the citation can mean

        reason/note on a miss: the machine-readable class and the human sentence


        /1016/1029 add four more, all on a resolved NORM result, all additive:


        subdivisions the subdivision chain as written, values as lists — see

        `_resolved_norm`. `sub` is unchanged next to it. sub_text the FULL text of the cited Absätze, never truncated

        text_truncated whether `text` is the 300-character stub or the whole thing

        norms on an enumeration (''§§ 4, 7 KSchG''), every member, with

        `enumeration` naming the refs and any the corpus lacks


        …plus one request field, `include`: `text` swaps a norm''s stub for

        its full text, `leitsatz` swaps a decision''s 294-character preview for the

        whole Leitsatz. Both default OFF, so a caller that sends what it always sent

        receives what it always received. `reason` is the agent API''s ResolveResult enum verbatim

        (not_in_corpus / outside_coverage / unparseable / ambiguous), so the specced

        `/agent/v1/resolve` is a re-shape of this payload rather than a second opinion

        about the same corpus. **`status: "attested"`** is the fifth value and the newest. It means:

        the corpus does NOT hold this Aktenzeichen, and decisions the corpus DOES hold

        prove it exists anyway by citing it — "echt, Text nicht geführt". Before this

        key such a docket answered `not_in_corpus`, which an agent verifying a citation

        reads as "invented", and for the up to 204,384 dockets our own decisions cite

        twice or more that reading is wrong. ("Up to": that count is the nightly

        rollup''s, and the answer is decided on the live citers still addressable now,

        which is the smaller number.)


        It is a kind of MISS: there is no `case` and no `preview`, because no decision is

        being handed over, and `reason` stays `not_in_corpus`, because the corpus really

        was asked and really does not have it. A consumer branching only on `reason`

        therefore behaves exactly as it did. What rides along is the evidence:


        {"status": "attested",

        "citation_kind": "docket",

        "reason": "not_in_corpus",

        "citers": 7, # decisions of ours citing it, LIVE count

        "court_hint": "BGH", # INFERRED from how the citations name it

        "decided_hint": "1995-11-08", # INFERRED, may be null

        "attested_by": [{"court", "decided", "aktenzeichen", "url"}, …],

        "sources": [{"source", "url", "court", "decided", "matched_on",

        "full_text_available"}, …],

        "note": "Kein Volltext zum Aktenzeichen … im Bestand. Die Entscheidung

        ist durch 7 Entscheidungen des Bestands belegt, die sie zitieren."}


        `attested_by` is at most five citing decisions, each addressable, so the claim

        can be checked rather than believed; `citers` is the true total beside it. The

        hints are read off citation prose and are leads, not metadata — the same field

        with the same caveat `/v1/case`''s `known_missing` body carries, and the same

        record behind it. The threshold is two citers: one mention shares one text''s

        typos, two independent ones are evidence about the world.'
      operationId: resolve_v1_resolve_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Resolve
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ResolveRequest:
      properties:
        citations:
          items:
            type: string
            maxLength: 200
          type: array
          maxItems: 100
          title: Citations
        include:
          items:
            type: string
            enum:
            - text
            - leitsatz
          type: array
          maxItems: 4
          title: Include
        text:
          type: string
          maxLength: 20000
          title: Text
          description: 'Running text instead of `citations`: every norm citation, docket, EU case number and ECLI in it is found and resolved, one result each with its `span` [start, end]. `unparsed` lists the remaining stretches that still contain a digit. At most 100 citations are resolved; `truncated: true` says the text held more (and `unparsed` is then empty). Read only when `citations` is absent.'
      type: object
      required: []
      title: ResolveRequest
      description: 'Send `citations` (a list of citation strings) or `text` (running text). An entry of `citations` that holds several citations keeps its own result and lists the others under `extracted` (at most {resolve_text.MAX_FOUND} per request; `extracted_truncated: true` past that).'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-refined-from:
- openapi.json
- nulegal-eu-openapi.yml
x-provenance:
  method: harvested
  publisher: nu:legal
  source: https://gesetze.nulegal.eu/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)