{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bynn-com/json-schema/bynn-com-post-aml-search-schema.json",
  "title": "postAmlSearch",
  "description": "Search AML data (sanctions, PEP & watchlists)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bynn-com-aml-api-openapi.yml#/components/schemas/postAmlSearch",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name to screen against the AML data."
    },
    "type": {
      "type": "string",
      "description": "What to search for: a `person` or an entity (`company` / `organization` / `legal_entity`).",
      "enum": [
        "person",
        "company",
        "organization",
        "legal_entity"
      ],
      "default": "person"
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum number of matches to return (default 10, max 50).",
      "minimum": 1,
      "maximum": 50,
      "default": 10
    }
  },
  "required": [
    "name"
  ]
}