{
  "openapi": "3.0.1",
  "info": {
    "title": "US Treasury Circular 570 Surety & Reinsurer KYB Screener",
    "description": "Verify US Treasury Circular 570 Certified Corporate Sureties & Recognized Reinsurers (31 CFR Part 223). Extract NAIC codes, FEINs, single-bond Underwriting Limitations ($ USD), 10% PHS, State Surety Licenses, addresses, phones, 31 CFR bond adequacy checks, and supplemental delta alerts.",
    "version": "1.0",
    "x-build-id": "FERgmhcfuA9KXvT3I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/regpulse-data~us-treasury-circular-570-surety-reinsurer-kyb/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-regpulse-data-us-treasury-circular-570-surety-reinsurer-kyb",
        "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/regpulse-data~us-treasury-circular-570-surety-reinsurer-kyb/runs": {
      "post": {
        "operationId": "runs-sync-regpulse-data-us-treasury-circular-570-surety-reinsurer-kyb",
        "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/regpulse-data~us-treasury-circular-570-surety-reinsurer-kyb/run-sync": {
      "post": {
        "operationId": "run-sync-regpulse-data-us-treasury-circular-570-surety-reinsurer-kyb",
        "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": {
          "mode": {
            "title": "Operating Mode",
            "enum": [
              "surety_and_reinsurer_search",
              "bond_adequacy_check",
              "reinsurers_directory",
              "watchlist_changes"
            ],
            "type": "string",
            "description": "Select the workflow: (1) 'surety_and_reinsurer_search' screens and enriches all 5 Circular 570 surety & reinsurer tiers; (2) 'bond_adequacy_check' evaluates whether matched sureties legally qualify to underwrite a specific bond amount ($ USD) and US state/territory under 31 CFR Part 223; (3) 'reinsurers_directory' extracts Certified, Admitted (with FEIN & 10% PHS), Complementary & Alien Reinsurers; (4) 'watchlist_changes' emits delta alerts for newly certified, revoked, or limit/license-modified companies.",
            "default": "surety_and_reinsurer_search"
          },
          "searchQueries": {
            "title": "Company Name / NAIC / FEIN / Reinsurer # Search",
            "type": "array",
            "description": "Optional list of company names, NAIC numbers (e.g. '22667'), FEINs (e.g. '05-0254496'), RJ/CR Reinsurer Numbers (e.g. 'RJ-1120660'), or cities. Leave empty to match all entities.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Treasury Authorization Categories",
            "type": "array",
            "description": "Filter by specific US Treasury 31 CFR Part 223 authorization tiers ('CERTIFIED_SURETY', 'CERTIFIED_REINSURER', 'ADMITTED_REINSURER', 'COMPLEMENTARY_REINSURER', 'ALIEN_REINSURER'). Leave empty to include all applicable tiers for the selected mode.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "licensedStates": {
            "title": "Required State / Territory Surety Licenses (2-Letter Codes)",
            "type": "array",
            "description": "Filter sureties licensed in specific US states or territories (e.g. ['CA', 'NY', 'TX', 'PR', 'GU', 'DC']), or Lead States for Complementary/Alien Reinsurers.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "requireAllLicensedStates": {
            "title": "Require ALL Listed State Licenses (AND Match)",
            "type": "boolean",
            "description": "When true, an entity must hold surety licenses in EVERY state listed in 'licensedStates'. When false (default), matching ANY listed state suffices.",
            "default": false
          },
          "incorporationOrDomicile": {
            "title": "Incorporation State or Foreign Domicile Filter",
            "type": "array",
            "description": "Filter by incorporation state or foreign domiciliary jurisdiction (e.g. ['Delaware', 'Pennsylvania', 'Bermuda', 'Switzerland', 'United Kingdom', 'Germany']).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minUnderwritingLimitUsd": {
            "title": "Minimum Single-Bond Underwriting Limit / 10% PHS ($ USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum Treasury Underwriting Limitation ($ USD) — or 10% Policyholders' Surplus ($ USD) for Admitted Reinsurers. Set 0 for no minimum.",
            "default": 0
          },
          "maxUnderwritingLimitUsd": {
            "title": "Maximum Single-Bond Underwriting Limit / 10% PHS ($ USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum Treasury Underwriting Limitation ($ USD). Set 0 for no upper bound.",
            "default": 0
          },
          "bondAmountUsd": {
            "title": "Bond Penal Sum to Verify ($ USD — Bond Adequacy Check)",
            "minimum": 0,
            "type": "number",
            "description": "Optional contract/customs bond penal sum in USD (e.g. 25000000 for a $25M Miller Act performance bond). Computes 'meetsBondUnderwritingLimit', 'excessRiskAmountUsd', and 'bondComplianceStatus' under 31 CFR §§ 223.10–223.11.",
            "default": 0
          },
          "requiredLicenseState": {
            "title": "Bond Performance State / Territory (2-Letter Code)",
            "type": "string",
            "description": "Optional 2-letter US state or territory code (e.g. 'CA', 'TX', 'NY', 'PR') where the bonded contract is performed. Verifies whether the surety holds an active surety license in that jurisdiction.",
            "default": ""
          },
          "stateStoreName": {
            "title": "Watchlist Named Key-Value Store",
            "type": "string",
            "description": "Named Apify Key-Value Store persisting the baseline Circular 570 snapshot across scheduled 'watchlist_changes' runs.",
            "default": "c570-surety-watchlist-state"
          },
          "maxResults": {
            "title": "Max Results to Deliver (Pay-Per-Event Cap)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum records pushed to the dataset and billed via Pay-Per-Event. Set 0 for unlimited (full registry ~380 entities).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}