{
  "openapi": "3.0.1",
  "info": {
    "title": "Transatlantic KYB, LEI Ownership & Sanctions Screening MCP",
    "description": "Commercial-clean official company registry lookup (FR, UK, NO, FI, GLEIF LEI ownership trees, US SEC/Form D), sovereign sanctions XML fuzzy-match candidates (OFAC, UN, UK FCDO, EU FSF), and single on-demand EU VIES VAT check.",
    "version": "1.0",
    "x-build-id": "MhOVie7xuJrd7xBLE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hgreene624~transatlantic-kyb-sanctions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hgreene624-transatlantic-kyb-sanctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/hgreene624~transatlantic-kyb-sanctions/runs": {
      "post": {
        "operationId": "runs-sync-hgreene624-transatlantic-kyb-sanctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/hgreene624~transatlantic-kyb-sanctions/run-sync": {
      "post": {
        "operationId": "run-sync-hgreene624-transatlantic-kyb-sanctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "queries": {
            "title": "Target Company Names or Identifiers",
            "type": "array",
            "description": "Company names or official registration IDs to look up and screen. Optional when running a standalone singleVatCheck in Batch mode. Example: [\"Airbus\"] or [\"383474814\", \"MINO79WLOO247M1IL051\"].",
            "items": {
              "type": "string"
            }
          },
          "registries": {
            "title": "Official Registries to Query",
            "type": "array",
            "description": "Official commercial-clean registries to query. Allowed codes: FR (France INSEE/RNE), UK (Companies House), NO (Norway BRREG), FI (Finland PRH v3), GLEIF (Global LEI), US_SEC (US SEC EDGAR / Form D). Aliases GB->UK and US/SEC->US_SEC are normalized; unrecognized codes raise a clear validation error instead of silently dropping. Quick Console QA prefill queries [\"FR\", \"GLEIF\"] for <10s testing; omitting registries via API/MCP defaults to all 6 registries. Charged $0.015 per query across selected registries only when >=1 match is found.",
            "items": {
              "type": "string"
            },
            "default": [
              "FR",
              "UK",
              "NO",
              "FI",
              "GLEIF",
              "US_SEC"
            ]
          },
          "includeOwnershipTree": {
            "title": "Include GLEIF LEI Ownership Tree",
            "type": "boolean",
            "description": "Traverse GLEIF Level 2 direct-parent, ultimate-parent, reporting exceptions, and direct-children (up to 25) plus UK PSC summary when available (+$0.010 add-on charged only when ownership data is retrieved).",
            "default": true
          },
          "includeSanctions": {
            "title": "Include Sovereign Sanctions List Lookup",
            "type": "boolean",
            "description": "Screen raw query and resolved official legal name against selected public sovereign sanctions XML lists returning explainable fuzzy-match candidates and mandatory screeningDisclaimer (+$0.018 charged ONLY when 100% of requested lists succeed).",
            "default": true
          },
          "sanctionsLists": {
            "title": "Sovereign Sanctions XML Lists",
            "type": "array",
            "description": "Quick QA prefill uses UN only for <10s test — add OFAC, UK, EU for full transatlantic screening. Omitting sanctionsLists via API/MCP defaults to all 4 sovereign lists: [\"OFAC\", \"UN\", \"UK\", \"EU\"]. Allowed codes: OFAC (~30 MB US SDN), UN (~2.2 MB), UK (~22 MB FCDO OGL v3.0), EU (~26 MB FSF). Unrecognized codes raise a clear validation error instead of silently skipping.",
            "items": {
              "type": "string"
            },
            "default": [
              "OFAC",
              "UN",
              "UK",
              "EU"
            ]
          },
          "screenRelatedParties": {
            "title": "Also Screen Top Officers / PSCs / Parent Entities",
            "type": "boolean",
            "description": "Opt-in: additionally screen up to 5 resolved corporate officers, PSCs, and GLEIF parent entity names against the selected sanctions lists. Included in the single $0.018 kyb-sanctions-screen event per entity (1x charge total, never 6x).",
            "default": false
          },
          "minMatchScore": {
            "title": "Minimum Sanctions Match Score",
            "minimum": 0.5,
            "maximum": 1,
            "type": "number",
            "description": "Minimum deterministic composite fuzzy-match score (0.50 to 1.00; default 0.78). Lower values increase recall; higher values tighten precision.",
            "default": 0.78
          },
          "maxSanctionsCandidates": {
            "title": "Max Sanctions Candidates per Entity",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum explainable candidate matches returned per screened entity (1..50).",
            "default": 10
          },
          "ukCompaniesHouseApiKey": {
            "title": "UK Companies House API Key (Optional BYOK)",
            "type": "string",
            "description": "Optional Bring-Your-Own UK Companies House REST API key for faster authenticated JSON lookups. Leave blank to use the built-in zero-key public Companies House fallback. Never logged or echoed."
          },
          "singleVatCheck": {
            "title": "Single On-Demand EU VIES VAT Check (Optional, Max 1)",
            "type": "object",
            "description": "Strictly ONE transaction-time EU VIES VAT lookup: {\"countryCode\": \"FR\", \"vatNumber\": \"89383474814\"}. Bulk or multi-VAT arrays are strictly forbidden and rejected ($0.008 charged only on definitive valid/invalid verdict; waived on member-state throttling)."
          },
          "maxEntities": {
            "title": "Max Entities",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of target queries processed in this batch run (1..500; Console prefill is 100, API default is 25, Apify Free plan automatically capped at 25 preview entities).",
            "default": 25
          },
          "maxMatchesPerRegistry": {
            "title": "Max Matches per Registry",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum entity records returned per queried registry for each target query (1..5).",
            "default": 3
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum target entities processed concurrently in batch mode (1..10; polite per-host rate limits always enforced).",
            "default": 3
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}