{
 "openapi": "3.1.0",
 "info": {
  "title": "BreachSpider API",
  "description": "Find the CVEs that affect industrial (ICS/OT) and IT devices at their exact firmware version. Each finding comes with its source, and with the fix and vendor advisory where known.\n\n**Get a key:** [start the free trial](https://breachspider.com/developers/start) (14 days, 750 device checks, no card needed) or [choose a plan](https://breachspider.com/developers/pricing). Send it as `Authorization: Bearer bs_live_...`.\n\n**Limits:** 60 requests a minute per key on the device and Windows endpoints. Devices per request: 25 on the free trial, 25 to 200 on paid plans. Device checks stop when an allowance runs out; there is no automatic overage charge.\n\n**Reading results:** a result with no CVEs does not mean a device is secure. Read `coverage` and `warnings`, which say what could not be checked.\n\n**Help:** [developer page](https://breachspider.com/developers), [documentation](https://breachspider.com/docs/api/overview/), [support](https://breachspider.com/support).",
  "contact": {
   "name": "BreachSpider support",
   "url": "https://breachspider.com/support"
  },
  "license": {
   "name": "Proprietary - CITED Relevance LLC",
   "url": "https://breachspider.com/terms"
  },
  "version": "1.0.0"
 },
 "externalDocs": {
  "description": "API documentation",
  "url": "https://breachspider.com/docs/api/overview/"
 },
 "tags": [
  {
   "name": "Devices",
   "description": "Check devices by vendor, product and firmware version."
  },
  {
   "name": "CVEs",
   "description": "Look up and search CVEs."
  },
  {
   "name": "Catalog",
   "description": "Find vendor and product names."
  },
  {
   "name": "Windows",
   "description": "Check Windows hosts by build number."
  },
  {
   "name": "Status",
   "description": "Check that the API is up."
  }
 ],
 "servers": [
  {
   "url": "https://breachspider.com"
  }
 ],
 "security": [
  {
   "bearerAuth": []
  }
 ],
 "paths": {
  "/api/v1/assets/correlate-cves": {
   "post": {
    "tags": [
     "Devices"
    ],
    "summary": "Check devices",
    "description": "Find the CVEs that affect each device at its exact firmware version, with the affected range, its source, the fix and the vendor's advisory.\n\nSend vendor, product and version as your inventory writes them. Use a neutral `asset_id` such as PLC-01. Never send host names, IP or MAC addresses, serial numbers, email addresses, user names or site names.\n\nKeep `result_hash`, `status_hash` and `status_facts` to check for changes later. **Cost:** 1 device check per distinct device.\n\n**Access:** demo access (example devices only), free trial, paid API plans.",
    "operationId": "correlate_cves_api_v1_assets_correlate_cves_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CorrelateRequest"
       },
       "example": {
        "assets": [
         {
          "asset_id": "SWITCH-01",
          "vendor": "Moxa",
          "product": "EDS-518A",
          "version": "V3.5"
         }
        ]
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "x-warning-codes": {
     "NO_VERSION_SUPPLIED": "No version was sent; every CVE is PRODUCT_WIDE.",
     "VERSION_NOT_USED_FOR_RESOLUTION": "A version was sent but has no numeric form the resolver can use (for example R3.02.10); it was not used to identify the product and is still used for CVE matching.",
     "VERSION_FROM_FIRMWARE": "No version; firmware_version was used for matching.",
     "PRODUCT_WIDE_MATCH": "At least one CVE applies with no version bound.",
     "TIA_DEVICE_LABEL": "The product was sent as a TIA Portal device label ('PLC_1 [CPU 1516F-3 PN/DP]'); the text in brackets was matched.",
     "SOURCE_CONFLICT_RESOLVED": "A vendor advisory or CSAF range or fix decided over a generic record (NVD range, record without versions); each CVE's source_conflicts names what was overridden.",
     "ALSO_CHECKED_AS": "The device was also checked under a second identity it has (the operating system it runs); CVEs found only that way say so.",
     "PRODUCT_ALIAS_APPLIED": "The device was matched through an alias: the vendor's operating system its version names, an approved catalog alias, or a curated catalog name.",
     "MODEL_VARIANT_IGNORED": "The full model did not resolve; its supply or IO variant was left out and the base model matched.",
     "VERSION_PROGRAM_CODE": "The version names a firmware program (ABB drives: AINLX, ASCD2); only ranges written for the same program were compared, so the device needs review.",
     "HARDWARE_VERSION_NOT_CONFIRMED": "Some CVEs depend on the exact hardware (order number, series or model); they are listed, not confirmed. Send the order number, or check the advisory.",
     "MODEL_FOUND_IN_NAME": "The name as written did not resolve; bracketed text was left out, an order number in it was used, or the vendor's catalog model was found inside the name (single longest match only).",
     "NO_CPE_DATA": "No CVE data behind the resolved product; result undetermined.",
     "NO_MATCHING_RANGE": "The product has affected-range data but none contains this version (structured sources only).",
     "PRODUCT_UNRESOLVED": "The product could not be identified, so no correlation ran; undetermined, not clean.",
     "KNOWN_PRODUCT_NO_CVES_IN_SOURCES": "The product is in the vendor's own product or lifecycle list but no vulnerability source we hold names it; still needs review (known_product names the list and date).",
     "MODEL_NOT_SPECIFIED": "Resolved to a model family; send a specific model for a complete result.",
     "NEEDS_REVIEW": "Below min_confidence, or no data: do not read as clean.",
     "SERIES_ASSUMED": "The matched product names a hardware series the input did not give; send the series.",
     "VERSION_NORMALIZED": "The version was read in the vendor's own notation (Schneider Electric 3.4 as 3.40).",
     "VERSION_SCHEME_MISMATCH": "A range bound uses another numbering than the device version (model, family or build number); those CVEs were not compared and need review. cve_ids names them.",
     "VERSION_BUILD_NOT_COMPARED": "The records list the release without its build (22.7 for 22.7R2); those CVEs match on the release and need review. cve_ids names them.",
     "VERSION_NEWER_THAN_KNOWN": "The version is newer than the latest release held for the product; check it, the result needs review.",
     "VERSION_UNREADABLE": "The version had no readable number (for example 'latest' or 'unknown'); it was not used, every CVE is product-wide, and the result needs review.",
     "FIRMWARE_UNPARSEABLE": "The version is not comparable; treated as absent.",
     "VERSION_SUFFIX_APPROXIMATE": "Version has letters or brackets; ordering approximate.",
     "VERSION_SUFFIX_IGNORED": "A space-separated suffix was dropped.",
     "AMBIGUOUS_RESOLUTION": "Several close candidates; see candidates[].",
     "GENERIC_FAMILY_NAME": "The product is a generic family name; candidates are offered.",
     "CANONICAL_SELECTED": "Close candidates were variants of the exact-name product; that product was chosen.",
     "FAMILY_ONLY_MATCH": "Only the product family matched; send the exact model or order number for a complete check.",
     "LIKELY_NOT_AFFECTED": "CVEs with no version limit in the CVE record whose vendor-stated fixed version is at or below the device version; listed, not open, needs review. cve_ids names them.",
     "PRODUCT_LINE_ADDED": "Matched after adding the vendor's product-line name (for example SIMATIC) in front of the model.",
     "EXACT_NAME_SELECTED": "The name sent matches one product exactly; close candidates name another edition or model.",
     "CVE_SET_SHARED": "Several catalog models fit and carry exactly the same CVEs; matched to one, needs review.",
     "VENDOR_SPELLING_CORRECTED": "The vendor was not in the catalog and was read as the closest spelling; check it.",
     "VENDOR_ALIAS_APPLIED": "Vendor spelling mapped to its canonical name.",
     "VENDOR_RESOLVED_PRODUCT_NOT_FOUND": "Vendor recognised, product not found.",
     "SKU_MAP_APPLIED": "A curated model or order-code pattern was used.",
     "SKU_MAP_DISAMBIGUATED": "A curated model or order-code pattern chose between candidates.",
     "SERIES_SUFFIX_DISAMBIGUATED": "A catalog-number series suffix picked the product.",
     "LEADING_TOKEN_RESOLVED": "Resolved via the model's leading identifier.",
     "NAME_SIMPLIFIED": "Matched after leaving out a release line, bracketed text or the word family / variant.",
     "VENDOR_LIST_SPLIT": "The vendor named several companies; the product was found under one of them.",
     "PART_NUMBER_RESOLVED": "The product text did not resolve; the submitted part_number identified the product.",
     "BARE_NUMBER_MODEL": "The model is only a short number; candidates are offered, nothing is resolved.",
     "WINDOWS_DISAMBIGUATED": "Windows release chosen from the name or build.",
     "OS_BUILD_RELEASE_UNCERTAIN": "Windows release mapping from the build is not fully certain.",
     "WINDOWS_RELEASE_TOKEN_NOT_COMPARED": "A Windows release label was sent where ranges are OS builds; not compared.",
     "WINDOWS_RELEASE_PARTIAL": "Only part of the Windows release could be compared."
    }
   }
  },
  "/api/v1/assets/correlate-cves/check": {
   "post": {
    "tags": [
     "Devices"
    ],
    "summary": "Check for changes",
    "description": "Ask whether anything changed since an earlier check. Send the `result_hash`, `status_hash` and `status_facts` you kept. **Cost:** a tenth of a device check per device.\n\n**Access:** demo access (example devices only), free trial, paid API plans.",
    "operationId": "correlate_cves_check_api_v1_assets_correlate_cves_check_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CheckRequest"
       },
       "example": {
        "assets": [
         {
          "asset_id": "SWITCH-01",
          "vendor": "Moxa",
          "product": "EDS-518A",
          "version": "V3.5",
          "result_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
         }
        ]
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalog/products": {
   "get": {
    "tags": [
     "Catalog"
    ],
    "summary": "Find a product",
    "description": "Find a vendor's products as BreachSpider names them. `vendor_id` is required. Returns up to 15 matches.\n\n**Access:** demo access and paid API plans. Free trial keys can't use this endpoint.",
    "operationId": "search_products_api_v1_catalog_products_get",
    "parameters": [
     {
      "name": "vendor_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "description": "Required. Numeric vendor ID to filter products by. Get vendor IDs from /api/v1/catalog/vendors.",
       "title": "Vendor Id"
      },
      "description": "Required. Numeric vendor ID to filter products by. Get vendor IDs from /api/v1/catalog/vendors."
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "maxLength": 100,
       "default": "",
       "title": "Q"
      }
     },
     {
      "name": "group_firmware",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "Optional. true folds an 'X Firmware' product under 'X' (as firmware_entry) so the pair takes one of the 15 results. Display only; both stay separate catalog products.",
       "default": false,
       "title": "Group Firmware"
      },
      "description": "Optional. true folds an 'X Firmware' product under 'X' (as firmware_entry) so the pair takes one of the 15 results. Display only; both stay separate catalog products."
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/catalog/vendors": {
   "get": {
    "tags": [
     "Catalog"
    ],
    "summary": "Find a vendor",
    "description": "Find a vendor's `id` and `slug`. Returns up to 10 matches.\n\n**Access:** demo access and paid API plans. Free trial keys can't use this endpoint.",
    "operationId": "search_vendors_api_v1_catalog_vendors_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "maxLength": 100,
       "default": "",
       "title": "Q"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/cves": {
   "get": {
    "tags": [
     "CVEs"
    ],
    "summary": "Search CVEs",
    "operationId": "list_cves_api_v1_cves_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Full-text search",
       "title": "Q"
      },
      "description": "Full-text search"
     },
     {
      "name": "vendor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Vendor slug or name",
       "title": "Vendor"
      },
      "description": "Vendor slug or name"
     },
     {
      "name": "protocol",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Protocol name",
       "title": "Protocol"
      },
      "description": "Protocol name"
     },
     {
      "name": "cvss_min",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number",
         "maximum": 10.0,
         "minimum": 0.0
        },
        {
         "type": "null"
        }
       ],
       "title": "Cvss Min"
      }
     },
     {
      "name": "cvss_max",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number",
         "maximum": 10.0,
         "minimum": 0.0
        },
        {
         "type": "null"
        }
       ],
       "title": "Cvss Max"
      }
     },
     {
      "name": "severity",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(CRITICAL|HIGH|MEDIUM|LOW)$"
        },
        {
         "type": "null"
        }
       ],
       "title": "Severity"
      }
     },
     {
      "name": "kev",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kev"
      }
     },
     {
      "name": "unpatched",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Unpatched"
      }
     },
     {
      "name": "has_exploit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Has Exploit"
      }
     },
     {
      "name": "patch_status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "patched|unpatched|partial|unknown",
       "title": "Patch Status"
      },
      "description": "patched|unpatched|partial|unknown"
     },
     {
      "name": "date_from",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "ISO date YYYY-MM-DD",
       "title": "Date From"
      },
      "description": "ISO date YYYY-MM-DD"
     },
     {
      "name": "date_to",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "ISO date YYYY-MM-DD",
       "title": "Date To"
      },
      "description": "ISO date YYYY-MM-DD"
     },
     {
      "name": "sort_by",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "date|cvss|epss",
       "title": "Sort By"
      },
      "description": "date|cvss|epss"
     },
     {
      "name": "ranked",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "Rank by watchlist relevance (auth required)",
       "default": false,
       "title": "Ranked"
      },
      "description": "Rank by watchlist relevance (auth required)"
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "per_page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "default": 20,
       "title": "Per Page"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "Search and filter CVEs by vendor, protocol, severity, score, known-exploited status, patch status and date.\n\n**Access:** demo access and paid API plans. Free trial keys can't use this endpoint."
   }
  },
  "/api/v1/cves/kev": {
   "get": {
    "tags": [
     "CVEs"
    ],
    "summary": "List known-exploited CVEs",
    "operationId": "kev_cves_api_v1_cves_kev_get",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "per_page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "default": 20,
       "title": "Per Page"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(cvss|date_added)$"
        },
        {
         "type": "null"
        }
       ],
       "description": "cvss (default) or date_added (newest additions first)",
       "title": "Sort"
      },
      "description": "cvss (default) or date_added (newest additions first)"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "CVEs in the CISA Known Exploited Vulnerabilities catalog. Use `sort=date_added` for the newest entries first.\n\n**Access:** demo access and paid API plans. Free trial keys can't use this endpoint."
   }
  },
  "/api/v1/cves/protocol/{name}": {
   "get": {
    "tags": [
     "CVEs"
    ],
    "summary": "List a protocol's CVEs",
    "operationId": "cves_by_protocol_api_v1_cves_protocol__name__get",
    "parameters": [
     {
      "name": "name",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Name"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "per_page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "default": 20,
       "title": "Per Page"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "CVEs linked to one industrial protocol, for example modbus, bacnet, opc-ua or ethernet-ip. `protocol.name` in the response says which protocol was used. A short or empty list does not mean the protocol is secure.\n\n**Access:** demo access and paid API plans. Free trial keys can't use this endpoint."
   }
  },
  "/api/v1/cves/vendor/{slug}": {
   "get": {
    "tags": [
     "CVEs"
    ],
    "summary": "List a vendor's CVEs",
    "operationId": "cves_by_vendor_api_v1_cves_vendor__slug__get",
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Slug"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "per_page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "default": 20,
       "title": "Per Page"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "CVEs for one vendor. Get the `slug` from Find a vendor.\n\n**Access:** demo access and paid API plans. Free trial keys can't use this endpoint."
   }
  },
  "/api/v1/cves/{cve_id}": {
   "get": {
    "tags": [
     "CVEs"
    ],
    "summary": "Get a CVE",
    "operationId": "get_cve_api_v1_cves__cve_id__get",
    "parameters": [
     {
      "name": "cve_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cve Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "One CVE with its severity, exploit probability (EPSS), known-exploited status, affected products and references.\n\n**Access:** demo access (example devices only), free trial, paid API plans."
   }
  },
  "/api/v1/health/ping": {
   "get": {
    "summary": "Check that the API is up",
    "description": "No key needed.",
    "operationId": "ping_api_v1_health_ping_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     }
    },
    "tags": [
     "Status"
    ],
    "security": []
   }
  },
  "/api/v2/assets/check-windows": {
   "post": {
    "tags": [
     "Windows"
    ],
    "summary": "Check Windows hosts",
    "operationId": "check_windows_api_v2_assets_check_windows_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CheckWindowsRequest"
       },
       "example": {
        "windows_hosts": [
         {
          "asset_id": "WIN-01",
          "os_product": "Windows Server 2019 Standard",
          "edition_id": "ServerStandard",
          "os_build": "10.0.17763.6189",
          "architecture": "x64",
          "installation_type": "Server",
          "collected_at": "2026-12-01T10:00:00Z"
         }
        ]
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "Find the missing Microsoft updates and open CVEs for a Windows host, from its build number. Nothing about the host is stored. Up to 25 hosts per request. Never send host names, IP or MAC addresses, serial numbers, email addresses, user names or site names. **Cost:** 1 device check per host.\n\n**Access:** paid API plans. Demo access and free trial keys can't use this endpoint."
   }
  },
  "/api/v2/assets/check-windows/changes": {
   "post": {
    "tags": [
     "Windows"
    ],
    "summary": "Check Windows hosts for changes",
    "description": "Ask whether a host's result changed since an earlier check. **Cost:** a tenth of a device check per host.\n\n**Access:** paid API plans. Demo access and free trial keys can't use this endpoint.",
    "operationId": "check_windows_changes_api_v2_assets_check_windows_changes_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CheckWindowsChangesRequest"
       },
       "example": {
        "windows_hosts": [
         {
          "asset_id": "WIN-01",
          "os_product": "Windows Server 2019 Standard",
          "edition_id": "ServerStandard",
          "os_build": "10.0.17763.6189",
          "architecture": "x64",
          "installation_type": "Server",
          "collected_at": "2026-12-01T10:00:00Z",
          "result_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
         }
        ]
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v2/assets/correlate": {
   "post": {
    "tags": [
     "Windows"
    ],
    "summary": "Save and check Windows hosts",
    "operationId": "correlate_v2_api_v2_assets_correlate_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CorrelateV2Request"
       },
       "example": {
        "environment_id": 1,
        "windows_hosts": [
         {
          "asset_id": "WIN-01",
          "os_product": "Windows Server 2019 Standard",
          "edition_id": "ServerStandard",
          "os_build": "10.0.17763.6189",
          "architecture": "x64",
          "installation_type": "Server",
          "collected_at": "2026-12-01T10:00:00Z"
         }
        ]
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "Check Windows hosts and save the results in one of your environments. Needs a read and write key.\n\n**Access:** customers who keep their inventory in the BreachSpider web app. API plans don't include this; use Check Windows hosts, which stores nothing."
   }
  },
  "/api/v2/assets/correlate-csv": {
   "post": {
    "tags": [
     "Windows"
    ],
    "summary": "Save and check Windows hosts from CSV",
    "description": "The same as Save and check Windows hosts, sent as a form with `environment_id`, `hosts` (CSV file) and optionally `software` (CSV file).\n\n**Access:** customers who keep their inventory in the BreachSpider web app. API plans don't include this; use Check Windows hosts, which stores nothing.",
    "operationId": "correlate_v2_csv_api_v2_assets_correlate_csv_post",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v2/assets/results": {
   "get": {
    "tags": [
     "Windows"
    ],
    "summary": "Read saved Windows results",
    "operationId": "results_v2_api_v2_assets_results_get",
    "parameters": [
     {
      "name": "environment_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Environment Id"
      }
     },
     {
      "name": "asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Asset Id"
      }
     },
     {
      "name": "include_cleared",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": true,
       "title": "Include Cleared"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "priority",
       "title": "Sort"
      }
     },
     {
      "name": "confirmed_only",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Confirmed Only"
      }
     },
     {
      "name": "known_exploited_only",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Known Exploited Only"
      }
     },
     {
      "name": "fix_available_only",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Fix Available Only"
      }
     },
     {
      "name": "cve_page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 1,
       "title": "Cve Page"
      }
     },
     {
      "name": "cve_page_size",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Cve Page Size"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "VALIDATION_ERROR: a field is missing or not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "AUTH_REQUIRED: the key is missing, invalid, expired or revoked.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Your key can't use this endpoint, or demo access was used for a device that is not an example.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Too many requests, or an allowance is used up. Retry only when `retryable` is true.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "Read the saved results for an environment.\n\n**Access:** customers who keep their inventory in the BreachSpider web app. API plans don't include this; use Check Windows hosts, which stores nothing."
   }
  }
 },
 "components": {
  "schemas": {
   "CheckAsset": {
    "properties": {
     "asset_id": {
      "type": "string",
      "title": "Asset Id"
     },
     "vendor": {
      "type": "string",
      "title": "Vendor"
     },
     "product": {
      "type": "string",
      "title": "Product"
     },
     "version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Version"
     },
     "firmware_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Firmware Version"
     },
     "product_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Product Type"
     },
     "part_number": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 100
       },
       {
        "type": "null"
       }
      ],
      "title": "Part Number"
     },
     "result_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Result Hash"
     },
     "status_hash": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^sha256:[0-9a-f]{64}$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status Hash",
      "description": "status_hash from the earlier correlate-cves result. When sent, the response also reports status_changed."
     },
     "status_facts": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status Facts",
      "description": "status_facts from the earlier result (optional). With it, each status change is named in reasons[]."
     }
    },
    "type": "object",
    "required": [
     "asset_id",
     "vendor",
     "product"
    ],
    "title": "CheckAsset"
   },
   "CheckOptions": {
    "properties": {
     "min_confidence": {
      "type": "string",
      "title": "Min Confidence",
      "default": "MEDIUM"
     }
    },
    "type": "object",
    "title": "CheckOptions"
   },
   "CheckRequest": {
    "properties": {
     "assets": {
      "items": {
       "$ref": "#/components/schemas/CheckAsset"
      },
      "type": "array",
      "title": "Assets"
     },
     "options": {
      "$ref": "#/components/schemas/CheckOptions",
      "default": {
       "min_confidence": "MEDIUM"
      }
     }
    },
    "type": "object",
    "required": [
     "assets"
    ],
    "title": "CheckRequest"
   },
   "CheckWindowsChangesRequest": {
    "properties": {
     "windows_hosts": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Windows Hosts",
      "default": []
     }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "CheckWindowsChangesRequest"
   },
   "CheckWindowsRequest": {
    "properties": {
     "windows_hosts": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Windows Hosts",
      "default": []
     },
     "options": {
      "$ref": "#/components/schemas/CorrelateV2Options",
      "default": {
       "include_cleared": true,
       "sort": "priority",
       "confirmed_only": false,
       "known_exploited_only": false,
       "fix_available_only": false,
       "cve_page": 1
      }
     }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "CheckWindowsRequest"
   },
   "CorrelateAsset": {
    "properties": {
     "asset_id": {
      "type": "string",
      "title": "Asset Id"
     },
     "vendor": {
      "type": "string",
      "title": "Vendor"
     },
     "product": {
      "type": "string",
      "title": "Product"
     },
     "version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Version"
     },
     "firmware_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Firmware Version"
     },
     "product_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Product Type"
     },
     "part_number": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 100
       },
       {
        "type": "null"
       }
      ],
      "title": "Part Number"
     }
    },
    "type": "object",
    "required": [
     "asset_id",
     "vendor",
     "product"
    ],
    "title": "CorrelateAsset"
   },
   "CorrelateOptions": {
    "properties": {
     "min_confidence": {
      "type": "string",
      "title": "Min Confidence",
      "default": "MEDIUM"
     },
     "include_capec": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Include Capec"
     },
     "cve_page": {
      "type": "integer",
      "title": "Cve Page",
      "default": 1
     },
     "cve_page_size": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cve Page Size"
     },
     "sort": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort",
      "default": "priority"
     },
     "confirmed_only": {
      "type": "boolean",
      "title": "Confirmed Only",
      "default": false
     },
     "known_exploited_only": {
      "type": "boolean",
      "title": "Known Exploited Only",
      "default": false
     },
     "fix_available_only": {
      "type": "boolean",
      "title": "Fix Available Only",
      "default": false
     }
    },
    "type": "object",
    "title": "CorrelateOptions"
   },
   "CorrelateRequest": {
    "properties": {
     "assets": {
      "items": {
       "$ref": "#/components/schemas/CorrelateAsset"
      },
      "type": "array",
      "title": "Assets"
     },
     "options": {
      "$ref": "#/components/schemas/CorrelateOptions",
      "default": {
       "min_confidence": "MEDIUM",
       "cve_page": 1,
       "sort": "priority",
       "confirmed_only": false,
       "known_exploited_only": false,
       "fix_available_only": false
      }
     }
    },
    "type": "object",
    "required": [
     "assets"
    ],
    "title": "CorrelateRequest"
   },
   "CorrelateV2Options": {
    "properties": {
     "include_cleared": {
      "type": "boolean",
      "title": "Include Cleared",
      "default": true
     },
     "sort": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sort",
      "default": "priority"
     },
     "confirmed_only": {
      "type": "boolean",
      "title": "Confirmed Only",
      "default": false
     },
     "known_exploited_only": {
      "type": "boolean",
      "title": "Known Exploited Only",
      "default": false
     },
     "fix_available_only": {
      "type": "boolean",
      "title": "Fix Available Only",
      "default": false
     },
     "cve_page": {
      "type": "integer",
      "title": "Cve Page",
      "default": 1
     },
     "cve_page_size": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cve Page Size"
     }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "CorrelateV2Options"
   },
   "CorrelateV2Request": {
    "properties": {
     "environment_id": {
      "type": "integer",
      "title": "Environment Id"
     },
     "windows_hosts": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Windows Hosts",
      "default": []
     },
     "installed_software": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Installed Software",
      "default": []
     },
     "options": {
      "$ref": "#/components/schemas/CorrelateV2Options",
      "default": {
       "include_cleared": true,
       "sort": "priority",
       "confirmed_only": false,
       "known_exploited_only": false,
       "fix_available_only": false,
       "cve_page": 1
      }
     }
    },
    "additionalProperties": false,
    "type": "object",
    "required": [
     "environment_id"
    ],
    "title": "CorrelateV2Request"
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "Error": {
    "title": "Error",
    "type": "object",
    "description": "Every error has this shape. Codes: https://breachspider.com/docs/getting-started/error-codes/",
    "properties": {
     "api": {
      "type": "object"
     },
     "error": {
      "type": "object",
      "required": [
       "code",
       "message",
       "retryable",
       "action"
      ],
      "properties": {
       "code": {
        "type": "string",
        "examples": [
         "AUTH_REQUIRED"
        ]
       },
       "message": {
        "type": "string"
       },
       "retryable": {
        "type": "boolean",
        "description": "Retry only when true."
       },
       "retry_after_seconds": {
        "type": [
         "integer",
         "null"
        ]
       },
       "action": {
        "type": "string",
        "description": "What to do next.",
        "enum": [
         "retry_later",
         "wait_until_reset",
         "reduce_batch",
         "fix_input",
         "use_different_key",
         "contact_us"
        ]
       },
       "detail": {}
      }
     }
    }
   }
  },
  "securitySchemes": {
   "bearerAuth": {
    "type": "http",
    "scheme": "bearer",
    "description": "API key as a Bearer token: `Authorization: Bearer bs_live_...`. Keys at https://breachspider.com/developers."
   }
  }
 }
}
