{
  "openapi": "3.1.0",
  "info": {
    "title": "sanctionary API",
    "version": "1.0.0-draft",
    "summary": "Evidence about parties from public sanctions, PEP, debarment, insolvency, tax and company-register sources.",
    "description": "The one contract of `/v1` (SRV-4): REST and MCP alike, the MCP tools, the catalog's values and bounds, and the examples, are generated from this document (tools/gen/contract.py). Each `operationId` is its MCP tool's name, and a tool's arguments are the REST body or the path and query, field for field.\n\nDraft (`x-status`) until the freeze (P7 of the v1 plan), whose tag `v1.0` holds the released contract; from then it only grows. Every enumerated value may grow: a client reads an unknown one as inconclusive. Changing a value's meaning, a default or a topic's domain is a breaking change. Unknown request fields are refused.\n\nAn answer states evidence and its sources, never a verdict, and repeats nothing of the input but each party's `reference` (LEG-12). Capabilities marked `x-capability` are in the contract before they are built; the catalog lists each with `available`.",
    "x-status": "draft"
  },
  "servers": [
    {
      "url": "https://api.sanctionary.org"
    }
  ],
  "security": [
    {
      "key": []
    }
  ],
  "tags": [
    {
      "name": "screening"
    },
    {
      "name": "entities"
    },
    {
      "name": "discovery"
    },
    {
      "name": "account",
      "description": "REST only."
    }
  ],
  "paths": {
    "/v1/check": {
      "post": {
        "operationId": "check",
        "summary": "Check parties in named domains",
        "description": "1 to 100 parties, each one counterparty for one decision; the client names the domains; one independent section per domain. A screening negative is `inconclusive` after a retrieval cut or when an in-scope core list or a list named in `options.<domain>.datasets` is stale. A name negative is also inconclusive when a selected list has only unrequested opt-in topics or, for a person screen, the published edition has subjects in the requested topic scope excluded by the eligibility rules. Other stale lists are reported in `coverage.stale` and the section can still be `checked`. Company verification is the `companies` section, the payment-account check the `accounts` of `tax`. 1 credit per party with a usable answer, whatever its domains; 0 when no section was usable.",
        "tags": [
          "screening"
        ],
        "security": [
          {
            "key": [
              "screen"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckRequest"
              },
              "examples": {
                "a_supplier_setup": {
                  "summary": "Supplier setup: a register number, a name and four domains (map a; the site's supplier recipe)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "companies",
                      "sanctions",
                      "insolvency",
                      "tax"
                    ],
                    "parties": [
                      {
                        "reference": "sup-88",
                        "type": "organization",
                        "names": [
                          {
                            "value": "Quillmere Holdings Ltd"
                          }
                        ],
                        "countries": [
                          "gb"
                        ],
                        "identifiers": [
                          {
                            "scheme": "registration",
                            "country": "gb",
                            "value": "98000001"
                          }
                        ]
                      }
                    ]
                  }
                },
                "b_name_and_country_only": {
                  "summary": "A name and country only: `companies` needs an identifier (map b)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "companies"
                    ],
                    "parties": [
                      {
                        "reference": "buyer-3",
                        "type": "organization",
                        "names": [
                          {
                            "value": "Brivenka Timber SIA"
                          }
                        ],
                        "countries": [
                          "lv"
                        ]
                      }
                    ]
                  }
                },
                "c_number_names_another": {
                  "summary": "A real number under another company's name (map c)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "companies",
                      "insolvency"
                    ],
                    "parties": [
                      {
                        "reference": "sup-91",
                        "type": "organization",
                        "names": [
                          {
                            "value": "Norvane Logistics Ltd"
                          }
                        ],
                        "identifiers": [
                          {
                            "scheme": "gb",
                            "value": "98000002"
                          }
                        ]
                      }
                    ]
                  }
                },
                "d_not_in_live_file": {
                  "summary": "A number not in the live file (map d)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "companies"
                    ],
                    "parties": [
                      {
                        "reference": "sup-140",
                        "type": "organization",
                        "names": [
                          {
                            "value": "Kestrelby Print Ltd"
                          }
                        ],
                        "identifiers": [
                          {
                            "scheme": "gb",
                            "value": "98000003"
                          }
                        ]
                      }
                    ]
                  }
                },
                "e_ownership_evidence": {
                  "summary": "The ownership chain behind a derived listing (map e)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "sanctions"
                    ],
                    "parties": [
                      {
                        "reference": "cust-204",
                        "type": "organization",
                        "names": [
                          {
                            "value": "Harrowmere Freight Services Ltd"
                          }
                        ],
                        "identifiers": [
                          {
                            "scheme": "gb",
                            "value": "SC990001"
                          }
                        ]
                      }
                    ]
                  }
                },
                "f_person_former_pep": {
                  "summary": "A person, former PEPs opted in, two sanctions lists only (map f; the site's PEP recipe and guide)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "sanctions",
                      "peps"
                    ],
                    "options": {
                      "sanctions": {
                        "datasets": [
                          "fic_sanctions_one",
                          "fic_sanctions_two"
                        ]
                      },
                      "peps": {
                        "opt_in": [
                          "role.pep.former"
                        ]
                      }
                    },
                    "threshold": 0.7,
                    "limit": 5,
                    "parties": [
                      {
                        "reference": "cust-1001",
                        "type": "person",
                        "names": [
                          {
                            "value": "Arkady Velmorin"
                          }
                        ],
                        "birth_dates": [
                          "1961-03-02"
                        ],
                        "nationalities": [
                          "ru"
                        ],
                        "gender": "male"
                      }
                    ]
                  }
                },
                "g_rescreen_since": {
                  "summary": "A monthly re-screen of saved parties with `since` (map g; the site's re-screen recipe)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "sanctions"
                    ],
                    "since": "2026-11-02T10:15:02.418Z",
                    "parties": [
                      {
                        "reference": "sup-88",
                        "type": "organization",
                        "names": [
                          {
                            "value": "Quillmere Holdings Ltd"
                          }
                        ],
                        "identifiers": [
                          {
                            "scheme": "gb",
                            "value": "98000001"
                          }
                        ]
                      }
                    ]
                  }
                },
                "h_payment_two_accounts": {
                  "summary": "A payment with two accounts (map h)",
                  "x-case": "payment.two-accounts.001",
                  "value": {
                    "domains": [
                      "tax",
                      "sanctions"
                    ],
                    "parties": [
                      {
                        "reference": "pay-1",
                        "type": "organization",
                        "names": [
                          {
                            "value": "Ledrava Opakowania Sp. z o.o."
                          }
                        ],
                        "countries": [
                          "pl"
                        ],
                        "accounts": [
                          {
                            "identifier": {
                              "scheme": "tax",
                              "country": "pl",
                              "value": "9991816189"
                            },
                            "value": "PL93999308914305275205952050",
                            "date": "2025-10-01"
                          },
                          {
                            "identifier": {
                              "scheme": "tax",
                              "country": "pl",
                              "value": "9991816189"
                            },
                            "value": "PL04999794123660153006770536",
                            "date": "2025-10-01"
                          }
                        ]
                      }
                    ]
                  }
                },
                "i_vessel_and_security": {
                  "summary": "An IMO and an opted-in ISIN identify qualifying holders without names (map i)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "sanctions"
                    ],
                    "options": {
                      "sanctions": {
                        "opt_in": [
                          "sanction.security"
                        ]
                      }
                    },
                    "parties": [
                      {
                        "reference": "ship-1",
                        "type": "vessel",
                        "identifiers": [
                          {
                            "scheme": "imo",
                            "value": "1974636"
                          }
                        ],
                        "flags": [
                          "pa"
                        ]
                      },
                      {
                        "reference": "bond-1",
                        "type": "security",
                        "identifiers": [
                          {
                            "scheme": "isin",
                            "value": "XS0000000017"
                          }
                        ]
                      }
                    ]
                  }
                },
                "site_wallet": {
                  "summary": "A network-scoped wallet address can identify a qualifying holder without a name",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "sanctions",
                      "crime"
                    ],
                    "parties": [
                      {
                        "reference": "wallet-1",
                        "type": "crypto_wallet",
                        "identifiers": [
                          {
                            "scheme": "wallet",
                            "network": "ethereum",
                            "value": "0x5a1e5000000000000000000000000000000000a1"
                          }
                        ]
                      }
                    ]
                  }
                },
                "site_business_customer": {
                  "summary": "A business customer at onboarding: the `business_customer` recipe (the site's onboarding recipe)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "companies",
                      "sanctions"
                    ],
                    "parties": [
                      {
                        "reference": "cust-7",
                        "type": "organization",
                        "names": [
                          {
                            "value": "Ostravel Machinery s.r.o."
                          }
                        ],
                        "countries": [
                          "cz"
                        ],
                        "identifiers": [
                          {
                            "scheme": "cz",
                            "value": "99000016"
                          }
                        ]
                      }
                    ]
                  }
                },
                "site_person_onboarding": {
                  "summary": "A person at onboarding: the `person` recipe (the site's onboarding recipe and landing page)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "sanctions",
                      "peps"
                    ],
                    "parties": [
                      {
                        "reference": "cust-8",
                        "type": "person",
                        "names": [
                          {
                            "value": "Maren Tolvisk"
                          }
                        ],
                        "birth_dates": [
                          "1984"
                        ],
                        "countries": [
                          "no"
                        ]
                      }
                    ]
                  }
                },
                "m_error": {
                  "summary": "An invalid request: no domains, a malformed number (map m)",
                  "x-case": null,
                  "x-valid": false,
                  "value": {
                    "parties": [
                      {
                        "type": "organization",
                        "names": [
                          {
                            "value": "Quillmere Holdings Ltd"
                          }
                        ],
                        "identifiers": [
                          {
                            "scheme": "gb",
                            "value": "9800001"
                          }
                        ]
                      }
                    ]
                  }
                },
                "h2_sole_trader_account": {
                  "summary": "A sole trader's account pair only: the account check runs for a person, its name is not screened in `tax`; 1 credit when the pair is listed or not listed (map h)",
                  "x-case": null,
                  "value": {
                    "domains": [
                      "tax"
                    ],
                    "parties": [
                      {
                        "reference": "inv-5513",
                        "type": "person",
                        "accounts": [
                          {
                            "identifier": {
                              "scheme": "tax",
                              "country": "pl",
                              "value": "9990000014"
                            },
                            "value": "PL37109000040000000000000001"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: one section per asked domain per party.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckAnswer"
                },
                "examples": {
                  "a_supplier_setup": {
                    "summary": "Supplier setup: a register number, a name and four domains (map a; the site's supplier recipe)",
                    "x-case": null
                  },
                  "b_name_and_country_only": {
                    "summary": "A name and country only: `companies` needs an identifier (map b)",
                    "x-case": null
                  },
                  "c_number_names_another": {
                    "summary": "A real number under another company's name (map c)",
                    "x-case": null
                  },
                  "d_not_in_live_file": {
                    "summary": "A number not in the live file (map d)",
                    "x-case": null
                  },
                  "e_ownership_evidence": {
                    "summary": "The ownership chain behind a derived listing (map e)",
                    "x-case": null
                  },
                  "f_person_former_pep": {
                    "summary": "A person, former PEPs opted in, two lists only (map f; the site's PEP recipe and guide)",
                    "x-case": null
                  },
                  "g_rescreen_since": {
                    "summary": "A monthly re-screen of saved parties with `since` (map g; the site's re-screen recipe)",
                    "x-case": null
                  },
                  "h_payment_two_accounts": {
                    "summary": "A payment with two accounts (map h)",
                    "x-case": "payment.two-accounts.001"
                  },
                  "i_vessel_and_security": {
                    "summary": "An IMO and an opted-in ISIN identify qualifying holders without names (map i)",
                    "x-case": null
                  },
                  "site_wallet": {
                    "summary": "A network-scoped wallet address can identify a qualifying holder without a name",
                    "x-case": null
                  },
                  "site_business_customer": {
                    "summary": "A business customer at onboarding: the `business_customer` recipe (the site's onboarding recipe)",
                    "x-case": null
                  },
                  "site_person_onboarding": {
                    "summary": "A person at onboarding: the `person` recipe (the site's onboarding recipe and landing page)",
                    "x-case": null
                  },
                  "h2_sole_trader_account": {
                    "summary": "A sole trader's account pair only: the account check runs for a person, its name is not screened in `tax`; 1 credit when the pair is listed or not listed (map h)",
                    "x-case": null
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "402": {
            "$ref": "#/components/responses/Refusal"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "413": {
            "$ref": "#/components/responses/Refusal"
          },
          "415": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(coverage|limit|since|threshold|domains(/[0-9]+)?|options(/(companies|crime|debarment|export_control|insolvency|peps|regulatory|sanctions|tax)(/(datasets|issuer_countries|opt_in|topics)(/[0-9]+)?)?)?|parties(/[0-9]+(/(accounts(/[0-9]+(/(date|value|identifier(/(country|key|network|register|scheme|value|datasets(/[0-9]+)?))?))?)?|(birth_countries|birth_dates|countries|flags|incorporation_dates|nationalities)(/[0-9]+)?|gender|manufacturer|model|reference|type|identifiers(/[0-9]+(/(country|key|network|register|scheme|value|datasets(/[0-9]+)?))?)?|names(/[0-9]+(/value)?)?))?)?))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "m_error": {
                    "summary": "The refusal of example m: `invalid_request`, located, nothing echoed",
                    "x-case": null,
                    "value": {
                      "type": "https://api.sanctionary.org/problems/invalid_request",
                      "title": "Invalid request",
                      "status": 422,
                      "code": "invalid_request",
                      "request_id": "0193f1c2-7a4e-7c1b-9e55-2f0d6a1b9c3e",
                      "charged": 0,
                      "errors": [
                        {
                          "pointer": "/domains",
                          "code": "required"
                        },
                        {
                          "pointer": "/parties/0/identifiers/0/value",
                          "code": "invalid_identifier"
                        }
                      ]
                    }
                  },
                  "answer_too_large": {
                    "summary": "100 parties in nine domains at limit 50: refused whole before work",
                    "x-case": null
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          }
        },
        "x-problems": {
          "400": [
            "malformed_json"
          ],
          "401": [
            "unauthenticated"
          ],
          "402": [
            "credits_exhausted"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "413": [
            "payload_too_large"
          ],
          "415": [
            "unsupported_media_type"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy"
          ]
        }
      }
    },
    "/v1/search": {
      "post": {
        "operationId": "search",
        "summary": "Search one domain by text",
        "description": "Ranked text search in one domain, at most `search_results` results over all pages. One credit per delivered page with records or a completed negative screening search. `companies` needs 1 to 5 countries and the `company_search` capability.",
        "tags": [
          "screening"
        ],
        "security": [
          {
            "key": [
              "screen"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              },
              "examples": {
                "b_search_companies": {
                  "summary": "A company by name and country, then checked by its number (map b)",
                  "x-case": null,
                  "value": {
                    "domain": "companies",
                    "text": "brivenka timber",
                    "options": {
                      "countries": [
                        "lv"
                      ]
                    },
                    "limit": 5
                  }
                },
                "search_sanctions": {
                  "summary": "A name in the sanctions domain",
                  "x-case": null,
                  "value": {
                    "domain": "sanctions",
                    "text": "velmorin",
                    "limit": 10
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ranked hits.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchAnswer"
                },
                "examples": {
                  "b_search_companies": {
                    "summary": "A company by name and country, then checked by its number (map b)",
                    "x-case": null
                  },
                  "search_sanctions": {
                    "summary": "A name in the sanctions domain",
                    "x-case": null
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "402": {
            "$ref": "#/components/responses/Refusal"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "409": {
            "$ref": "#/components/responses/Refusal"
          },
          "413": {
            "$ref": "#/components/responses/Refusal"
          },
          "415": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(coverage|cursor|domain|limit|text|options(/(countries|datasets|schemas|topics)(/[0-9]+)?)?))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "501": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          }
        },
        "x-problems": {
          "400": [
            "malformed_json",
            "invalid_cursor"
          ],
          "401": [
            "unauthenticated"
          ],
          "402": [
            "credits_exhausted"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "409": [
            "release_changed"
          ],
          "413": [
            "payload_too_large"
          ],
          "415": [
            "unsupported_media_type"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "501": [
            "not_available"
          ],
          "503": [
            "busy"
          ]
        }
      }
    },
    "/v1/entities/{id}": {
      "get": {
        "operationId": "entities",
        "summary": "One entity by its ID",
        "description": "One entity, by its entity ID only. A redirected ID answers the entity it redirects to, with `resolution`. One credit when the answer delivers records.",
        "tags": [
          "entities"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/EntityId"
          },
          {
            "$ref": "#/components/parameters/Version"
          }
        ],
        "responses": {
          "200": {
            "description": "The entity.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityAnswer"
                },
                "examples": {
                  "j_entity": {
                    "summary": "A company entity and its standing (map j)",
                    "x-case": null,
                    "x-arguments": {
                      "id": "e-1q7k2m9x4w1b3"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "402": {
            "$ref": "#/components/responses/Refusal"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "404": {
            "$ref": "#/components/responses/Refusal"
          },
          "409": {
            "$ref": "#/components/responses/Refusal"
          },
          "410": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(id|version))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalBusyOrNoRelease"
          }
        },
        "x-problems": {
          "401": [
            "unauthenticated"
          ],
          "402": [
            "credits_exhausted"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "version_changed"
          ],
          "410": [
            "entity_removed"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy",
            "no_release"
          ]
        }
      }
    },
    "/v1/entities/{id}/statements": {
      "get": {
        "operationId": "entities_statements",
        "summary": "The statements behind an entity",
        "description": "The publisher statements behind the entity, each with its dataset and record. One credit when the answer delivers records.",
        "tags": [
          "entities"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/EntityId"
          },
          {
            "name": "prop",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            },
            "description": "Only this property."
          },
          {
            "$ref": "#/components/parameters/PageLimit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "$ref": "#/components/parameters/Version"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of statements.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatementsAnswer"
                },
                "examples": {
                  "j_statements": {
                    "summary": "Where an address comes from (map j; the site's audit recipe)",
                    "x-case": null,
                    "x-arguments": {
                      "id": "e-1q7k2m9x4w1b3",
                      "prop": "address"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "402": {
            "$ref": "#/components/responses/Refusal"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "404": {
            "$ref": "#/components/responses/Refusal"
          },
          "409": {
            "$ref": "#/components/responses/Refusal"
          },
          "410": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(cursor|id|limit|prop|version))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalBusyOrNoRelease"
          }
        },
        "x-problems": {
          "400": [
            "invalid_cursor"
          ],
          "401": [
            "unauthenticated"
          ],
          "402": [
            "credits_exhausted"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "version_changed",
            "release_changed"
          ],
          "410": [
            "entity_removed"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy",
            "no_release"
          ]
        }
      }
    },
    "/v1/entities/{id}/relationships": {
      "get": {
        "operationId": "entities_relationships",
        "summary": "An entity's direct links",
        "description": "Its direct links in both directions, grouped by counterpart and kind. Each link lists every visible publisher record with its own dates. One credit when the answer delivers records.",
        "tags": [
          "entities"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/EntityId"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/EdgeType"
            }
          },
          {
            "$ref": "#/components/parameters/PageLimit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "$ref": "#/components/parameters/Version"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of links.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelationshipsAnswer"
                },
                "examples": {
                  "j_relationships": {
                    "summary": "A company's owner (map j)",
                    "x-case": null,
                    "x-arguments": {
                      "id": "e-1q7k2m9x4w1b3"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "402": {
            "$ref": "#/components/responses/Refusal"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "404": {
            "$ref": "#/components/responses/Refusal"
          },
          "409": {
            "$ref": "#/components/responses/Refusal"
          },
          "410": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(cursor|id|limit|type|version))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalBusyOrNoRelease"
          }
        },
        "x-problems": {
          "400": [
            "invalid_cursor"
          ],
          "401": [
            "unauthenticated"
          ],
          "402": [
            "credits_exhausted"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "version_changed",
            "release_changed"
          ],
          "410": [
            "entity_removed"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy",
            "no_release"
          ]
        }
      }
    },
    "/v1/entities/{id}/history": {
      "get": {
        "operationId": "entities_history",
        "summary": "An entity's versions since a time",
        "description": "Its versions since a time, newest first, in serving order. A register company's history gives changed field names only. One credit when the answer delivers records.",
        "tags": [
          "entities"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "x-capability": "history",
        "parameters": [
          {
            "$ref": "#/components/parameters/EntityId"
          },
          {
            "name": "since",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Time"
            }
          },
          {
            "$ref": "#/components/parameters/PageLimit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of versions.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryAnswer"
                },
                "examples": {
                  "j_history": {
                    "summary": "A company's changes since June (map j)",
                    "x-case": null,
                    "x-arguments": {
                      "id": "e-1q7k2m9x4w1b3",
                      "since": "2026-06-01T00:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "402": {
            "$ref": "#/components/responses/Refusal"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "404": {
            "$ref": "#/components/responses/Refusal"
          },
          "409": {
            "$ref": "#/components/responses/Refusal"
          },
          "410": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(cursor|id|limit|since))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "501": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalBusyOrNoRelease"
          }
        },
        "x-problems": {
          "400": [
            "invalid_cursor"
          ],
          "401": [
            "unauthenticated"
          ],
          "402": [
            "credits_exhausted"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "release_changed"
          ],
          "410": [
            "entity_removed"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "501": [
            "not_available"
          ],
          "503": [
            "busy",
            "no_release"
          ]
        }
      }
    },
    "/v1/entities/{id}/ownership": {
      "get": {
        "operationId": "entities_ownership",
        "summary": "The bounded ownership graph",
        "description": "Ownership up or down, depth 1 to 6, at most `ownership_nodes` nodes, edges and time bounded; `truncated` when a bound stopped it. One credit when the answer delivers records.",
        "tags": [
          "entities"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "x-capability": "ownership",
        "parameters": [
          {
            "$ref": "#/components/parameters/EntityId"
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "up",
                "down"
              ],
              "default": "up",
              "x-catalog": "ownership.direction"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 6,
              "default": 3,
              "x-bound": "ownership_depth"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The walk.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnershipAnswer"
                },
                "examples": {
                  "e_ownership": {
                    "summary": "The chain behind example e, upwards (map e)",
                    "x-case": null,
                    "x-arguments": {
                      "id": "e-7h2n7k4v8s3m1",
                      "direction": "up",
                      "depth": 6
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "402": {
            "$ref": "#/components/responses/Refusal"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "404": {
            "$ref": "#/components/responses/Refusal"
          },
          "410": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(depth|direction|id))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "501": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalBusyOrNoRelease"
          }
        },
        "x-problems": {
          "401": [
            "unauthenticated"
          ],
          "402": [
            "credits_exhausted"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "404": [
            "not_found"
          ],
          "410": [
            "entity_removed"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "501": [
            "not_available"
          ],
          "503": [
            "busy",
            "no_release"
          ]
        }
      }
    },
    "/v1/entities/resolve": {
      "post": {
        "operationId": "entities_resolve",
        "summary": "What saved IDs, references and numbers are now",
        "description": "Up to 1,000 of the client's entity IDs, member references or numbers: what each ID is now and, with `since`, how each changed. Numbers get change states only. One credit when any item delivers a resolution or conclusive change.",
        "tags": [
          "entities"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveRequest"
              },
              "examples": {
                "g_portfolio_resolve": {
                  "summary": "A monthly review: saved numbers and IDs, with `since` (map g)",
                  "x-case": null,
                  "value": {
                    "since": "2026-11-02T10:15:02.418Z",
                    "domains": [
                      "companies",
                      "insolvency",
                      "tax"
                    ],
                    "items": [
                      {
                        "identifier": {
                          "scheme": "gb",
                          "value": "98000001"
                        }
                      },
                      {
                        "identifier": {
                          "scheme": "cz",
                          "value": "99000016"
                        }
                      },
                      {
                        "id": "e-3z8p1c6n2d4fa"
                      }
                    ]
                  }
                },
                "k_saved_ids": {
                  "summary": "What became of saved IDs and a member reference (map k; the site's audit recipe)",
                  "x-case": null,
                  "value": {
                    "items": [
                      {
                        "id": "e-3z8p1c6n2d4fa"
                      },
                      {
                        "id": "e-7h2n7k4v8s3m1"
                      },
                      {
                        "ref": "r-0a1b2c3d4e5f6"
                      },
                      {
                        "id": "e-9z8y7x6w5v4t3"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One item per input, in order.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolveAnswer"
                },
                "examples": {
                  "g_portfolio_resolve": {
                    "summary": "A monthly review: saved numbers and IDs, with `since` (map g)",
                    "x-case": null
                  },
                  "k_saved_ids": {
                    "summary": "What became of saved IDs and a member reference (map k; the site's audit recipe)",
                    "x-case": null
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "402": {
            "$ref": "#/components/responses/Refusal"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "413": {
            "$ref": "#/components/responses/Refusal"
          },
          "415": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(domains(/[0-9]+)?|items(/[0-9]+(/(id|ref|identifier(/(country|key|network|register|scheme|value|datasets(/[0-9]+)?))?))?)?|since))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalBusyOrNoRelease"
          }
        },
        "x-problems": {
          "400": [
            "malformed_json"
          ],
          "401": [
            "unauthenticated"
          ],
          "402": [
            "credits_exhausted"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "413": [
            "payload_too_large"
          ],
          "415": [
            "unsupported_media_type"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy",
            "no_release"
          ]
        }
      }
    },
    "/v1/catalog": {
      "get": {
        "operationId": "catalog",
        "summary": "Domains, topics, recipes, values, codes, bounds",
        "description": "Everything a client or agent needs to form a request: domains and their topics, recipes, identifier schemes, every enumerated value, problem codes, bounds, capabilities and history reach. Free.",
        "tags": [
          "discovery"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The catalog.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Catalog"
                },
                "examples": {
                  "l_catalog": {
                    "summary": "The catalog (map l; the agents page)",
                    "x-case": null,
                    "x-arguments": {}
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          }
        },
        "x-problems": {
          "401": [
            "unauthenticated"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy"
          ]
        }
      }
    },
    "/v1/datasets": {
      "get": {
        "operationId": "datasets",
        "summary": "Coverage per dataset",
        "description": "Each dataset's domains, tier, jurisdiction, freshness against its cadence, population where available for the caller's tier, and what it lacks. Compliance datasets are listed with public metadata for Standard callers. Only Compliance callers see their publication observations and population. This directory page is free.",
        "tags": [
          "discovery"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Domain"
            }
          },
          {
            "name": "countries",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InputCountry"
              },
              "minItems": 1,
              "maxItems": 20
            }
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "name": "dataset",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetName"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 1000,
              "x-bound": "page_limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of datasets.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetsAnswer"
                },
                "examples": {
                  "l_datasets": {
                    "summary": "The registers held for two countries (map l)",
                    "x-case": null,
                    "x-arguments": {
                      "domain": "companies",
                      "countries": [
                        "gb",
                        "lv"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "409": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(countries(/[0-9]+)?|cursor|dataset|domain|limit))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "404": {
            "description": "Unknown dataset for this caller.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "x-problems": {
          "400": [
            "invalid_cursor"
          ],
          "401": [
            "unauthenticated"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "409": [
            "release_changed"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy"
          ],
          "404": [
            "not_found"
          ]
        }
      }
    },
    "/v1/sources": {
      "get": {
        "operationId": "sources",
        "summary": "Publishers, licences, attribution",
        "description": "Each dataset's publisher, licence and attribution. This directory page is free.",
        "tags": [
          "discovery"
        ],
        "security": [
          {
            "key": [
              "read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "dataset",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DatasetName"
            }
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of sources.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcesAnswer"
                },
                "examples": {
                  "l_sources": {
                    "summary": "One dataset's publisher and licence (map l)",
                    "x-case": null,
                    "x-arguments": {
                      "dataset": "fic_companies"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "409": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(cursor|dataset))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "404": {
            "description": "Unknown dataset for this caller.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "x-problems": {
          "400": [
            "invalid_cursor"
          ],
          "401": [
            "unauthenticated"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "409": [
            "release_changed"
          ],
          "422": [
            "invalid_request",
            "answer_too_large"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy"
          ],
          "404": [
            "not_found"
          ]
        }
      }
    },
    "/v1/account": {
      "get": {
        "operationId": "account",
        "summary": "The calling account",
        "x-mcp": false,
        "description": "Plan, tier, credits, limits and the calling key. Any key of the account.",
        "tags": [
          "account"
        ],
        "security": [
          {
            "key": []
          }
        ],
        "responses": {
          "200": {
            "description": "The account.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountAnswer"
                },
                "examples": {
                  "account": {
                    "summary": "The calling account",
                    "x-case": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          }
        },
        "x-problems": {
          "401": [
            "unauthenticated"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "422": [
            "invalid_request"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy"
          ]
        }
      }
    },
    "/v1/keys": {
      "get": {
        "operationId": "keys",
        "summary": "The account's keys",
        "x-mcp": false,
        "description": "Every key of the account. Keys are created only in the dashboard.",
        "tags": [
          "account"
        ],
        "security": [
          {
            "key": [
              "account"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of keys.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeysAnswer"
                },
                "examples": {
                  "keys": {
                    "summary": "The account's keys",
                    "x-case": null
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/cursor)?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          }
        },
        "x-problems": {
          "400": [
            "invalid_cursor"
          ],
          "401": [
            "unauthenticated"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "422": [
            "invalid_request"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy"
          ]
        }
      }
    },
    "/v1/keys/{key_id}": {
      "delete": {
        "operationId": "keys_revoke",
        "summary": "Revoke one key",
        "x-mcp": false,
        "description": "Revokes the key; repeated, it answers the same.",
        "tags": [
          "account"
        ],
        "security": [
          {
            "key": [
              "account"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/KeyIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "The revoked key.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyAnswer"
                },
                "examples": {
                  "keys_revoke": {
                    "summary": "A key revoked",
                    "x-case": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "404": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/key_id)?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          }
        },
        "x-problems": {
          "401": [
            "unauthenticated"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "404": [
            "not_found"
          ],
          "422": [
            "invalid_request"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy"
          ]
        }
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "usage",
        "summary": "Use per day, key and kind",
        "x-mcp": false,
        "description": "Requests and credits per day, key and kind; `to` exclusive. An unknown key ID or a key from another account returns 404.",
        "tags": [
          "account"
        ],
        "security": [
          {
            "key": [
              "account"
            ]
          }
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Date"
            },
            "description": "Exclusive end date. It must be later than from."
          },
          {
            "$ref": "#/components/parameters/KeyId"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of usage.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageAnswer"
                },
                "examples": {
                  "usage": {
                    "summary": "Two weeks of one key's use",
                    "x-case": null
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Refusal"
          },
          "401": {
            "$ref": "#/components/responses/RefusalAuth"
          },
          "403": {
            "$ref": "#/components/responses/Refusal"
          },
          "422": {
            "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status; an error's pointer is of this operation's request.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Releases": {
                "$ref": "#/components/headers/X-Sanctionary-Releases"
              },
              "X-Sanctionary-Matcher": {
                "$ref": "#/components/headers/X-Sanctionary-Matcher"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "properties": {
                        "errors": {
                          "items": {
                            "properties": {
                              "pointer": {
                                "pattern": "^(/(cursor|from|key_id|to))?$"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "500": {
            "$ref": "#/components/responses/Refusal"
          },
          "503": {
            "$ref": "#/components/responses/RefusalRetry"
          },
          "404": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "x-problems": {
          "400": [
            "invalid_cursor"
          ],
          "401": [
            "unauthenticated"
          ],
          "403": [
            "forbidden_scope",
            "account_suspended"
          ],
          "422": [
            "invalid_request"
          ],
          "429": [
            "rate_limited"
          ],
          "500": [
            "internal"
          ],
          "503": [
            "busy"
          ],
          "404": [
            "not_found"
          ]
        }
      }
    },
    "/v1/openapi.json": {
      "get": {
        "operationId": "openapi",
        "summary": "Read the public v1 contract",
        "security": [],
        "x-mcp": false,
        "x-problems": {},
        "responses": {
          "200": {
            "description": "Read the public v1 contract.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "discovery"
        ]
      }
    },
    "/v1/guide": {
      "get": {
        "operationId": "guide",
        "summary": "Read the public v1 guide",
        "security": [],
        "x-mcp": false,
        "x-problems": {},
        "responses": {
          "200": {
            "description": "Read the public v1 guide.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Sanctionary-Build": {
                "$ref": "#/components/headers/X-Sanctionary-Build"
              },
              "X-Sanctionary-Response-SHA256": {
                "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              }
            },
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "discovery"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Domain": {
        "type": "string",
        "description": "The scope of merging, matching and entity IDs. Every topic belongs to exactly one domain and never moves within v1; the catalog lists each domain's topics.",
        "enum": [
          "sanctions",
          "export_control",
          "debarment",
          "peps",
          "crime",
          "insolvency",
          "tax",
          "companies",
          "regulatory"
        ],
        "x-catalog": "domains"
      },
      "PartyType": {
        "type": "string",
        "description": "What the party is. Nothing depends on `unknown`: what runs depends on what the party carries (names screen, identifiers look up, accounts check).",
        "enum": [
          "person",
          "organization",
          "vessel",
          "aircraft",
          "crypto_wallet",
          "security",
          "unknown"
        ],
        "x-catalog": "party.type"
      },
      "Tier": {
        "type": "string",
        "description": "The data tier the account is served from; it fixes what may be shown.",
        "enum": [
          "standard",
          "compliance"
        ],
        "x-catalog": "tier"
      },
      "Scope": {
        "type": "string",
        "description": "What a key may do: `screen` (check, search), `read` (entity reads, resolve, catalog, datasets, sources), `account` (keys, usage); any key reads its own account. `registers`: register data (x-scopes, every operation that can return it).",
        "enum": [
          "screen",
          "read",
          "account",
          "registers"
        ],
        "x-catalog": "key.scope"
      },
      "Country": {
        "type": "string",
        "description": "A lowercase ISO 3166-1 alpha-2 code.",
        "pattern": "^[a-z]{2}$"
      },
      "PartialDate": {
        "type": "string",
        "description": "A date as precise as known: YYYY, YYYY-MM or YYYY-MM-DD. Input dates must be calendar-valid.",
        "pattern": "^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$",
        "format": "partial-date"
      },
      "Date": {
        "type": "string",
        "format": "date"
      },
      "Time": {
        "type": "string",
        "description": "An RFC 3339 time in UTC, millisecond precision where it is an instant we stamped.",
        "format": "date-time"
      },
      "Duration": {
        "type": "string",
        "description": "An ISO 8601 duration (P32D, P1M).",
        "pattern": "^P(?!$)([0-9]+Y)?([0-9]+M)?([0-9]+W)?([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+S)?)?$"
      },
      "Topic": {
        "type": "string",
        "description": "A topic code; the catalog lists each with its domain and whether it is opt-in.",
        "pattern": "^[a-z_]+(\\.[a-z_]+)*$",
        "maxLength": 64
      },
      "DatasetName": {
        "type": "string",
        "description": "A dataset's name.",
        "pattern": "^[a-z0-9_]+$",
        "maxLength": 64
      },
      "Attribution": {
        "type": "string",
        "minLength": 1,
        "description": "The publisher's credit for this dataset, copied verbatim from its source record. Inline credits and the `sources` directory give the same text."
      },
      "Sha256": {
        "type": "string",
        "description": "A SHA-256 digest, hex.",
        "pattern": "^[0-9a-f]{64}$"
      },
      "Version": {
        "type": "string",
        "description": "An entity's version: the digest of what this tier serves of it.",
        "pattern": "^sha256:[0-9a-f]{64}$"
      },
      "EntityId": {
        "type": "string",
        "description": "An entity's own ID (CMP-14): `e-` and 13 characters of Crockford's base32 in lower case, the big-endian encoding of a keyed 64-bit permutation of its mint (domain, birth release, rank), so the first character is 0 to f. Opaque: it reveals no domain, order, count or member, and is never reused.",
        "pattern": "^e-[0-9a-f][0-9a-hjkmnp-tv-z]{12}$"
      },
      "MemberRef": {
        "type": "string",
        "description": "A member record's reference: `r-` and 13 characters, the same codec as an entity ID over a keyed 64-bit image of the record's dataset and publisher record ID. The same pair keeps the same reference across releases and changes of entity membership. A client can save it and pass it unchanged to `entities_resolve` for continuity. It carries no publisher key, so a number cannot be turned into a reference without a paid `check`.",
        "pattern": "^r-[0-9a-f][0-9a-hjkmnp-tv-z]{12}$"
      },
      "ReleaseId": {
        "type": "string",
        "description": "A domain release's ID: the domain and its release number.",
        "pattern": "^[a-z_]+-[0-9]{4,}$"
      },
      "Cursor": {
        "type": "string",
        "description": "An opaque cursor, bound to the account, the tier, the query's keyed digest and the releases it read; it holds no query value.",
        "pattern": "^c-[A-Za-z0-9_-]{16,1000}$"
      },
      "Reference": {
        "type": "string",
        "description": "The client's own reference for a party: the only input value an answer repeats (LEG-12).",
        "minLength": 1,
        "maxLength": 100,
        "x-bound": "reference_length"
      },
      "InputName": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "x-bound": "name_length",
            "pattern": "\\S"
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      },
      "InputIdentifier": {
        "type": "object",
        "description": "A number in a named scheme. An identifier from any answer is valid input as it stands. The server ignores key and datasets. The catalog lists each scheme's required fields. A finding refers to the input number by index.",
        "properties": {
          "scheme": {
            "$ref": "#/components/schemas/IdentifierScheme"
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "country": {
            "$ref": "#/components/schemas/InputCountry",
            "description": "Optional issuing country. Supply it when known so the matcher can distinguish issuers."
          },
          "register": {
            "type": "string",
            "description": "The issuing register, where a country has several.",
            "maxLength": 100
          },
          "network": {
            "type": "string",
            "description": "Required for wallet and crypto_wallet. Within an EVM network, an address is 0x plus 40 hex digits and compares in lowercase. Base58 and bech32 values compare case-exactly within their network.",
            "pattern": "^[a-z0-9_-]+$",
            "maxLength": 32
          },
          "key": {
            "type": "string",
            "description": "Accepted so that an identifier from an answer is valid input as it stands; ignored and recomputed.",
            "maxLength": 400
          },
          "datasets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetName"
            },
            "maxItems": 200,
            "x-bound": "datasets_per_identifier",
            "description": "Accepted as `key` is; ignored."
          }
        },
        "required": [
          "scheme",
          "value"
        ],
        "unevaluatedProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "scheme": {
                  "enum": [
                    "crypto_wallet",
                    "wallet"
                  ]
                }
              },
              "required": [
                "scheme"
              ]
            },
            "then": {
              "required": [
                "network"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "scheme": {
                  "enum": [
                    "crypto_wallet",
                    "wallet"
                  ]
                },
                "network": {
                  "$ref": "#/components/schemas/EvmNetwork"
                }
              },
              "required": [
                "scheme",
                "network"
              ]
            },
            "then": {
              "properties": {
                "value": {
                  "pattern": "^0[xX][0-9a-fA-F]{40}$",
                  "x-pattern-error": "invalid_identifier"
                }
              }
            }
          }
        ]
      },
      "InputAccount": {
        "type": "object",
        "description": "A payment account with its payer's tax identifier inside: read only by the account check, never screened (LEG-21). Without `date`: Poland's newest edition within its window, Czechia's latest observation of the payer, as today.",
        "properties": {
          "identifier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputIdentifier"
              },
              {
                "properties": {
                  "scheme": {
                    "const": "tax"
                  }
                }
              }
            ],
            "description": "The payer's tax identifier, scheme `tax`. Supply its country when known."
          },
          "value": {
            "type": "string",
            "description": "The account number (an IBAN where the country uses one).",
            "minLength": 1,
            "maxLength": 64
          },
          "date": {
            "$ref": "#/components/schemas/Date"
          }
        },
        "required": [
          "identifier",
          "value"
        ],
        "additionalProperties": false
      },
      "Party": {
        "type": "object",
        "description": "Supply a name, identifier or account with its payer identifier. Manufacturer and model scope aircraft serials. Fields inappropriate for a known party type return field_not_allowed.",
        "properties": {
          "reference": {
            "$ref": "#/components/schemas/Reference"
          },
          "type": {
            "$ref": "#/components/schemas/PartyType"
          },
          "names": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputName"
            },
            "maxItems": 20,
            "x-bound": "names_per_party"
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputCountry"
            },
            "maxItems": 20,
            "x-bound": "values_per_field"
          },
          "identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputIdentifier"
            },
            "maxItems": 20,
            "x-bound": "identifiers_per_party"
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputAccount"
            },
            "maxItems": 5,
            "x-bound": "accounts_per_party"
          },
          "birth_dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BirthDate"
            },
            "maxItems": 20,
            "description": "A person's.",
            "x-bound": "values_per_field"
          },
          "birth_countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputCountry"
            },
            "maxItems": 20,
            "description": "A person's.",
            "x-bound": "values_per_field"
          },
          "nationalities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputCountry"
            },
            "maxItems": 20,
            "description": "A person's.",
            "x-bound": "values_per_field"
          },
          "gender": {
            "type": "string",
            "enum": [
              "male",
              "female",
              "other"
            ],
            "x-catalog": "party.gender",
            "description": "A person's."
          },
          "incorporation_dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartialDate"
            },
            "maxItems": 20,
            "description": "An organisation's.",
            "x-bound": "values_per_field"
          },
          "flags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputCountry"
            },
            "maxItems": 20,
            "description": "A vessel's.",
            "x-bound": "values_per_field"
          },
          "manufacturer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "x-bound": "name_length",
            "pattern": "\\S"
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "x-bound": "name_length",
            "pattern": "\\S"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "type": {
                  "const": "person"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "properties": {
                "incorporation_dates": false,
                "flags": false
              }
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "organization"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "properties": {
                "birth_dates": false,
                "birth_countries": false,
                "nationalities": false,
                "gender": false,
                "flags": false
              }
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "vessel"
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "properties": {
                "birth_dates": false,
                "birth_countries": false,
                "nationalities": false,
                "gender": false,
                "incorporation_dates": false
              }
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "enum": [
                    "aircraft",
                    "crypto_wallet",
                    "security"
                  ]
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "properties": {
                "birth_dates": false,
                "birth_countries": false,
                "nationalities": false,
                "gender": false,
                "incorporation_dates": false,
                "flags": false
              }
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "enum": [
                    "person",
                    "organization",
                    "vessel",
                    "crypto_wallet",
                    "security"
                  ]
                }
              },
              "required": [
                "type"
              ]
            },
            "then": {
              "properties": {
                "manufacturer": false,
                "model": false
              }
            }
          }
        ],
        "anyOf": [
          {
            "required": [
              "names"
            ],
            "properties": {
              "names": {
                "minItems": 1
              }
            }
          },
          {
            "required": [
              "identifiers"
            ],
            "properties": {
              "identifiers": {
                "minItems": 1
              }
            }
          },
          {
            "required": [
              "accounts"
            ],
            "properties": {
              "accounts": {
                "minItems": 1
              }
            }
          }
        ]
      },
      "DomainOptions": {
        "type": "object",
        "properties": {
          "datasets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetName"
            },
            "minItems": 1,
            "maxItems": 200,
            "description": "Only these lists of the domain, named by their directory keys. Staleness in a selected screening list makes a screening negative inconclusive. An undeclared name is refused."
          },
          "topics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Topic"
            },
            "minItems": 1,
            "maxItems": 100,
            "description": "Only these topics of the domain; an opt-in topic named here is opted in."
          },
          "opt_in": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Topic"
            },
            "minItems": 1,
            "maxItems": 100,
            "description": "Opt-in topics to add to the domain's default."
          },
          "issuer_countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputCountry"
            },
            "minItems": 1,
            "maxItems": 100,
            "description": "Only lists issued by these countries (the lists searched, not the party's)."
          }
        },
        "additionalProperties": false
      },
      "Threshold": {
        "type": "number",
        "description": "Minimum score for a candidate without uniquely confirmed definitive identifier evidence.",
        "minimum": 0,
        "maximum": 1,
        "default": 0.7
      },
      "CoverageFormat": {
        "type": "string",
        "enum": [
          "compact",
          "full"
        ],
        "default": "full",
        "description": "Full coverage includes every edition read, the edition-set digest and coverage exceptions. Choose compact to omit the edition array while retaining the digest and exceptions.",
        "x-catalog": "coverage.format"
      },
      "CheckRequest": {
        "type": "object",
        "description": "Admitted only if parties x domains x limit is within `candidates_per_answer`; otherwise refused whole before work (`answer_too_large`), never cut by party. The companies domain checks `organization` parties and treats `unknown` parties as organizations. A generic registration number requires its issuing country for a companies check.",
        "properties": {
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Domain"
            },
            "minItems": 1,
            "maxItems": 9,
            "uniqueItems": true,
            "description": "Required: the domains to answer, each in its own section. Recipes in the catalog name sets of domains; the server never expands one."
          },
          "parties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Party"
            },
            "minItems": 1,
            "maxItems": 100,
            "x-bound": "parties_per_check",
            "description": "Each supplied reference must be unique within the request. An omitted reference may be repeated."
          },
          "options": {
            "type": "object",
            "description": "Per requested domain. Selects the lists and topics searched. An options key absent from domains is refused with not_requested at /options/<domain>.",
            "propertyNames": {
              "$ref": "#/components/schemas/Domain"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/DomainOptions"
            }
          },
          "coverage": {
            "$ref": "#/components/schemas/CoverageFormat"
          },
          "threshold": {
            "$ref": "#/components/schemas/Threshold"
          },
          "limit": {
            "type": "integer",
            "description": "Candidates per section at most.",
            "minimum": 1,
            "maximum": 50,
            "default": 5,
            "x-bound": "limit_max",
            "x-mcp-default": 3
          },
          "since": {
            "$ref": "#/components/schemas/Time",
            "description": "What changed for these parties since then, usually the previous answer's `answered_at`; each section answers a `delta`.",
            "x-capability": "since"
          }
        },
        "required": [
          "domains",
          "parties"
        ],
        "if": {
          "properties": {
            "domains": {
              "contains": {
                "const": "companies"
              }
            }
          },
          "required": [
            "domains"
          ]
        },
        "then": {
          "properties": {
            "parties": {
              "items": {
                "properties": {
                  "identifiers": {
                    "items": {
                      "if": {
                        "properties": {
                          "scheme": {
                            "const": "registration"
                          }
                        },
                        "required": [
                          "scheme"
                        ]
                      },
                      "then": {
                        "required": [
                          "country"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "additionalProperties": false
      },
      "Release": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ReleaseId"
          },
          "published_at": {
            "$ref": "#/components/schemas/Time"
          }
        },
        "required": [
          "id",
          "published_at"
        ]
      },
      "Edition": {
        "type": "object",
        "description": "One edition actually read, with its dataset, observation or digest, and the publisher's edition date when available. Screening editions cite the served records. Account files use the publisher digest where held. Czechia's account check records the observation.",
        "properties": {
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "as_of": {
            "$ref": "#/components/schemas/Date",
            "description": "The publisher's edition date, when available."
          },
          "file_sha256": {
            "$ref": "#/components/schemas/Sha256"
          },
          "file_sha512": {
            "type": "string",
            "pattern": "^[0-9a-f]{128}$"
          },
          "observed_at": {
            "$ref": "#/components/schemas/Time"
          },
          "last_read_at": {
            "$ref": "#/components/schemas/Time",
            "description": "Our last successful read of it: the freshness clock."
          },
          "bound": {
            "$ref": "#/components/schemas/Duration",
            "description": "Its freshness bound: stale once `last_read_at` is older."
          }
        },
        "required": [
          "dataset",
          "last_read_at",
          "bound"
        ],
        "anyOf": [
          {
            "required": [
              "file_sha256"
            ]
          },
          {
            "required": [
              "file_sha512"
            ]
          },
          {
            "required": [
              "observed_at"
            ]
          }
        ]
      },
      "WithheldCode": {
        "type": "string",
        "description": "A class excluded from scope, with the same codes on every answer of a tier, independent of the query. Context without a visible listing includes topicless records and links whose placement depends on listing evidence the tier cannot see. Age eligibility excludes known minors when public authorities list them without a binding measure. Minor association excludes known minors from derived and associative listings and withholds an undated child, grandchild or person named as a minor unless there is adulthood evidence. Binding measures and law-enforcement wanted notices screen people regardless of age (LEG-24). Current link required excludes relative and associate records without an eligible, documented, current link (LEG-8).",
        "enum": [
          "compliance_datasets",
          "person_former_values",
          "context_without_visible_listing",
          "age_eligibility",
          "minor_association",
          "current_link_required"
        ],
        "x-catalog": "coverage.withheld"
      },
      "DomainCoverage": {
        "type": "object",
        "description": "What the section read, common to every party: a negative's population.",
        "properties": {
          "datasets": {
            "type": "integer",
            "description": "Datasets in scope.",
            "minimum": 0
          },
          "checked": {
            "type": "integer",
            "description": "Datasets read.",
            "minimum": 0
          },
          "stale": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetName"
            },
            "description": "All in-scope datasets past their freshness bounds. Screening still reads their last valid editions. For check, `stale_core` and `stale_requested` identify which stale screening lists make negatives inconclusive."
          },
          "stale_core": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetName"
            },
            "description": "For check, the readable stale screening lists designated as core for this domain. Omitted when empty. A dataset may also appear in `stale_requested`."
          },
          "stale_requested": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetName"
            },
            "description": "For check, the readable stale screening lists explicitly named in `options.<domain>.datasets`. Omitted when empty."
          },
          "missing": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetName"
            }
          },
          "left_out": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Topic"
            },
            "description": "Opt-in topics the request did not name."
          },
          "withheld": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WithheldCode"
            }
          },
          "editions_sha256": {
            "$ref": "#/components/schemas/Sha256",
            "description": "SHA-256 of the UTF-8 minified JSON edition array, with object keys sorted lexicographically and editions sorted by dataset then by their minified JSON. An empty set hashes the bytes []."
          },
          "editions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Edition"
            },
            "description": "Every edition read by default, several of one dataset where several were (two account dates): with `stale` and `missing`, the population of every negative of the section. Omitted from check and search with compact coverage."
          }
        },
        "required": [
          "datasets",
          "checked",
          "editions_sha256",
          "stale",
          "missing"
        ]
      },
      "DomainMeta": {
        "type": "object",
        "properties": {
          "release": {
            "$ref": "#/components/schemas/Release"
          },
          "coverage": {
            "$ref": "#/components/schemas/DomainCoverage"
          },
          "unavailable": {
            "type": "string",
            "description": "Why the domain gives no release: `not_in_tier` when the key may not read it (its tier, or `companies` without the `registers` scope), which comes first, so such a key learns nothing of the domain's state; else `no_release`. Its sections answer `not_in_tier` or `unavailable` alike.",
            "enum": [
              "not_in_tier",
              "no_release"
            ],
            "x-catalog": "meta.unavailable"
          },
          "since_release": {
            "$ref": "#/components/schemas/ReleaseId",
            "description": "With `since`: the release this domain served then; absent for a domain the key may not read."
          }
        },
        "oneOf": [
          {
            "required": [
              "release",
              "coverage"
            ],
            "not": {
              "required": [
                "unavailable"
              ]
            }
          },
          {
            "required": [
              "unavailable"
            ],
            "not": {
              "anyOf": [
                {
                  "required": [
                    "release"
                  ]
                },
                {
                  "required": [
                    "coverage"
                  ]
                },
                {
                  "required": [
                    "since_release"
                  ]
                }
              ]
            }
          }
        ],
        "description": "A domain's release and coverage, or why it has none: one domain without a release leaves the others standing (SRV-20)."
      },
      "Meta": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "answered_at": {
            "$ref": "#/components/schemas/Time",
            "description": "The instant the call's releases were pinned."
          },
          "tier": {
            "$ref": "#/components/schemas/Tier"
          },
          "matcher": {
            "type": "string",
            "description": "Fingerprint of the scoring implementation, its tuning policy and the releases' learned tables.",
            "maxLength": 71,
            "pattern": "^sha256:[0-9a-f]{64}$"
          },
          "domains": {
            "type": "object",
            "description": "Per domain read: its release and coverage.",
            "propertyNames": {
              "$ref": "#/components/schemas/Domain"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/DomainMeta"
            }
          },
          "matcher_changed": {
            "type": "boolean",
            "description": "With `since`: whether the matcher changed between the two ends; then screen again without `since`."
          },
          "since_releases": false
        },
        "required": [
          "request_id",
          "answered_at",
          "tier"
        ]
      },
      "DataMeta": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Meta"
          },
          {
            "required": [
              "domains"
            ]
          }
        ]
      },
      "SectionStatus": {
        "type": "string",
        "description": "Whether the section ran: `needs_input` (nothing could run; `needs` says what), `not_applicable` (a person or other non-legal party asked of a legal-persons domain, except the account check of `tax`, which runs for any party type), `not_in_tier` (also: a key without the `registers` scope in `companies`), `unavailable`. `inconclusive` means a screening negative with a retrieval cut or a stale screening list that is core to the domain or explicitly requested in `options.<domain>.datasets`. Coverage lists those datasets under `stale_core` and `stale_requested` and reports every stale list under `stale`. The last valid edition of a stale screening list is still read. Name negatives are also inconclusive when a selected list has only unrequested opt-in topics or, for a person screen, the published edition has subjects in the requested topic scope excluded by eligibility. Account and register files follow their own date and freshness rules. One section's failure never fails the answer. `not_in_tier` comes before `unavailable`.",
        "enum": [
          "checked",
          "inconclusive",
          "needs_input",
          "not_applicable",
          "not_in_tier",
          "unavailable"
        ],
        "x-catalog": "section.status"
      },
      "Needs": {
        "type": "string",
        "description": "An input a `needs_input` section lacks.",
        "enum": [
          "identifier",
          "name"
        ],
        "x-catalog": "section.needs"
      },
      "Checked": {
        "type": "object",
        "description": "What ran.",
        "properties": {
          "names": {
            "type": "boolean"
          },
          "identifiers": {
            "type": "boolean"
          },
          "accounts": {
            "type": "boolean"
          }
        },
        "required": [
          "names",
          "identifiers",
          "accounts"
        ]
      },
      "IdentifierResult": {
        "type": "string",
        "description": "A number's finding. A negative needs a dated, whole, in-bound file; a stale register answers `unavailable`, for positives too.",
        "enum": [
          "found",
          "not_found",
          "ambiguous",
          "identifier_not_covered",
          "unavailable"
        ],
        "x-catalog": "identifiers.result"
      },
      "Completeness": {
        "type": "string",
        "description": "The population a finding covers.",
        "enum": [
          "all",
          "live",
          "lei_holders",
          "stated"
        ],
        "x-catalog": "identifiers.complete"
      },
      "Cut": {
        "type": "array",
        "uniqueItems": true,
        "description": "The nested lists of this object that stopped at their bound. `identifiers` and `records` past the bound (of a candidate, a hit, a holder's entity or a whole entity): `entities_statements` pages every statement behind them; `roots` and `edges` of a derived record: `entities_ownership` walks them; `holders` of a finding: no read gives the rest (that would be a free answer to who holds a number), the finding is `ambiguous` and says so.",
        "items": {
          "type": "string",
          "enum": [
            "holders",
            "identifiers",
            "records",
            "roots",
            "edges"
          ],
          "x-catalog": "cut"
        }
      },
      "Lacks": {
        "type": "string",
        "description": "What the population cannot contain (an empty list: nothing known).",
        "enum": [
          "dissolved_companies",
          "sole_traders",
          "officers",
          "registered_after_file_date",
          "solvent_liquidations",
          "missing_datasets",
          "stale_datasets"
        ],
        "x-catalog": "identifiers.lacks"
      },
      "Origin": {
        "type": "string",
        "description": "`derived` when the finding or record is ours.",
        "enum": [
          "publisher",
          "derived"
        ],
        "x-catalog": "origin"
      },
      "NameKind": {
        "type": "string",
        "description": "Which of the target's names scored.",
        "enum": [
          "current",
          "former",
          "alias"
        ],
        "x-catalog": "name.kind"
      },
      "NameMatch": {
        "type": "object",
        "description": "How the supplied name compares with this holder's names; only when a name was given.",
        "properties": {
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "matched_name": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/NameKind"
          }
        },
        "required": [
          "score",
          "matched_name",
          "kind"
        ]
      },
      "Holder": {
        "type": "object",
        "description": "A number's holder; in `companies` with its standing.",
        "properties": {
          "entity_id": {
            "$ref": "#/components/schemas/EntityId"
          },
          "caption": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "The register's own status word."
          },
          "statusKind": {
            "type": "string",
            "description": "The status's kind (`registered`, `closed`, ...)."
          },
          "legalForm": {
            "type": "string"
          },
          "version": {
            "$ref": "#/components/schemas/Version"
          },
          "name_match": {
            "$ref": "#/components/schemas/NameMatch"
          }
        },
        "required": [
          "entity_id"
        ]
      },
      "Evidence": {
        "type": "object",
        "description": "One file a finding was read from, with its digest, freshness and any publisher edition date.",
        "properties": {
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "as_of": {
            "$ref": "#/components/schemas/Date",
            "description": "The publisher's edition date, when available."
          },
          "published_at": {
            "$ref": "#/components/schemas/Time"
          },
          "file_sha256": {
            "$ref": "#/components/schemas/Sha256"
          },
          "last_read_at": {
            "$ref": "#/components/schemas/Time",
            "description": "Our last successful read of the file: the freshness clock (detail 12)."
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          }
        },
        "required": [
          "dataset",
          "file_sha256",
          "last_read_at",
          "freshness"
        ]
      },
      "IdentifierFinding": {
        "type": "object",
        "description": "A number names its holder: found whatever name came with it, the names compared per holder. A conclusive finding (found, not_found) states its population (complete, lacks) and the files read (evidence). A country held only through GLEIF (lei_holders) never answers not_found: a miss there is identifier_not_covered. A not_found rests on dated, in-bound files only (SRV-2).",
        "properties": {
          "input": {
            "type": "integer",
            "description": "The number's index in the party's `identifiers`.",
            "minimum": 0
          },
          "result": {
            "$ref": "#/components/schemas/IdentifierResult"
          },
          "complete": {
            "$ref": "#/components/schemas/Completeness"
          },
          "lacks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lacks"
            }
          },
          "origin": {
            "$ref": "#/components/schemas/Origin"
          },
          "holders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Holder"
            },
            "maxItems": 20,
            "x-bound": "holders_per_finding",
            "description": "The number's holders, at most `holders_per_finding`; more are named in `cut`."
          },
          "evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Evidence"
            },
            "minItems": 1,
            "description": "Files read that hold this scheme. A negative cites each publisher-dated file that supports it."
          },
          "cut": {
            "$ref": "#/components/schemas/Cut"
          }
        },
        "required": [
          "input",
          "result"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "result": {
                  "enum": [
                    "found",
                    "not_found"
                  ]
                }
              },
              "required": [
                "result"
              ]
            },
            "then": {
              "required": [
                "complete",
                "lacks",
                "origin",
                "evidence"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "result": {
                  "const": "found"
                }
              },
              "required": [
                "result"
              ]
            },
            "then": {
              "required": [
                "holders"
              ],
              "properties": {
                "holders": {
                  "minItems": 1
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "result": {
                  "const": "ambiguous"
                }
              },
              "required": [
                "result"
              ]
            },
            "then": {
              "required": [
                "holders"
              ],
              "properties": {
                "holders": {
                  "minItems": 2
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "complete": {
                  "const": "lei_holders"
                }
              },
              "required": [
                "complete"
              ]
            },
            "then": {
              "properties": {
                "result": {
                  "not": {
                    "const": "not_found"
                  }
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "result": {
                  "const": "not_found"
                }
              },
              "required": [
                "result"
              ]
            },
            "then": {
              "properties": {
                "evidence": {
                  "items": {
                    "properties": {
                      "freshness": {
                        "const": "ok"
                      }
                    },
                    "required": [
                      "freshness",
                      "as_of"
                    ]
                  }
                }
              }
            }
          }
        ]
      },
      "AccountResult": {
        "type": "string",
        "description": "An account pair's finding.",
        "enum": [
          "listed",
          "not_listed",
          "identifier_not_covered",
          "date_not_covered",
          "unavailable"
        ],
        "x-catalog": "accounts.result"
      },
      "AccountLimit": {
        "type": "string",
        "description": "What an account finding cannot say.",
        "enum": [
          "pair_only",
          "current_only",
          "cannot_tell_wrong_account_from_inactive_payer"
        ],
        "x-catalog": "accounts.limits",
        "x-words": "descriptive"
      },
      "AccountReason": {
        "type": "string",
        "description": "Why an account finding is not conclusive.",
        "enum": [
          "no_register",
          "disabled",
          "no_data",
          "stale",
          "not_read_yet",
          "missing_day",
          "identifier_form",
          "not_observed",
          "accounts_unread"
        ],
        "x-catalog": "accounts.reason"
      },
      "AccountEvidence": {
        "type": "object",
        "description": "Each publisher's own proof, for positives and negatives alike, in the fields today's check gives; `dataset` wherever a register was read (none for `no_register`). Poland's proof is its day and SHA-512 (`publication_date`, `file_sha512`), Czechia's its observation (`observed_at`).",
        "properties": {
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "publisher": {
            "type": "string"
          },
          "as_of": {
            "$ref": "#/components/schemas/Date"
          },
          "published_at": {
            "$ref": "#/components/schemas/Time"
          },
          "reason": {
            "$ref": "#/components/schemas/AccountReason"
          },
          "publication_date": {
            "$ref": "#/components/schemas/Date",
            "description": "Poland: the day's file read."
          },
          "file_sha512": {
            "type": "string",
            "description": "Poland: the publisher's SHA-512 of the day's file.",
            "pattern": "^[0-9a-f]{128}$"
          },
          "list": {
            "type": "string",
            "enum": [
              "active",
              "exempt"
            ],
            "x-catalog": "accounts.list",
            "description": "Poland: the list the pair is on.",
            "x-words": "publisher"
          },
          "virtual_account_mask": {
            "type": "boolean",
            "description": "Poland: whether the pair matched through a branch's mask."
          },
          "virtual_account_masks_tried": {
            "type": "integer",
            "minimum": 0
          },
          "observed_at": {
            "$ref": "#/components/schemas/Time",
            "description": "Czechia: when the payer's accounts were observed."
          },
          "account_published_on": {
            "$ref": "#/components/schemas/Date"
          },
          "account_type": {
            "type": "string"
          },
          "payer_found": {
            "type": "boolean"
          },
          "accounts_published": {
            "type": "integer",
            "minimum": 0
          },
          "available_from": {
            "$ref": "#/components/schemas/Date"
          },
          "available_to": {
            "$ref": "#/components/schemas/Date"
          },
          "latest_publication_date": {
            "$ref": "#/components/schemas/Date"
          }
        }
      },
      "AccountFinding": {
        "type": "object",
        "properties": {
          "input": {
            "type": "integer",
            "minimum": 0
          },
          "result": {
            "$ref": "#/components/schemas/AccountResult"
          },
          "limits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountLimit"
            }
          },
          "evidence": {
            "$ref": "#/components/schemas/AccountEvidence"
          }
        },
        "required": [
          "input",
          "result",
          "evidence"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "result": {
                  "enum": [
                    "listed",
                    "not_listed"
                  ]
                }
              },
              "required": [
                "result"
              ]
            },
            "then": {
              "properties": {
                "evidence": {
                  "required": [
                    "dataset"
                  ],
                  "anyOf": [
                    {
                      "required": [
                        "file_sha512"
                      ]
                    },
                    {
                      "required": [
                        "observed_at"
                      ]
                    }
                  ]
                }
              }
            }
          }
        ],
        "description": "An account pair's finding. A conclusive one (`listed`, `not_listed`) names its register's file: Poland's digest, Czechia's observation."
      },
      "IdentifierEvidenceResult": {
        "type": "string",
        "description": "How a candidate's numbers compare with one supplied number.",
        "enum": [
          "confirmed",
          "contradicted",
          "silent"
        ],
        "x-catalog": "candidates.identifier_evidence.result"
      },
      "Freshness": {
        "type": "string",
        "description": "Against our last successful read and the publisher's cadence (`bound`). `not_in_tier` is used by the dataset directory when only the public declaration is visible.",
        "enum": [
          "ok",
          "stale",
          "missing",
          "not_in_tier"
        ],
        "x-catalog": "freshness"
      },
      "Identifier": {
        "description": "An identifier in an answer: the input form, with its `key` (`scheme:value`, the form numbers are compared in) and the datasets that state it.",
        "allOf": [
          {
            "$ref": "#/components/schemas/InputIdentifier"
          },
          {
            "required": [
              "key",
              "datasets"
            ]
          }
        ]
      },
      "RecordSchema": {
        "type": "string",
        "description": "The member record's schema name. The catalog's `records.schema` lists the kinds with additional typed fields.",
        "anyOf": [
          {
            "enum": [
              "Sanction",
              "Occupancy",
              "Proceeding",
              "Listing",
              "Registration"
            ],
            "x-catalog": "records.schema"
          },
          {
            "minLength": 1
          }
        ]
      },
      "Record": {
        "type": "object",
        "description": "A publisher record of any schema carries its `dataset`, `record_id`, `ref` and `as_of`. A derived record carries its `roots` and dated, sourced `edges`. Additional typed fields depend on the schema.",
        "properties": {
          "schema": {
            "$ref": "#/components/schemas/RecordSchema"
          },
          "origin": {
            "$ref": "#/components/schemas/Origin"
          },
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "record_id": {
            "type": "string",
            "description": "The publisher's own record ID within `dataset`: provenance only, never input."
          },
          "ref": {
            "$ref": "#/components/schemas/MemberRef"
          },
          "as_of": {
            "$ref": "#/components/schemas/Date",
            "description": "The publisher's edition date when available, otherwise the date of the observation."
          },
          "roots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Root"
            },
            "description": "A derived record's listed parties.",
            "minItems": 1
          },
          "edges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WitnessEdge"
            },
            "description": "A derived record's path, each edge dated and sourced, the share as stated.",
            "minItems": 1
          },
          "cut": {
            "$ref": "#/components/schemas/Cut"
          }
        },
        "required": [
          "schema",
          "origin"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "origin": {
                  "const": "publisher"
                }
              },
              "required": [
                "origin"
              ]
            },
            "then": {
              "required": [
                "dataset",
                "record_id",
                "ref",
                "as_of"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "origin": {
                  "const": "derived"
                }
              },
              "required": [
                "origin"
              ]
            },
            "then": {
              "required": [
                "roots",
                "edges"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "schema": {
                  "const": "Sanction"
                }
              },
              "required": [
                "schema"
              ]
            },
            "then": {
              "$ref": "#/components/schemas/SanctionRecord"
            }
          },
          {
            "if": {
              "properties": {
                "schema": {
                  "const": "Occupancy"
                }
              },
              "required": [
                "schema"
              ]
            },
            "then": {
              "$ref": "#/components/schemas/OccupancyRecord"
            }
          },
          {
            "if": {
              "properties": {
                "schema": {
                  "const": "Proceeding"
                }
              },
              "required": [
                "schema"
              ]
            },
            "then": {
              "$ref": "#/components/schemas/ProceedingRecord"
            }
          },
          {
            "if": {
              "properties": {
                "schema": {
                  "const": "Listing"
                }
              },
              "required": [
                "schema"
              ]
            },
            "then": {
              "$ref": "#/components/schemas/ListingRecord"
            }
          },
          {
            "if": {
              "properties": {
                "schema": {
                  "const": "Registration"
                }
              },
              "required": [
                "schema"
              ]
            },
            "then": {
              "$ref": "#/components/schemas/RegistrationRecord"
            }
          }
        ]
      },
      "SanctionRecord": {
        "type": "object",
        "description": "A Sanction record's typed fields, the publisher's words verbatim; a derived one adds the rule and basis it rests on.",
        "properties": {
          "authority": {
            "type": "string"
          },
          "program": {
            "type": "string"
          },
          "regime": {
            "type": "string"
          },
          "topic": {
            "$ref": "#/components/schemas/Topic"
          },
          "startDate": {
            "$ref": "#/components/schemas/PartialDate"
          },
          "endDate": {
            "$ref": "#/components/schemas/PartialDate"
          },
          "rule": {
            "type": "string",
            "description": "Derived: the rule applied, in words."
          },
          "basis": {
            "type": "string",
            "enum": [
              "ownership",
              "control",
              "issuer"
            ],
            "x-catalog": "sanctions.basis"
          }
        }
      },
      "OccupancyRecord": {
        "type": "object",
        "description": "An Occupancy record's typed fields: the role held, its level and dates.",
        "properties": {
          "role": {
            "type": "string"
          },
          "level": {
            "type": "string",
            "description": "The role's level as our PEP topics name it (`national`, ...)."
          },
          "startDate": {
            "$ref": "#/components/schemas/PartialDate"
          },
          "endDate": {
            "$ref": "#/components/schemas/PartialDate"
          }
        },
        "required": [
          "role"
        ]
      },
      "Finality": {
        "type": "string",
        "description": "Ours, beside the publisher's words: `final`, a decision in force as its publisher lists it; `provisional`, announced, presumed or proposed, not yet decided (a petition no court has decided).",
        "enum": [
          "final",
          "provisional"
        ],
        "x-catalog": "records.finality"
      },
      "ProceedingKind": {
        "type": "string",
        "description": "Ours, beside the publisher's procedure: what kind of court case it is.",
        "enum": [
          "insolvency",
          "restructuring",
          "liquidation",
          "winding_up",
          "petition"
        ],
        "x-catalog": "proceedings.kind"
      },
      "ListingClass": {
        "type": "string",
        "description": "Ours: what kind of standing statement a Listing is.",
        "enum": [
          "designation",
          "debt",
          "standing",
          "registrar"
        ],
        "x-catalog": "listings.class"
      },
      "ListingKindDesignation": {
        "type": "string",
        "description": "Ours: a `designation` Listing's kind.",
        "enum": [
          "tax_unreliable",
          "vat_registration_revoked",
          "tax_id_revoked",
          "tax_id_unfit",
          "false_invoicing",
          "sham_company",
          "fiscal_inactive",
          "activity_suspended"
        ],
        "x-catalog": "listings.kind.designation",
        "x-words": "publisher"
      },
      "ListingKindDebt": {
        "type": "string",
        "description": "Ours: a `debt` Listing's kind.",
        "enum": [
          "tax_debt",
          "contribution_debt"
        ],
        "x-catalog": "listings.kind.debt"
      },
      "ListingKindStanding": {
        "type": "string",
        "description": "Ours: a `standing` Listing's kind.",
        "enum": [
          "tax_rating"
        ],
        "x-catalog": "listings.kind.standing"
      },
      "ListingKindRegistrar": {
        "type": "string",
        "description": "Ours: a `registrar` Listing's kind.",
        "enum": [
          "forced_dissolution",
          "strike_off",
          "filing_default",
          "seat_default",
          "registration_unfit"
        ],
        "x-catalog": "listings.kind.registrar"
      },
      "ListingBasis": {
        "type": "string",
        "description": "What a designation rests on (required for one): the facts the authority states it found, or a presumption the law lets it act on.",
        "enum": [
          "finding",
          "presumption"
        ],
        "x-catalog": "listings.basis"
      },
      "ProceedingRecord": {
        "type": "object",
        "description": "A Proceeding record's typed fields: the publisher's words verbatim beside our kind and finality.",
        "properties": {
          "authority": {
            "type": "string",
            "description": "The court or office, in the publisher's words."
          },
          "caseNumber": {
            "type": "string"
          },
          "procedure": {
            "type": "string",
            "description": "The publisher's name of the procedure, verbatim."
          },
          "stage": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/ProceedingKind"
          },
          "status": {
            "type": "string",
            "enum": [
              "open"
            ],
            "x-catalog": "proceedings.status"
          },
          "startDate": {
            "$ref": "#/components/schemas/Date"
          },
          "publishedAt": {
            "$ref": "#/components/schemas/Date"
          },
          "finality": {
            "$ref": "#/components/schemas/Finality"
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "kind",
          "finality"
        ]
      },
      "ListingRecord": {
        "type": "object",
        "description": "A Listing record's typed fields: the publisher's words verbatim (`listedAs`, `ground`) beside our class, kind (one of its class's), finality and basis (required for a designation).",
        "properties": {
          "authority": {
            "type": "string"
          },
          "listedAs": {
            "type": "string",
            "description": "The publisher's name of the status or list, verbatim."
          },
          "ground": {
            "type": "string"
          },
          "class": {
            "$ref": "#/components/schemas/ListingClass"
          },
          "kind": {
            "type": "string",
            "description": "One of its class's kinds."
          },
          "finality": {
            "$ref": "#/components/schemas/Finality"
          },
          "basis": {
            "$ref": "#/components/schemas/ListingBasis"
          },
          "legalBasis": {
            "type": "string"
          },
          "caseNumber": {
            "type": "string"
          },
          "decisionDate": {
            "$ref": "#/components/schemas/Date"
          },
          "startDate": {
            "$ref": "#/components/schemas/Date"
          },
          "publishedAt": {
            "$ref": "#/components/schemas/Date"
          },
          "amount": {
            "type": "string",
            "description": "A debt's figure as published, a decimal string in `currency`."
          },
          "currency": {
            "type": "string"
          },
          "amountDisputed": {
            "type": "string"
          },
          "amountScheduled": {
            "type": "string"
          },
          "amountOverdue": {
            "type": "string"
          },
          "oldestDueDate": {
            "$ref": "#/components/schemas/Date"
          }
        },
        "required": [
          "class",
          "kind",
          "finality"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "class": {
                  "const": "designation"
                }
              },
              "required": [
                "class"
              ]
            },
            "then": {
              "properties": {
                "kind": {
                  "$ref": "#/components/schemas/ListingKindDesignation"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "class": {
                  "const": "debt"
                }
              },
              "required": [
                "class"
              ]
            },
            "then": {
              "properties": {
                "kind": {
                  "$ref": "#/components/schemas/ListingKindDebt"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "class": {
                  "const": "standing"
                }
              },
              "required": [
                "class"
              ]
            },
            "then": {
              "properties": {
                "kind": {
                  "$ref": "#/components/schemas/ListingKindStanding"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "class": {
                  "const": "registrar"
                }
              },
              "required": [
                "class"
              ]
            },
            "then": {
              "properties": {
                "kind": {
                  "$ref": "#/components/schemas/ListingKindRegistrar"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "class": {
                  "const": "designation"
                }
              },
              "required": [
                "class"
              ]
            },
            "then": {
              "required": [
                "basis"
              ]
            }
          }
        ]
      },
      "RegistrationRecord": {
        "type": "object",
        "description": "A Registration record's typed fields: the register's standing of the company as of its file.",
        "properties": {
          "status": {
            "type": "string",
            "description": "The register's own status word."
          },
          "statusKind": {
            "type": "string"
          },
          "legalForm": {
            "type": "string"
          },
          "incorporationDate": {
            "$ref": "#/components/schemas/Date"
          },
          "dissolutionDate": {
            "$ref": "#/components/schemas/Date"
          }
        },
        "required": [
          "status"
        ]
      },
      "Root": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/EntityId"
          },
          "caption": {
            "type": "string"
          },
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "record_id": {
            "type": "string"
          }
        },
        "required": [
          "caption",
          "dataset",
          "record_id"
        ],
        "description": "A listed party a derived record rests on: its listing's dataset and publisher record."
      },
      "EntitySummary": {
        "type": "object",
        "description": "The compact projection a candidate, a hit and a holder's entity carry; `entities` gives the rest.",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/EntityId"
          },
          "domain": {
            "$ref": "#/components/schemas/Domain"
          },
          "schema": {
            "type": "string",
            "description": "The entity's schema (Person, Company, Vessel, ...)."
          },
          "caption": {
            "type": "string"
          },
          "version": {
            "$ref": "#/components/schemas/Version"
          },
          "topics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Topic"
            }
          },
          "identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Identifier"
            },
            "maxItems": 50,
            "x-bound": "identifiers_per_entity"
          },
          "records": {
            "type": "array",
            "description": "Every publisher member served for this entity in this domain and tier, together with its derived records, up to the bound. If records are omitted at the bound, `cut` includes `records`.",
            "items": {
              "$ref": "#/components/schemas/Record"
            },
            "maxItems": 50,
            "x-bound": "records_per_entity"
          },
          "properties": {
            "type": "object",
            "description": "The few summary properties that tell namesakes apart, including status, address and dates.",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "cut": {
            "$ref": "#/components/schemas/Cut"
          }
        },
        "required": [
          "id",
          "domain",
          "schema",
          "caption",
          "version",
          "topics",
          "identifiers",
          "records"
        ]
      },
      "MatchedName": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "input_name": {
            "type": "integer",
            "minimum": 0
          },
          "kind": {
            "$ref": "#/components/schemas/NameKind"
          }
        },
        "required": [
          "value",
          "input_name",
          "kind"
        ]
      },
      "Candidate": {
        "type": "object",
        "properties": {
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "match": {
            "type": "boolean",
            "description": "Whether the score reaches the threshold or a definitive identifier uniquely confirms the candidate. This describes the evidence."
          },
          "features": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z_]+$"
            },
            "additionalProperties": {
              "type": "number",
              "minimum": -1,
              "maximum": 1
            }
          },
          "matched_name": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MatchedName"
              },
              {
                "type": "null"
              }
            ]
          },
          "identifier_evidence": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "input": {
                  "type": "integer",
                  "minimum": 0
                },
                "result": {
                  "$ref": "#/components/schemas/IdentifierEvidenceResult"
                }
              },
              "required": [
                "input",
                "result"
              ]
            }
          },
          "entity": {
            "$ref": "#/components/schemas/EntitySummary"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "dataset": {
                  "$ref": "#/components/schemas/DatasetName"
                },
                "attribution": {
                  "$ref": "#/components/schemas/Attribution"
                },
                "freshness": {
                  "$ref": "#/components/schemas/Freshness"
                }
              },
              "required": [
                "dataset",
                "attribution",
                "freshness"
              ]
            }
          },
          "reason": {
            "type": "string",
            "const": "definitive_identifier",
            "description": "A unique holder finding that the scorer confirmed with definitive identifier evidence. See identifier_evidence for the supplied numbers and features for the score evidence."
          }
        },
        "required": [
          "score",
          "match",
          "features",
          "matched_name",
          "identifier_evidence",
          "entity",
          "sources"
        ]
      },
      "ChangedCandidate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Candidate"
          },
          {
            "type": "object",
            "properties": {
              "changed_fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "changed_fields"
            ]
          }
        ]
      },
      "RemovalReason": {
        "type": "string",
        "description": "Why a hit left; none for a suppression or a person's delisting on Standard.",
        "enum": [
          "delisted",
          "no_longer_qualifies"
        ],
        "x-catalog": "delta.removed.reason"
      },
      "Recheck": {
        "type": "string",
        "description": "Why a comparison could not be made whole: screen again without `since`.",
        "enum": [
          "history_unavailable",
          "matcher_changed",
          "release_gap"
        ],
        "x-catalog": "delta.recheck"
      },
      "FindingChange": {
        "type": "object",
        "description": "A finding whose result changed, by input index.",
        "properties": {
          "input": {
            "type": "integer",
            "minimum": 0
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "input",
          "from",
          "to"
        ]
      },
      "CoverageChange": {
        "description": "A coverage fact that changed for this party: a country's register, a dataset's freshness, or an ownership limit listed or no longer.",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "jurisdiction": {
                "$ref": "#/components/schemas/Country"
              },
              "from": {
                "$ref": "#/components/schemas/JurisdictionCoverage"
              },
              "to": {
                "$ref": "#/components/schemas/JurisdictionCoverage"
              }
            },
            "required": [
              "jurisdiction",
              "from",
              "to"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "dataset": {
                "$ref": "#/components/schemas/DatasetName"
              },
              "from": {
                "$ref": "#/components/schemas/Freshness"
              },
              "to": {
                "$ref": "#/components/schemas/Freshness"
              }
            },
            "required": [
              "dataset",
              "from",
              "to"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "not_held": {
                "$ref": "#/components/schemas/NotHeld"
              },
              "listed": {
                "type": "boolean",
                "description": "Whether the code is listed now."
              }
            },
            "required": [
              "not_held",
              "listed"
            ],
            "additionalProperties": false
          }
        ]
      },
      "Delta": {
        "type": "object",
        "description": "With `since` only, in place of `candidates`: what changed for this party. `complete: false` with `recheck` when the comparison could not be made whole.",
        "properties": {
          "complete": {
            "type": "boolean"
          },
          "recheck": {
            "$ref": "#/components/schemas/Recheck"
          },
          "available_from": {
            "$ref": "#/components/schemas/Time",
            "description": "With `recheck: history_unavailable`, where history is held from a later time: the earliest `since` this domain can compare from."
          },
          "added": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Candidate"
            },
            "description": "New hits, as full candidates."
          },
          "changed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChangedCandidate"
            }
          },
          "removed": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "entity_id": {
                  "$ref": "#/components/schemas/EntityId"
                },
                "reason": {
                  "$ref": "#/components/schemas/RemovalReason"
                }
              },
              "required": [
                "entity_id",
                "reason"
              ]
            },
            "description": "Hits gone since `since`, each with its reason. A suppressed entity, or a person delisted on Standard, is omitted here: it is told, as removed with no reason, only to a client that sends its ID to `entities_resolve` (SRV-16)."
          },
          "identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FindingChange"
            }
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FindingChange"
            }
          },
          "coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoverageChange"
            }
          }
        },
        "required": [
          "complete",
          "added",
          "changed",
          "removed",
          "identifiers",
          "accounts",
          "coverage"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "complete": {
                  "const": false
                }
              },
              "required": [
                "complete"
              ]
            },
            "then": {
              "required": [
                "recheck"
              ]
            }
          }
        ]
      },
      "JurisdictionCoverage": {
        "type": "string",
        "description": "Whether a country's register is held.",
        "enum": [
          "held",
          "lei_holders",
          "not_held"
        ],
        "x-catalog": "coverage.jurisdictions"
      },
      "NotHeld": {
        "type": "string",
        "description": "What an ownership read cannot contain.",
        "enum": [
          "owners_who_are_people",
          "stakes_below_25_gb"
        ],
        "x-catalog": "coverage.not_held"
      },
      "OwnershipCoverage": {
        "type": "object",
        "properties": {
          "read": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DatasetName"
            }
          },
          "not_held": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotHeld"
            }
          }
        },
        "required": [
          "read",
          "not_held"
        ]
      },
      "PartyCoverage": {
        "type": "object",
        "description": "What depends on the party.",
        "properties": {
          "jurisdictions": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/Country"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/JurisdictionCoverage"
            }
          },
          "ownership": {
            "$ref": "#/components/schemas/OwnershipCoverage"
          }
        }
      },
      "Section": {
        "type": "object",
        "description": "One domain's independent answer for one party: `candidates` without `since`, `delta` with it, never both.",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/SectionStatus"
          },
          "reason": {
            "type": "string",
            "const": "legal_persons_only",
            "description": "Why this party is outside the domain's scope."
          },
          "checked": {
            "$ref": "#/components/schemas/Checked"
          },
          "needs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Needs"
            }
          },
          "identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdentifierFinding"
            },
            "maxItems": 20,
            "x-bound": "identifiers_per_party"
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountFinding"
            },
            "maxItems": 5,
            "x-bound": "accounts_per_party"
          },
          "candidates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Candidate"
            },
            "maxItems": 50,
            "description": "Screening domains, without `since`: entities found by name or number, each once, best first.",
            "x-bound": "limit_max"
          },
          "matches": {
            "type": "integer",
            "description": "Number of qualifying candidates before the limit, including unique holders confirmed by definitive identifier evidence even below the score threshold. Other holder findings are reported in identifiers and need independent screening evidence to qualify.",
            "minimum": 0
          },
          "truncated": {
            "type": "boolean",
            "description": "More qualified than `limit` returned."
          },
          "retrieval_capped": {
            "type": "boolean",
            "description": "Retrieval stopped at its bound (MAT-12)."
          },
          "delta": {
            "$ref": "#/components/schemas/Delta"
          },
          "coverage": {
            "$ref": "#/components/schemas/PartyCoverage"
          }
        },
        "required": [
          "status",
          "checked"
        ],
        "not": {
          "required": [
            "candidates",
            "delta"
          ]
        }
      },
      "PartyResult": {
        "type": "object",
        "properties": {
          "reference": {
            "$ref": "#/components/schemas/Reference"
          },
          "charged": {
            "type": "integer",
            "description": "Credits for this party: 1 when a section was usable, else 0.",
            "minimum": 0,
            "maximum": 1
          },
          "domains": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/Domain"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/Section"
            }
          }
        },
        "required": [
          "charged",
          "domains"
        ]
      },
      "CheckAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartyResult"
            },
            "maxItems": 100,
            "description": "In the parties' order.",
            "x-bound": "parties_per_check"
          }
        },
        "required": [
          "meta",
          "results"
        ]
      },
      "SearchRequest": {
        "type": "object",
        "description": "Ranked text search in one domain; at most `search_results` results over all pages. A next page repeats the body with `cursor`. `companies` needs the `company_search` capability.",
        "properties": {
          "domain": {
            "$ref": "#/components/schemas/Domain"
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "x-bound": "search_text_length"
          },
          "options": {
            "type": "object",
            "properties": {
              "countries": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/InputCountry"
                },
                "minItems": 1,
                "maxItems": 5,
                "x-bound": "search_countries",
                "description": "Required for `companies` (1 to 5)."
              },
              "schemas": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "minItems": 1,
                "maxItems": 20
              },
              "topics": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Topic"
                },
                "minItems": 1,
                "maxItems": 100
              },
              "datasets": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DatasetName"
                },
                "minItems": 1,
                "maxItems": 200
              }
            },
            "additionalProperties": false
          },
          "coverage": {
            "$ref": "#/components/schemas/CoverageFormat"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10,
            "x-bound": "search_results"
          },
          "cursor": {
            "$ref": "#/components/schemas/Cursor"
          }
        },
        "required": [
          "domain",
          "text"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "domain": {
                  "const": "companies"
                }
              },
              "required": [
                "domain"
              ]
            },
            "then": {
              "required": [
                "options"
              ],
              "properties": {
                "options": {
                  "required": [
                    "countries"
                  ]
                }
              }
            },
            "x-capability": "company_search"
          }
        ]
      },
      "SearchHit": {
        "type": "object",
        "properties": {
          "score": {
            "type": "number",
            "description": "Relevance, not a screening score.",
            "minimum": 0,
            "maximum": 1
          },
          "matched_name": {
            "$ref": "#/components/schemas/MatchedName",
            "description": "The publisher name used to rank this hit. The single search text has input_name 0."
          },
          "entity": {
            "$ref": "#/components/schemas/EntitySummary"
          }
        },
        "required": [
          "score",
          "matched_name",
          "entity"
        ]
      },
      "SearchAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "charged": {
            "type": "integer",
            "description": "One per page that delivers value under x-charge.",
            "minimum": 0,
            "maximum": 1
          },
          "truncated": {
            "type": "boolean",
            "description": "More qualifying hits were found than the search can show over all pages."
          },
          "retrieval_capped": {
            "type": "boolean",
            "description": "The bounded search may have left qualifying hits unread."
          },
          "inconclusive": {
            "type": "boolean",
            "description": "True when a search yields no results and retrieval was cut short, a selected list lacks a complete in-bound read, or a selected list is limited by opt-in rules. Person eligibility in the selected topics can also make a list-scoped negative inconclusive for a search without a country filter."
          },
          "total": {
            "type": "integer",
            "description": "Results available across all pages. With retrieval_capped or truncated, this is a lower bound on qualifying hits.",
            "minimum": 0,
            "maximum": 50,
            "x-bound": "search_results"
          },
          "next_cursor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchHit"
            },
            "maxItems": 50,
            "x-bound": "search_results"
          }
        },
        "required": [
          "meta",
          "charged",
          "truncated",
          "retrieval_capped",
          "total",
          "next_cursor",
          "data"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "meta": {
                  "properties": {
                    "domains": {
                      "additionalProperties": {
                        "required": [
                          "unavailable"
                        ]
                      }
                    }
                  }
                }
              },
              "required": [
                "meta"
              ]
            },
            "then": {
              "properties": {
                "charged": {
                  "const": 0
                }
              }
            }
          }
        ]
      },
      "Entity": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EntitySummary"
          },
          {
            "type": "object",
            "properties": {
              "properties": {
                "type": "object",
                "description": "Every property this tier serves, as the publishers wrote it.",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "dataset": {
                      "$ref": "#/components/schemas/DatasetName"
                    },
                    "attribution": {
                      "$ref": "#/components/schemas/Attribution"
                    },
                    "as_of": {
                      "$ref": "#/components/schemas/Date"
                    },
                    "freshness": {
                      "$ref": "#/components/schemas/Freshness"
                    }
                  },
                  "required": [
                    "dataset",
                    "attribution",
                    "freshness"
                  ]
                }
              }
            },
            "required": [
              "properties",
              "sources"
            ]
          }
        ],
        "description": "The whole entity. `possible_links` is reserved."
      },
      "Redirect": {
        "type": "object",
        "description": "The ID asked for redirects to this entity.",
        "properties": {
          "status": {
            "type": "string",
            "const": "redirected"
          },
          "reason": {
            "$ref": "#/components/schemas/RedirectReason"
          }
        },
        "required": [
          "status"
        ]
      },
      "EntityAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "entity": {
            "$ref": "#/components/schemas/Entity"
          },
          "resolution": {
            "$ref": "#/components/schemas/Redirect"
          }
        },
        "required": [
          "meta",
          "entity"
        ]
      },
      "Statement": {
        "type": "object",
        "properties": {
          "prop": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "original": {
            "type": "string",
            "description": "The value as the publisher wrote it, where we normalised it."
          },
          "lang": {
            "type": "string"
          },
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "record_id": {
            "type": "string"
          },
          "first_seen": {
            "$ref": "#/components/schemas/Date"
          },
          "last_seen": {
            "$ref": "#/components/schemas/Date"
          }
        },
        "required": [
          "prop",
          "value",
          "dataset",
          "record_id",
          "first_seen",
          "last_seen"
        ]
      },
      "StatementsAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "next_cursor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Statement"
            },
            "maxItems": 1000
          },
          "cut": {
            "const": [
              "records"
            ]
          }
        },
        "required": [
          "meta",
          "next_cursor",
          "data"
        ]
      },
      "EdgeType": {
        "type": "string",
        "description": "A relationship's type.",
        "enum": [
          "ownership",
          "control",
          "directorship",
          "family",
          "association",
          "employment",
          "membership",
          "representation",
          "issuer",
          "succession",
          "operation",
          "unknown"
        ],
        "x-catalog": "edges.type"
      },
      "EdgeEnd": {
        "description": "`id` for an entity of the answering domain, `key` for a number elsewhere, `withheld` when neither may be shown; always a caption.",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/EntityId"
              },
              "caption": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "caption"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "caption": {
                "type": "string"
              }
            },
            "required": [
              "key",
              "caption"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "caption": {
                "type": "string"
              },
              "withheld": {
                "type": "string",
                "enum": [
                  "not_in_tier"
                ],
                "x-catalog": "edges.withheld"
              }
            },
            "required": [
              "caption",
              "withheld"
            ],
            "additionalProperties": false
          }
        ]
      },
      "PublishedEdge": {
        "type": "object",
        "description": "An individual evidenced edge in an ownership path. An unserved register person's edge is omitted whole; coverage says so.",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/EdgeType"
          },
          "origin": {
            "$ref": "#/components/schemas/Origin"
          },
          "from": {
            "$ref": "#/components/schemas/EdgeEnd"
          },
          "to": {
            "$ref": "#/components/schemas/EdgeEnd"
          },
          "share": {
            "type": "string",
            "description": "The share as stated (`100`, `75-100`)."
          },
          "start_date": {
            "$ref": "#/components/schemas/PartialDate"
          },
          "end_date": {
            "$ref": "#/components/schemas/PartialDate"
          },
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "record_id": {
            "type": "string"
          },
          "as_of": {
            "$ref": "#/components/schemas/Date",
            "description": "The publisher's edition date when available."
          },
          "hop": {
            "type": "integer",
            "description": "In an ownership walk: the distance from the root.",
            "minimum": 1,
            "maximum": 6,
            "x-bound": "ownership_depth"
          }
        },
        "required": [
          "type",
          "from",
          "to"
        ]
      },
      "WitnessEdge": {
        "description": "An edge of a derived record's path: dated and sourced, always.",
        "allOf": [
          {
            "$ref": "#/components/schemas/PublishedEdge"
          },
          {
            "required": [
              "dataset",
              "record_id",
              "as_of"
            ]
          }
        ]
      },
      "RelationshipKind": {
        "type": "string",
        "description": "The stated tie kind. For family ties it describes the other endpoint relative to the entity being read. Other kinds retain the direction shown by from and to.",
        "enum": [
          "spouse",
          "partner",
          "child",
          "parent",
          "sibling",
          "in_law",
          "grandchild",
          "grandparent",
          "other_relative",
          "owner",
          "operator",
          "associate",
          "control",
          "directorship",
          "employment",
          "membership",
          "representation",
          "issuer",
          "succession",
          "unknown"
        ],
        "x-catalog": "edges.kind"
      },
      "RelationshipSource": {
        "type": "object",
        "description": "One visible publisher record supporting the link.",
        "properties": {
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "record_id": {
            "type": "string"
          },
          "as_of": {
            "$ref": "#/components/schemas/Date",
            "description": "The publisher's edition date when available."
          },
          "share": {
            "type": "string",
            "description": "The share as stated (`100`, `75-100`)."
          },
          "start_dates": {
            "type": "array",
            "description": "All stated start dates in this record.",
            "items": {
              "$ref": "#/components/schemas/PartialDate"
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "end_dates": {
            "type": "array",
            "description": "All stated end dates in this record.",
            "items": {
              "$ref": "#/components/schemas/PartialDate"
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "declared_dates": {
            "type": "array",
            "description": "All stated declaration dates in this record.",
            "items": {
              "$ref": "#/components/schemas/PartialDate"
            },
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "required": [
          "dataset",
          "record_id"
        ],
        "additionalProperties": false
      },
      "Relationship": {
        "type": "object",
        "description": "A direct, evidenced link with one entry per counterpart and kind. Directed non-family links retain separate directions. Each source must be visible to the caller.",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/EdgeType"
          },
          "kind": {
            "$ref": "#/components/schemas/RelationshipKind"
          },
          "origin": {
            "$ref": "#/components/schemas/Origin"
          },
          "from": {
            "$ref": "#/components/schemas/EdgeEnd"
          },
          "to": {
            "$ref": "#/components/schemas/EdgeEnd"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RelationshipSource"
            },
            "minItems": 1
          }
        },
        "required": [
          "type",
          "kind",
          "origin",
          "from",
          "to",
          "sources"
        ],
        "additionalProperties": false
      },
      "RelationshipsAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "next_cursor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Relationship"
            },
            "maxItems": 1000
          },
          "coverage": {
            "type": "object",
            "properties": {
              "ownership": {
                "$ref": "#/components/schemas/OwnershipCoverage"
              },
              "relationships": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DatasetName"
                },
                "description": "Datasets that supplied non-ownership relationships on this page."
              }
            },
            "required": [
              "ownership"
            ]
          }
        },
        "required": [
          "meta",
          "next_cursor",
          "data",
          "coverage"
        ]
      },
      "HistoryKind": {
        "type": "string",
        "description": "A version's event.",
        "enum": [
          "added",
          "changed",
          "removed",
          "redirected"
        ],
        "x-catalog": "history.kind"
      },
      "HistoryItem": {
        "type": "object",
        "properties": {
          "release": {
            "$ref": "#/components/schemas/ReleaseId"
          },
          "served_from": {
            "$ref": "#/components/schemas/Time"
          },
          "served_until": {
            "$ref": "#/components/schemas/Time"
          },
          "as_of": {
            "$ref": "#/components/schemas/Date"
          },
          "kind": {
            "$ref": "#/components/schemas/HistoryKind"
          },
          "changed_fields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "version": {
            "$ref": "#/components/schemas/Version"
          }
        },
        "required": [
          "release",
          "served_from",
          "kind",
          "changed_fields"
        ]
      },
      "HistoryAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "values": {
            "type": "string",
            "enum": [
              "field_names_only",
              "values"
            ],
            "x-catalog": "history.values",
            "description": "`field_names_only` for a register company, which keeps no earlier values (LEG-23)."
          },
          "available_from": {
            "$ref": "#/components/schemas/Time"
          },
          "next_cursor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HistoryItem"
            },
            "maxItems": 1000
          }
        },
        "required": [
          "meta",
          "values",
          "next_cursor",
          "data"
        ]
      },
      "OwnershipAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "root": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/EntityId"
              },
              "caption": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "caption"
            ]
          },
          "truncated": {
            "type": "boolean",
            "description": "The walk stopped at a bound (depth, nodes, edges or time)."
          },
          "edges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublishedEdge"
            },
            "maxItems": 5000
          },
          "coverage": {
            "type": "object",
            "properties": {
              "ownership": {
                "$ref": "#/components/schemas/OwnershipCoverage"
              }
            },
            "required": [
              "ownership"
            ]
          }
        },
        "required": [
          "meta",
          "root",
          "truncated",
          "edges",
          "coverage"
        ]
      },
      "ResolveItem": {
        "description": "An entity ID, a member reference, or a number (change states only; never who holds it: that is a paid `check`).",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/EntityIdInput"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "ref": {
                "$ref": "#/components/schemas/MemberRef"
              }
            },
            "required": [
              "ref"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "identifier": {
                "$ref": "#/components/schemas/InputIdentifier"
              }
            },
            "required": [
              "identifier"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ResolveRequest": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResolveItem"
            },
            "minItems": 1,
            "maxItems": 1000,
            "x-bound": "items_per_resolve"
          },
          "since": {
            "$ref": "#/components/schemas/Time",
            "description": "Change since then, per domain; required with a number item, whose answer is its change. Its reach is the history held.",
            "x-capability": "since"
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Domain"
            },
            "minItems": 1,
            "maxItems": 9,
            "uniqueItems": true,
            "description": "The domains a number item is compared in; required with one. An ID answers in its own domain."
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false,
        "if": {
          "properties": {
            "items": {
              "contains": {
                "type": "object",
                "required": [
                  "identifier"
                ]
              }
            }
          },
          "required": [
            "items"
          ]
        },
        "then": {
          "required": [
            "since",
            "domains"
          ]
        }
      },
      "ResolutionStatus": {
        "type": "string",
        "description": "What a saved ID or reference is now (SRV-15): `removed`, with no reason or successor, for an ID this tier was served that was removed, suppressed or is now seen only by another tier, through its notice window (two years or its source's shorter clock); `unknown` for one this tier was never served, or past that window.",
        "enum": [
          "current",
          "redirected",
          "removed",
          "unknown"
        ],
        "x-catalog": "resolution.status"
      },
      "RedirectReason": {
        "type": "string",
        "description": "Why an ID redirects.",
        "enum": [
          "merged"
        ],
        "x-catalog": "resolution.reason"
      },
      "Resolution": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/ResolutionStatus"
          },
          "entity_id": {
            "$ref": "#/components/schemas/EntityId",
            "description": "The single successor or current v1 entity for an opaque v1 ID."
          },
          "reason": {
            "$ref": "#/components/schemas/RedirectReason"
          },
          "member_of": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "domain": {
                  "$ref": "#/components/schemas/Domain"
                },
                "entity_id": {
                  "$ref": "#/components/schemas/EntityId"
                }
              },
              "required": [
                "domain",
                "entity_id"
              ]
            },
            "description": "A reference item: the entities its record is a member of now."
          }
        },
        "required": [
          "status"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "status": {
                  "enum": [
                    "removed",
                    "unknown"
                  ]
                }
              },
              "required": [
                "status"
              ]
            },
            "then": {
              "propertyNames": {
                "const": "status"
              }
            }
          }
        ]
      },
      "ChangeState": {
        "type": "string",
        "description": "Change since `since` in one domain: `unchanged` when the facts this domain serves of it are the same at both ends (present at both with no field changed, or absent at both); `changed` (with `changed_fields`) when present at both with a field changed; `not_in_tier` for `companies` to a key without the `registers` scope.",
        "enum": [
          "unchanged",
          "changed",
          "added",
          "removed",
          "not_covered",
          "not_in_tier",
          "history_unavailable"
        ],
        "x-catalog": "change.state"
      },
      "DomainChange": {
        "type": "object",
        "properties": {
          "state": {
            "$ref": "#/components/schemas/ChangeState"
          },
          "changed_fields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "available_from": {
            "$ref": "#/components/schemas/Time"
          }
        },
        "required": [
          "state"
        ],
        "additionalProperties": false
      },
      "ResolveResult": {
        "type": "object",
        "description": "An ID or reference item has `resolution`; a number has only its `change` per asked domain (who holds it is a paid `check`, so nothing of a holder is given). `item` is the form the request gave at `input`.",
        "properties": {
          "input": {
            "type": "integer",
            "minimum": 0
          },
          "item": {
            "type": "string",
            "enum": [
              "id",
              "ref",
              "identifier"
            ],
            "x-catalog": "resolve.item",
            "description": "The input item's form."
          },
          "resolution": {
            "$ref": "#/components/schemas/Resolution"
          },
          "change": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/Domain"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/DomainChange"
            }
          }
        },
        "required": [
          "input",
          "item"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "item": {
                  "const": "identifier"
                }
              },
              "required": [
                "item"
              ]
            },
            "then": {
              "required": [
                "change"
              ],
              "properties": {
                "resolution": false,
                "change": {
                  "minProperties": 1
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "item": {
                  "enum": [
                    "id",
                    "ref"
                  ]
                }
              },
              "required": [
                "item"
              ]
            },
            "then": {
              "required": [
                "resolution"
              ]
            }
          }
        ],
        "unevaluatedProperties": false
      },
      "ResolveAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/DataMeta"
          },
          "charged": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1
          },
          "summary": {
            "type": "object",
            "description": "Counts of distinct input items, each in at most one: `removed` (any domain removed, or the ID removed), else `changed` (any domain changed or added), else `inconclusive` (any domain history_unavailable); `items` counts all.",
            "properties": {
              "items": {
                "type": "integer",
                "minimum": 0
              },
              "changed": {
                "type": "integer",
                "minimum": 0
              },
              "removed": {
                "type": "integer",
                "minimum": 0
              },
              "inconclusive": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "items",
              "changed",
              "removed",
              "inconclusive"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResolveResult"
            },
            "maxItems": 1000,
            "x-bound": "items_per_resolve"
          }
        },
        "required": [
          "meta",
          "charged",
          "summary",
          "items"
        ]
      },
      "Catalog": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "contract": {
            "type": "string",
            "description": "This contract's version."
          },
          "capabilities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "available": {
                  "type": "boolean"
                },
                "description": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "available"
              ]
            },
            "description": "What is built; a capability not yet available is listed with `available: false`."
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "$ref": "#/components/schemas/Domain"
                },
                "topics": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Topic"
                  }
                },
                "opt_in": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Topic"
                  }
                },
                "legal_persons_only": {
                  "type": "boolean"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "kinds": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PartyType"
                  },
                  "description": "Party types the caller can check with this key and the current domain release. Empty when the key lacks scope or there is no check coverage."
                },
                "account_check": {
                  "type": "boolean",
                  "description": "`tax`: the account check runs for any party type."
                }
              },
              "required": [
                "name",
                "topics",
                "opt_in",
                "kinds",
                "legal_persons_only"
              ]
            }
          },
          "topics": {
            "type": "object",
            "description": "What each topic means, by its code (core/model.py), in the domains' order.",
            "propertyNames": {
              "$ref": "#/components/schemas/Topic"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "recipes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "domains": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Domain"
                  }
                }
              },
              "required": [
                "name",
                "domains"
              ]
            },
            "description": "Sets of domains for common decisions; the server never expands one."
          },
          "identifier_schemes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "scheme": {
                  "$ref": "#/components/schemas/IdentifierScheme"
                },
                "generic": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "scheme": {
                          "type": "string"
                        },
                        "country": {
                          "$ref": "#/components/schemas/Country"
                        }
                      },
                      "required": [
                        "scheme",
                        "country"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "type": "string"
                },
                "requires": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Fields required in addition to scheme and value."
                },
                "case_sensitive": {
                  "type": "boolean",
                  "description": "Omitted when case handling depends on the network."
                }
              },
              "required": [
                "scheme",
                "description"
              ]
            },
            "description": "Generated from the validators."
          },
          "values": {
            "type": "object",
            "description": "Every enumerated value, by name; each may grow (an unknown one reads as inconclusive).",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "bounds": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          },
          "problems": {
            "type": "object",
            "description": "Every problem code and its HTTP status.",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "integer"
            }
          },
          "history_reach": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/Domain"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/Duration"
            }
          }
        },
        "required": [
          "meta",
          "contract",
          "capabilities",
          "domains",
          "topics",
          "recipes",
          "identifier_schemes",
          "values",
          "bounds",
          "problems"
        ]
      },
      "Dataset": {
        "type": "object",
        "properties": {
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "title": {
            "type": "string"
          },
          "attribution": {
            "$ref": "#/components/schemas/Attribution"
          },
          "licence": {
            "$ref": "#/components/schemas/Source/properties/licence"
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Domain"
            }
          },
          "tier": {
            "$ref": "#/components/schemas/Tier"
          },
          "jurisdiction": {
            "$ref": "#/components/schemas/Country",
            "description": "The declared jurisdiction or, when unstated, the publisher's country if known."
          },
          "scheme": {
            "type": "string"
          },
          "entities": {
            "type": "integer",
            "description": "Number of distinct publisher records with a screenable subject schema placed in the caller's tier and domain scope. Without a domain filter, counts the union across domains. Absent for edition-only observations and when the caller's tier cannot read the dataset.",
            "minimum": 0
          },
          "as_of": {
            "$ref": "#/components/schemas/Date",
            "description": "The publisher's file date."
          },
          "last_read_at": {
            "$ref": "#/components/schemas/Time",
            "description": "Our last successful read: the freshness clock."
          },
          "cadence": {
            "$ref": "#/components/schemas/Duration",
            "description": "The publisher's declared issue interval when known, otherwise the longest interval between scheduled reads."
          },
          "bound": {
            "$ref": "#/components/schemas/Duration",
            "description": "Freshness bound: stale once `last_read_at` is older than this."
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "complete": {
            "$ref": "#/components/schemas/Completeness",
            "description": "The publisher's declared population, or `stated` when only its statements are known."
          },
          "lacks": {
            "type": "array",
            "description": "Known limitations of that population.",
            "items": {
              "$ref": "#/components/schemas/Lacks"
            }
          }
        },
        "required": [
          "dataset",
          "domains",
          "tier",
          "freshness",
          "complete",
          "lacks"
        ]
      },
      "DatasetsAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "next_cursor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset"
            },
            "maxItems": 1000
          }
        },
        "required": [
          "meta",
          "next_cursor",
          "data"
        ]
      },
      "Source": {
        "type": "object",
        "properties": {
          "publisher": {
            "type": "string"
          },
          "dataset": {
            "$ref": "#/components/schemas/DatasetName"
          },
          "licence": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "commercial": {
                "type": "boolean",
                "description": "Whether the recorded publisher terms allow commercial reuse, when stated."
              }
            }
          },
          "attribution": {
            "$ref": "#/components/schemas/Attribution"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "publisher",
          "dataset",
          "licence",
          "attribution"
        ]
      },
      "SourcesAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "next_cursor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            },
            "maxItems": 1000
          }
        },
        "required": [
          "meta",
          "next_cursor",
          "data"
        ]
      },
      "Key": {
        "type": "object",
        "properties": {
          "key_id": {
            "$ref": "#/components/schemas/KeyId"
          },
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "prefix": {
            "type": "string",
            "description": "The key's first characters, to recognise it."
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Scope"
            },
            "uniqueItems": true
          },
          "created_at": {
            "$ref": "#/components/schemas/Time"
          },
          "last_used_at": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Time"
              },
              {
                "type": "null"
              }
            ]
          },
          "revoked_at": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "key_id",
          "name",
          "prefix",
          "scopes",
          "created_at",
          "last_used_at",
          "revoked_at"
        ]
      },
      "AccountAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "account_id": {
            "$ref": "#/components/schemas/AccountId"
          },
          "plan": {
            "type": "string"
          },
          "tier": {
            "$ref": "#/components/schemas/Tier"
          },
          "credits": {
            "type": "object",
            "properties": {
              "left": {
                "type": "integer",
                "description": "The remaining balance on a metered plan, or 0 on an unmetered plan."
              },
              "as_of": {
                "$ref": "#/components/schemas/Time"
              },
              "approximate": {
                "type": "boolean"
              },
              "unmetered": {
                "type": "boolean",
                "description": "When true, this plan spends no credits and left is 0."
              }
            },
            "required": [
              "left",
              "as_of",
              "approximate"
            ]
          },
          "limits": {
            "type": "object",
            "properties": {
              "requests_per_minute": {
                "type": "integer",
                "minimum": 0,
                "description": "The requests-per-minute limit, or 0 if unlimited. Rate headers are omitted for unlimited plans."
              },
              "concurrent_checks": {
                "type": "integer",
                "minimum": 0
              },
              "rate_limited": {
                "type": "boolean",
                "description": "Whether requests_per_minute is enforced."
              },
              "concurrency_limited": {
                "type": "boolean",
                "description": "Whether this account is currently at its concurrent check cap."
              }
            },
            "required": [
              "requests_per_minute",
              "concurrent_checks",
              "concurrency_limited"
            ]
          },
          "key": {
            "$ref": "#/components/schemas/Key"
          }
        },
        "required": [
          "meta",
          "account_id",
          "plan",
          "tier",
          "credits",
          "limits",
          "key"
        ]
      },
      "KeysAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "next_cursor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Key"
            },
            "maxItems": 1000
          }
        },
        "required": [
          "meta",
          "next_cursor",
          "data"
        ]
      },
      "KeyAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "key": {
            "$ref": "#/components/schemas/Key"
          }
        },
        "required": [
          "meta",
          "key"
        ]
      },
      "UsageKind": {
        "type": "string",
        "description": "A kind of use. Account includes account, key and usage administration.",
        "enum": [
          "check",
          "search",
          "read",
          "resolve",
          "account"
        ],
        "x-catalog": "usage.kind"
      },
      "UsageAnswer": {
        "type": "object",
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "next_cursor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Cursor"
              },
              {
                "type": "null"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "$ref": "#/components/schemas/Date"
                },
                "key_id": {
                  "$ref": "#/components/schemas/KeyId"
                },
                "kind": {
                  "$ref": "#/components/schemas/UsageKind"
                },
                "requests": {
                  "type": "integer",
                  "minimum": 0
                },
                "credits": {
                  "type": "integer",
                  "minimum": 0
                },
                "unbilled": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "day",
                "key_id",
                "kind",
                "requests",
                "credits",
                "unbilled"
              ]
            },
            "maxItems": 1000
          }
        },
        "required": [
          "meta",
          "next_cursor",
          "data"
        ]
      },
      "ProblemCode": {
        "type": "string",
        "description": "A refusal's stable key; may grow. Its status and meaning are in `x-problems`.",
        "enum": [
          "malformed_json",
          "invalid_cursor",
          "unauthenticated",
          "credits_exhausted",
          "forbidden_scope",
          "account_suspended",
          "not_found",
          "version_changed",
          "release_changed",
          "entity_removed",
          "payload_too_large",
          "unsupported_media_type",
          "invalid_request",
          "answer_too_large",
          "rate_limited",
          "internal",
          "not_available",
          "busy",
          "no_release",
          "method_not_allowed"
        ],
        "x-catalog": "problems.code"
      },
      "ErrorCode": {
        "type": "string",
        "description": "What is wrong at one pointer.",
        "enum": [
          "required",
          "unknown_field",
          "invalid_type",
          "invalid_value",
          "invalid_identifier",
          "invalid_date",
          "invalid_country",
          "too_many",
          "too_few",
          "too_long",
          "field_not_allowed",
          "duplicate",
          "capability",
          "not_requested"
        ],
        "x-catalog": "problems.errors.code"
      },
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details, on every refusal of both transports. Refusals are free. Every field is the server's own (a code, a fixed title or detail, a pointer of field names and indices, a bound's name). `status`, `title` and `type` are those of its `code` (x-problems). Only `invalid_request` carries `errors`, each pointing into the operation's own request.",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://api\\.sanctionary\\.org/problems/[a-z_]+$"
          },
          "title": {
            "type": "string",
            "description": "The code's fixed title (x-problems).",
            "enum": [
              "Malformed JSON",
              "Invalid cursor",
              "Unauthenticated",
              "Credits exhausted",
              "Scope missing",
              "Account suspended",
              "Not found",
              "Version changed",
              "Release changed",
              "Entity removed",
              "Payload too large",
              "Unsupported media type",
              "Invalid request",
              "Answer too large",
              "Rate limited",
              "Internal error",
              "Not available",
              "Busy",
              "No release",
              "Method not allowed"
            ],
            "x-catalog": "problems.title"
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "code": {
            "$ref": "#/components/schemas/ProblemCode"
          },
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "charged": {
            "type": "integer",
            "const": 0
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "pointer": {
                  "type": "string",
                  "description": "A JSON pointer to the declared field whose value is malformed, or to the indexed element when an array element is malformed. An unknown field points to its enclosing object and gives its position in member_index. An error on the object as a whole points to that object. Paths follow this operation's request shape, with indices only in arrays and declared domains under `options`.",
                  "pattern": "^(/((countries|domains)(/[0-9]+)?|coverage|cursor|dataset|depth|direction|domain|from|id|key_id|limit|prop|since|text|threshold|to|type|version|items(/[0-9]+(/(id|ref|identifier(/(country|key|network|register|scheme|value|datasets(/[0-9]+)?))?))?)?|options(/((companies|crime|debarment|export_control|insolvency|peps|regulatory|sanctions|tax)(/(datasets|issuer_countries|opt_in|topics)(/[0-9]+)?)?|(countries|datasets|schemas|topics)(/[0-9]+)?))?|parties(/[0-9]+(/(accounts(/[0-9]+(/(date|value|identifier(/(country|key|network|register|scheme|value|datasets(/[0-9]+)?))?))?)?|(birth_countries|birth_dates|countries|flags|incorporation_dates|nationalities)(/[0-9]+)?|gender|manufacturer|model|reference|type|identifiers(/[0-9]+(/(country|key|network|register|scheme|value|datasets(/[0-9]+)?))?)?|names(/[0-9]+(/value)?)?))?)?))?$"
                },
                "code": {
                  "$ref": "#/components/schemas/ErrorCode"
                },
                "bound": {
                  "$ref": "#/components/schemas/BoundName"
                },
                "member_index": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "For an unknown field, the zero-based position among the members of the object at pointer, or among query parameters for query input. The submitted field name stays private."
                },
                "allowed_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Declared field names at the enclosing pointer."
                }
              },
              "required": [
                "pointer",
                "code"
              ],
              "additionalProperties": false
            },
            "maxItems": 20,
            "x-bound": "errors_per_problem"
          },
          "required": {
            "type": "integer",
            "minimum": 0
          },
          "available": {
            "type": "integer",
            "minimum": 0
          },
          "bound": {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "#/components/schemas/BoundName"
              },
              "value": {
                "type": "number"
              }
            },
            "required": [
              "name",
              "value"
            ],
            "additionalProperties": false
          },
          "version": {
            "$ref": "#/components/schemas/Version"
          },
          "capability": {
            "type": "string",
            "description": "The capability a `not_available` refusal needs.",
            "enum": [
              "since",
              "history",
              "ownership",
              "company_search"
            ],
            "x-catalog": "capabilities.name"
          },
          "detail": {
            "type": "string",
            "description": "Server-supplied guidance for this refusal.",
            "enum": [
              "Use a v1 key with the required scope. See /v1/guide."
            ],
            "x-catalog": "problems.detail"
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Domain"
            },
            "description": "Readable domains without a release, on a no_release problem."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code",
          "request_id",
          "charged"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "code": {
                  "const": "invalid_request"
                }
              },
              "required": [
                "code"
              ]
            },
            "else": {
              "properties": {
                "errors": false
              }
            }
          }
        ]
      },
      "BoundName": {
        "type": "string",
        "description": "A named contract bound or an applicable rate limit.",
        "enum": [
          "accounts_per_party",
          "body_bytes",
          "candidates_per_answer",
          "concurrent_checks",
          "datasets_per_identifier",
          "errors_per_problem",
          "holders_per_finding",
          "identifiers_per_entity",
          "identifiers_per_party",
          "items_per_resolve",
          "limit_max",
          "mcp_candidates_per_answer",
          "mcp_response_bytes",
          "name_length",
          "names_per_party",
          "ownership_depth",
          "ownership_nodes",
          "page_limit",
          "parties_per_check",
          "records_per_entity",
          "reference_length",
          "request_burst",
          "response_bytes",
          "search_countries",
          "search_results",
          "search_text_length",
          "values_per_field"
        ],
        "x-catalog": "bounds.name"
      },
      "AccountId": {
        "type": "string",
        "pattern": "^acct_[A-Za-z0-9]+$"
      },
      "KeyId": {
        "type": "string",
        "pattern": "^key_[A-Za-z0-9]+$",
        "description": "Public identifier of an issued key, used to select its account record and usage."
      },
      "IdentifierScheme": {
        "type": "string",
        "description": "The identifier scheme. The catalog lists each scheme's required fields.",
        "enum": [
          "aircraft_registration",
          "au",
          "bic",
          "br",
          "crypto_wallet",
          "cz",
          "ee",
          "fi",
          "fr",
          "gb",
          "hr",
          "ie",
          "il",
          "imo",
          "in-cin",
          "in-llpin",
          "isin",
          "kz",
          "lei",
          "lt",
          "lv",
          "mmsi",
          "national_id",
          "no",
          "other",
          "passport",
          "pl-krs",
          "pl-regon",
          "registration",
          "ro",
          "rs",
          "ru",
          "sg",
          "sk",
          "tax",
          "ua",
          "wallet"
        ],
        "x-catalog": "identifier_schemes.scheme"
      },
      "BirthDate": {
        "type": "string",
        "description": "A calendar date as precise as known (YYYY, YYYY-MM or YYYY-MM-DD). The start of the stated period must be on or before today (UTC).",
        "pattern": "^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$",
        "format": "birth-date"
      },
      "EntityIdInput": {
        "type": "string",
        "description": "An opaque entity ID. Member references use their own input field.",
        "pattern": "^e-[0-9a-f][0-9a-hjkmnp-tv-z]{12}$",
        "maxLength": 15
      },
      "InputCountry": {
        "type": "string",
        "description": "An assigned ISO 3166-1 alpha-2 country code, accepted in either case and normalized to lowercase.",
        "pattern": "^[A-Za-z]{2}$",
        "format": "iso-country-code"
      },
      "EvmNetwork": {
        "type": "string",
        "enum": [
          "arbitrum",
          "avalanche",
          "base",
          "bsc",
          "celo",
          "ethereum",
          "ethereum-classic",
          "evm",
          "fantom",
          "gnosis",
          "linea",
          "optimism",
          "polygon",
          "scroll",
          "zksync"
        ],
        "x-catalog": "identifier.evm_network"
      }
    },
    "parameters": {
      "Cursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "schema": {
          "$ref": "#/components/schemas/Cursor"
        }
      },
      "EntityId": {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/EntityIdInput"
        }
      },
      "KeyId": {
        "name": "key_id",
        "in": "query",
        "required": false,
        "schema": {
          "$ref": "#/components/schemas/KeyId"
        }
      },
      "KeyIdPath": {
        "name": "key_id",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/KeyId"
        }
      },
      "PageLimit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000,
          "default": 100,
          "x-bound": "page_limit"
        }
      },
      "Version": {
        "name": "version",
        "in": "query",
        "required": false,
        "schema": {
          "$ref": "#/components/schemas/Version"
        },
        "description": "The version the client saved: answer 409 `version_changed` if it is no longer served."
      }
    },
    "responses": {
      "Refusal": {
        "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Sanctionary-Build": {
            "$ref": "#/components/headers/X-Sanctionary-Build"
          },
          "X-Sanctionary-Releases": {
            "$ref": "#/components/headers/X-Sanctionary-Releases"
          },
          "X-Sanctionary-Matcher": {
            "$ref": "#/components/headers/X-Sanctionary-Matcher"
          },
          "X-Sanctionary-Response-SHA256": {
            "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
          },
          "X-Credits-Charged": {
            "$ref": "#/components/headers/X-Credits-Charged"
          },
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "RefusalRetry": {
        "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Sanctionary-Build": {
            "$ref": "#/components/headers/X-Sanctionary-Build"
          },
          "X-Sanctionary-Releases": {
            "$ref": "#/components/headers/X-Sanctionary-Releases"
          },
          "X-Sanctionary-Matcher": {
            "$ref": "#/components/headers/X-Sanctionary-Matcher"
          },
          "X-Sanctionary-Response-SHA256": {
            "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
          },
          "X-Credits-Charged": {
            "$ref": "#/components/headers/X-Credits-Charged"
          },
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "RefusalAuth": {
        "description": "Refused, free: a problem whose `code` is one of the operation's `x-problems` for this status.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Sanctionary-Build": {
            "$ref": "#/components/headers/X-Sanctionary-Build"
          },
          "X-Sanctionary-Releases": {
            "$ref": "#/components/headers/X-Sanctionary-Releases"
          },
          "X-Sanctionary-Matcher": {
            "$ref": "#/components/headers/X-Sanctionary-Matcher"
          },
          "X-Sanctionary-Response-SHA256": {
            "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
          },
          "X-Credits-Charged": {
            "$ref": "#/components/headers/X-Credits-Charged"
          },
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "WWW-Authenticate": {
            "$ref": "#/components/headers/WWW-Authenticate"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "RefusalBusyOrNoRelease": {
        "description": "The service is busy (Retry-After) or has no release for the readable domains.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Sanctionary-Build": {
            "$ref": "#/components/headers/X-Sanctionary-Build"
          },
          "X-Sanctionary-Releases": {
            "$ref": "#/components/headers/X-Sanctionary-Releases"
          },
          "X-Sanctionary-Matcher": {
            "$ref": "#/components/headers/X-Sanctionary-Matcher"
          },
          "X-Sanctionary-Response-SHA256": {
            "$ref": "#/components/headers/X-Sanctionary-Response-SHA256"
          },
          "X-Credits-Charged": {
            "$ref": "#/components/headers/X-Credits-Charged"
          },
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Retry-After": {
            "description": "Seconds until retry, sent only for busy.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "headers": {
      "X-Request-Id": {
        "description": "The request's ID, a UUIDv7 we make. With the other receipt headers and the client's copy of request and response: the receipt.",
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "x-mcp-meta": true,
        "required": true
      },
      "X-Sanctionary-Build": {
        "description": "The revision of the code that answered.",
        "schema": {
          "type": "string"
        },
        "x-mcp-meta": true,
        "required": true
      },
      "X-Sanctionary-Releases": {
        "description": "The domain releases read, `domain=release` joined by commas (absent where none was read).",
        "schema": {
          "type": "string"
        },
        "x-mcp-meta": true
      },
      "X-Sanctionary-Matcher": {
        "description": "The scorer and policy version, where a score was computed.",
        "schema": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "x-mcp-meta": true
      },
      "X-Sanctionary-Response-SHA256": {
        "description": "SHA-256 (hex) of the body as the client decodes it; through MCP, of the text block.",
        "schema": {
          "$ref": "#/components/schemas/Sha256"
        },
        "x-mcp-meta": true,
        "required": true
      },
      "X-Credits-Charged": {
        "description": "Credits this answer charged: 0 for a free one or a refusal.",
        "schema": {
          "type": "integer",
          "minimum": 0
        },
        "x-mcp-meta": true,
        "required": true
      },
      "X-Credits-Remaining": {
        "description": "Approximate balance after this answer's charge. Sent on successful authenticated calls for metered plans.",
        "schema": {
          "type": "integer",
          "minimum": 0
        },
        "x-mcp-meta": true
      },
      "X-RateLimit-Limit": {
        "schema": {
          "type": "integer"
        },
        "required": false,
        "description": "The bucket's burst capacity in requests. Omitted without an enforced request rate."
      },
      "X-RateLimit-Remaining": {
        "schema": {
          "type": "integer"
        },
        "required": false,
        "description": "Whole request tokens currently available from the bucket. Omitted without an enforced request rate."
      },
      "X-RateLimit-Reset": {
        "description": "Whole seconds until the bucket is full if no more requests arrive. Omitted without an enforced request rate.",
        "schema": {
          "type": "integer"
        },
        "required": false
      },
      "Retry-After": {
        "description": "Seconds to wait before retrying.",
        "schema": {
          "type": "integer"
        },
        "x-mcp-meta": true,
        "required": true
      },
      "WWW-Authenticate": {
        "description": "Bearer authentication challenge.",
        "required": true,
        "schema": {
          "type": "string",
          "const": "Bearer"
        }
      },
      "Allow": {
        "description": "The methods supported by this path.",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "securitySchemes": {
      "key": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "sanc_v1_",
        "description": "`Authorization: Bearer sanc_v1_...`, never in a URL or body. A requirement's list names the key scopes the operation needs (Scope); an empty list: any key of the account. Bearer is case-insensitive."
      }
    }
  },
  "x-capabilities": {
    "since": {
      "available": false,
      "description": "`since` on `check` and `entities_resolve`: until available, a section's `delta` answers `complete: false` with `recheck: history_unavailable`, and a resolve item `history_unavailable`."
    },
    "history": {
      "available": false,
      "description": "`entities_history`."
    },
    "ownership": {
      "available": false,
      "description": "`entities_ownership`."
    },
    "company_search": {
      "available": false,
      "description": "`search` in `companies`."
    }
  },
  "x-bounds": {
    "candidates_per_answer": 5000,
    "response_bytes": 10000000,
    "body_bytes": 2000000,
    "ownership_nodes": 500,
    "mcp_candidates_per_answer": 500,
    "mcp_response_bytes": 1000000
  },
  "x-recipes": {
    "supplier": [
      "companies",
      "sanctions",
      "export_control",
      "insolvency",
      "tax"
    ],
    "payment": [
      "tax",
      "sanctions"
    ],
    "tender": [
      "companies",
      "sanctions",
      "export_control",
      "debarment",
      "insolvency",
      "tax"
    ],
    "business_customer": [
      "companies",
      "sanctions"
    ],
    "person": [
      "sanctions",
      "peps"
    ],
    "shipment": [
      "sanctions",
      "export_control"
    ]
  },
  "x-domains": {
    "sanctions": {
      "legal_persons_only": false,
      "account_check": false
    },
    "export_control": {
      "legal_persons_only": false,
      "account_check": false
    },
    "debarment": {
      "legal_persons_only": false,
      "account_check": false
    },
    "peps": {
      "legal_persons_only": false,
      "account_check": false
    },
    "crime": {
      "legal_persons_only": false,
      "account_check": false
    },
    "insolvency": {
      "legal_persons_only": true,
      "account_check": false
    },
    "tax": {
      "legal_persons_only": true,
      "account_check": true
    },
    "companies": {
      "legal_persons_only": true,
      "account_check": false
    },
    "regulatory": {
      "legal_persons_only": false,
      "account_check": false
    }
  },
  "x-problems": {
    "malformed_json": {
      "status": 400,
      "title": "Malformed JSON",
      "description": "The body is not one JSON object."
    },
    "invalid_cursor": {
      "status": 400,
      "title": "Invalid cursor",
      "description": "The cursor is not one this account was given for this query."
    },
    "unauthenticated": {
      "status": 401,
      "title": "Unauthenticated",
      "description": "No key, or one revoked or unknown."
    },
    "credits_exhausted": {
      "status": 402,
      "title": "Credits exhausted",
      "description": "The account's credits cannot cover the parties; `required` and `available` say how many. Nothing was done."
    },
    "forbidden_scope": {
      "status": 403,
      "title": "Scope missing",
      "description": "The key lacks the scope the operation needs."
    },
    "account_suspended": {
      "status": 403,
      "title": "Account suspended",
      "description": "The account may not be served."
    },
    "not_found": {
      "status": 404,
      "title": "Not found",
      "description": "No such entity, key or dataset for this caller: an ID this tier was never served, or a removed one past its notice."
    },
    "version_changed": {
      "status": 409,
      "title": "Version changed",
      "description": "The entity's served version is no longer the one asked for (`version`): recheck it."
    },
    "release_changed": {
      "status": 409,
      "title": "Release changed",
      "description": "The cursor's releases are no longer served: start again."
    },
    "entity_removed": {
      "status": 410,
      "title": "Entity removed",
      "description": "An ID this tier was served that was removed, suppressed or is now seen only by another tier, through its notice window; no reason or successor is given."
    },
    "payload_too_large": {
      "status": 413,
      "title": "Payload too large",
      "description": "The body is over `body_bytes`."
    },
    "unsupported_media_type": {
      "status": 415,
      "title": "Unsupported media type",
      "description": "The body is not `application/json`."
    },
    "invalid_request": {
      "status": 422,
      "title": "Invalid request",
      "description": "The request breaks the schema. Each entry in `errors` locates the problem as specified by `Problem.errors[].pointer`."
    },
    "answer_too_large": {
      "status": 422,
      "title": "Answer too large",
      "description": "Parties x domains x limit could pass `candidates_per_answer` (through MCP, `mcp_candidates_per_answer`), refused whole before work; or the serialized body would pass `response_bytes` (through MCP, `mcp_response_bytes`, measured on the body the text block carries), refused whole after work. Never cut by party, never charged."
    },
    "rate_limited": {
      "status": 429,
      "title": "Rate limited",
      "description": "The request bucket or concurrent check cap was reached. The bound names request_burst or concurrent_checks and gives the applicable limit. Retry-After says when to retry."
    },
    "internal": {
      "status": 500,
      "title": "Internal error",
      "description": "Our fault; nothing was charged."
    },
    "not_available": {
      "status": 501,
      "title": "Not available",
      "description": "The operation or option needs a capability not yet available (`capability`); the catalog lists each."
    },
    "busy": {
      "status": 503,
      "title": "Busy",
      "description": "Every slot is taken; `Retry-After` says when to retry."
    },
    "no_release": {
      "status": 503,
      "title": "No release",
      "description": "An entity read needs a release, or none of the readable domains has a release for resolve. The problem lists the readable domains without a release and omits Retry-After. A check answers in band. It reports a missing release as unavailable and a withheld domain as not_in_tier, in its section and meta. Search without a readable domain release returns an empty result at no charge, and search outside the key's tier is refused 403 `forbidden_scope`."
    },
    "method_not_allowed": {
      "status": 405,
      "title": "Method not allowed",
      "description": "The path exists but does not accept this method. The Allow header lists its methods."
    }
  },
  "x-mcp": {
    "path": "/v1/mcp",
    "protocolVersion": "2025-06-18",
    "description": "One JSON-RPC route beside REST, the same handlers and keys. `tools/call` names the operation; its arguments are the REST body, or the path and query fields. An answer is `isError: false` with `structuredContent` the REST body and one text block its exact serialized bytes (whose SHA-256 the receipt states); a refusal is `isError: true` with the problem body the same way, so a tool's output schema is its answer or the problem. `_meta` carries the headers marked `x-mcp-meta` in lower case: the receipt, and on a refusal `retry-after`. Read tools have the same page defaults as REST. The check tool has a lower candidate limit by default. The server answers `ping` with an empty result. For check, an answer is admitted against `mcp_candidates_per_answer`, and `mcp_response_bytes` bounds the body the text block carries (the envelope holds it twice). An example names a tool and one of its operation's examples, so both transports send one request (openapi/generated/mcp-examples.json). Account, keys and usage are REST only.",
    "examples": {
      "n_check": {
        "summary": "A check through MCP: example f's request (map n; the site's agent recipe)",
        "x-case": null,
        "tool": "check",
        "arguments": "f_person_former_pep"
      },
      "mcp_refused": {
        "summary": "A refused call: `isError` with the problem body",
        "x-case": null,
        "tool": "check",
        "arguments": "m_error"
      },
      "mcp_tools_list": {
        "summary": "The tool list, equal to the generated one",
        "x-case": null,
        "method": "tools/list"
      },
      "mcp_rate_limited": {
        "summary": "A call over the plan's rate: `isError` with the problem, `retry-after` in `_meta`",
        "x-case": null,
        "result": {
          "isError": true,
          "structuredContent": {
            "type": "https://api.sanctionary.org/problems/rate_limited",
            "title": "Rate limited",
            "status": 429,
            "code": "rate_limited",
            "request_id": "0193f1c2-7a4e-7c1b-9e55-2f0d6a1b9c3f",
            "charged": 0,
            "bound": {
              "name": "request_burst",
              "value": 2
            }
          },
          "content": [
            {
              "type": "text",
              "text": "{\"type\":\"https://api.sanctionary.org/problems/rate_limited\",\"title\":\"Rate limited\",\"status\":429,\"code\":\"rate_limited\",\"request_id\":\"0193f1c2-7a4e-7c1b-9e55-2f0d6a1b9c3f\",\"charged\":0,\"bound\":{\"name\":\"request_burst\",\"value\":2}}"
            }
          ],
          "_meta": {
            "x-request-id": "0193f1c2-7a4e-7c1b-9e55-2f0d6a1b9c3f",
            "x-sanctionary-build": "b-0001",
            "x-sanctionary-response-sha256": "5b3c68709f836467eac40333949ae5fbe033bf25c42b8c9272bfeaa8cf86033a",
            "x-credits-charged": "0",
            "retry-after": "10"
          }
        },
        "tool": "check"
      }
    }
  },
  "x-charge": {
    "description": "A delivered check costs one credit per party with a conclusive result in any domain. A completed screening negative counts. In a general register only a found record counts. A data read costs one per answer delivering records or conclusive resolution, including continuation pages. Search costs one for a page with records or a screening negative after complete retrieval of all selected in-scope lists within their freshness bounds, and 0 when the domain has none (no release) or an empty search is inconclusive. Refusals, incomplete deliveries, account administration and discovery (catalog, datasets and sources) cost zero. An unmetered plan records only requests.",
    "usable": {
      "identifiers.result": [
        "found",
        "not_found"
      ],
      "accounts.result": [
        "listed",
        "not_listed"
      ],
      "checked": [
        "names"
      ]
    },
    "register_domains": [
      "companies"
    ],
    "operations": {
      "check": "party",
      "search": "search",
      "entities": "entity",
      "entities_statements": "page",
      "entities_relationships": "page",
      "entities_history": "page",
      "entities_ownership": "ownership",
      "entities_resolve": "resolve",
      "catalog": "free",
      "datasets": "free",
      "sources": "free",
      "account": "free",
      "keys": "free",
      "keys_revoke": "free",
      "usage": "free",
      "openapi": "free",
      "guide": "free"
    }
  },
  "x-receipt": [
    "X-Request-Id",
    "X-Sanctionary-Build",
    "X-Sanctionary-Response-SHA256",
    "X-Credits-Charged"
  ],
  "x-scopes": {
    "registers": {
      "description": "Without it, a key gets no register data through any operation that can return it; the answer discloses nothing a key without it could not know.",
      "domains": [
        "companies"
      ],
      "answers": {
        "check": "the `companies` section answers `not_in_tier`",
        "search": "`companies` refused 403 `forbidden_scope`",
        "entities": "a `companies` ID answers 404 `not_found`: no key without the scope was ever served one",
        "entities_statements": "as `entities`",
        "entities_relationships": "as `entities`; an end in `companies` seen from another domain is a `key`, never an `id`",
        "entities_history": "as `entities`",
        "entities_ownership": "as `entities`; a walk from another domain stops at a `companies` end, declared `truncated`",
        "entities_resolve": "a `companies` ID or reference answers `unknown`; a number's `companies` change is `not_in_tier`"
      }
    }
  },
  "x-key-format": {
    "scoped_prefix": "sanc_v1_",
    "random_bytes": 32
  },
  "x-identifier-schemes": {
    "aircraft_registration": {
      "description": "An aircraft's registration mark."
    },
    "bic": {
      "description": "A business identifier code (SWIFT BIC)."
    },
    "crypto_wallet": {
      "description": "A crypto wallet address, the same scheme as wallet.",
      "requires": [
        "network"
      ]
    },
    "imo": {
      "description": "An IMO ship identification number."
    },
    "isin": {
      "description": "An International Securities Identification Number."
    },
    "lei": {
      "description": "A Legal Entity Identifier."
    },
    "mmsi": {
      "description": "A Maritime Mobile Service Identity."
    },
    "national_id": {
      "description": "A national identity number in its issuing country."
    },
    "other": {
      "description": "A number without a more specific scheme."
    },
    "passport": {
      "description": "A passport number in its issuing country."
    },
    "registration": {
      "description": "A company registration number in its issuing country.",
      "requires": [
        "country"
      ]
    },
    "tax": {
      "description": "A tax number in its issuing country."
    },
    "wallet": {
      "description": "A crypto wallet address. EVM hex is lowercased. Other address encodings are case-exact.",
      "requires": [
        "network"
      ]
    }
  },
  "x-fallback-problems": {
    "404": [
      "not_found"
    ],
    "405": [
      "method_not_allowed"
    ]
  },
  "x-rate-bounds": [
    "concurrent_checks",
    "request_burst"
  ]
}
