{
  "openapi": "3.1.0",
  "info": {
    "title": "US Bank Check (FDIC) MCP",
    "description": "Is this bank FDIC-insured, healthy and open? Bank profiles, ROA/ROE and failures from FDIC.\n\nThis specification documents the HTTP x402 pay-per-call routes only (not the MCP /mcp transport). Unpaid calls return HTTP 402. Retry with a PAYMENT-SIGNATURE header (x402 v2, scheme exact, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). A payout address is included only in the live 402 challenge served by the Worker, not in this file. MCP endpoint: https://us-bank-check-mcp.donniertf.workers.dev/mcp. Manifest: https://us-bank-check-mcp.donniertf.workers.dev/.well-known/x402. Paper/free discovery routes are not billed.",
    "version": "1.1.0",
    "contact": {
      "name": "Donnie Morrison",
      "email": "dmorrisonwebdesign@gmail.com",
      "url": "https://us-bank-check-mcp.donniertf.workers.dev/"
    },
    "license": {
      "name": "See product landing page and source licences"
    },
    "x-guidance": "Use the paid HTTP routes documented in paths (POST JSON, or GET with query args). Unpaid calls return HTTP 402; retry with a PAYMENT-SIGNATURE header (x402 v2, USDC on Base; legacy X-PAYMENT v1 also accepted). The MCP transport is at /mcp. Is this bank FDIC-insured, healthy and open? Bank profiles, ROA/ROE and failures from FDIC."
  },
  "servers": [
    {
      "url": "https://us-bank-check-mcp.donniertf.workers.dev",
      "description": "US Bank Check (FDIC) MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/bank_check": {
      "post": {
        "summary": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Is this US bank FDIC-insured and active? Name search → top 3 with assets, deposits and location. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`).",
        "description": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Is this US bank FDIC-insured and active? Name search → top 3 with assets, deposits and location. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`).",
        "operationId": "post_x402_bank_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result including status ok, retrieved_at and source_updated_at. A successful search with no hits is status ok with 0 matches.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ],
                      "description": "Successful FDIC lookup, including zero matches."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "cache_hit": {
                      "type": "boolean",
                      "description": "True when the FDIC payload was served from cache."
                    },
                    "query": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "integer",
                      "description": "Total FDIC matches. 0 means no such bank was found, not a failed lookup."
                    },
                    "top_3": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "cert": {
                            "type": [
                              "integer",
                              "number",
                              "string",
                              "null"
                            ]
                          },
                          "city": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "state": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "established": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "total_assets_k": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "deposits_k": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "roa": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "roe": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "offices": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "regulator": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "website": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "holding_company": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "report_date": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "pro": {
                      "type": "string"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields. Validated before any payment challenge; the request is not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "missing_required_fields"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          },
          "502": {
            "description": "FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Payment is not settled and the request is not billed. Body has status lookup_failed, a short error, retrieved_at, and matches: null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "lookup_failed"
                      ],
                      "description": "The FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Distinct from zero matches."
                    },
                    "error": {
                      "type": "string",
                      "description": "Short reason, e.g. network error, HTTP 5xx, timeout or invalid JSON."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "query": {
                      "type": "string"
                    },
                    "cert": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "null",
                      "description": "Explicitly null on a failed lookup, never a plain 0."
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Is this US bank FDIC-insured and active? Name search → top 3 with assets, deposits and location. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`). (query or 402 probe)",
        "description": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Is this US bank FDIC-insured and active? Name search → top 3 with assets, deposits and location. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`). Accepts query args; unpaid calls return 402 after required fields are present.",
        "operationId": "get_x402_bank_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result including status ok, retrieved_at and source_updated_at. A successful search with no hits is status ok with 0 matches.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ],
                      "description": "Successful FDIC lookup, including zero matches."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "cache_hit": {
                      "type": "boolean",
                      "description": "True when the FDIC payload was served from cache."
                    },
                    "query": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "integer",
                      "description": "Total FDIC matches. 0 means no such bank was found, not a failed lookup."
                    },
                    "top_3": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "cert": {
                            "type": [
                              "integer",
                              "number",
                              "string",
                              "null"
                            ]
                          },
                          "city": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "state": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "established": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "total_assets_k": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "deposits_k": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "roa": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "roe": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "offices": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "regulator": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "website": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "holding_company": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "report_date": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "pro": {
                      "type": "string"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields. Validated before any payment challenge; the request is not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "missing_required_fields"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          },
          "502": {
            "description": "FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Payment is not settled and the request is not billed. Body has status lookup_failed, a short error, retrieved_at, and matches: null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "lookup_failed"
                      ],
                      "description": "The FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Distinct from zero matches."
                    },
                    "error": {
                      "type": "string",
                      "description": "Short reason, e.g. network error, HTTP 5xx, timeout or invalid JSON."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "query": {
                      "type": "string"
                    },
                    "cert": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "null",
                      "description": "Explicitly null on a failed lookup, never a plain 0."
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/bank_profile": {
      "post": {
        "summary": "PRO. Full profile for an FDIC cert number: assets, deposits, ROA/ROE, offices, regulator, holding company. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`).",
        "description": "PRO. Full profile for an FDIC cert number: assets, deposits, ROA/ROE, offices, regulator, holding company. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`).",
        "operationId": "post_x402_bank_profile",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result including status ok, retrieved_at and source_updated_at. A successful search with no hits is status ok with 0 matches.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ],
                      "description": "Successful FDIC lookup, including zero matches."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "cache_hit": {
                      "type": "boolean",
                      "description": "True when the FDIC payload was served from cache."
                    },
                    "error": {
                      "type": "string",
                      "description": "not_found when the cert does not match an institution."
                    },
                    "cert": {
                      "type": [
                        "integer",
                        "number",
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields. Validated before any payment challenge; the request is not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "missing_required_fields"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          },
          "502": {
            "description": "FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Payment is not settled and the request is not billed. Body has status lookup_failed, a short error, retrieved_at, and matches: null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "lookup_failed"
                      ],
                      "description": "The FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Distinct from zero matches."
                    },
                    "error": {
                      "type": "string",
                      "description": "Short reason, e.g. network error, HTTP 5xx, timeout or invalid JSON."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "query": {
                      "type": "string"
                    },
                    "cert": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "null",
                      "description": "Explicitly null on a failed lookup, never a plain 0."
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cert": {
                    "type": "string"
                  }
                },
                "required": [
                  "cert"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Full profile for an FDIC cert number: assets, deposits, ROA/ROE, offices, regulator, holding company. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`). (query or 402 probe)",
        "description": "PRO. Full profile for an FDIC cert number: assets, deposits, ROA/ROE, offices, regulator, holding company. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`). Accepts query args; unpaid calls return 402 after required fields are present.",
        "operationId": "get_x402_bank_profile",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result including status ok, retrieved_at and source_updated_at. A successful search with no hits is status ok with 0 matches.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ],
                      "description": "Successful FDIC lookup, including zero matches."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "cache_hit": {
                      "type": "boolean",
                      "description": "True when the FDIC payload was served from cache."
                    },
                    "error": {
                      "type": "string",
                      "description": "not_found when the cert does not match an institution."
                    },
                    "cert": {
                      "type": [
                        "integer",
                        "number",
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields. Validated before any payment challenge; the request is not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "missing_required_fields"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          },
          "502": {
            "description": "FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Payment is not settled and the request is not billed. Body has status lookup_failed, a short error, retrieved_at, and matches: null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "lookup_failed"
                      ],
                      "description": "The FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Distinct from zero matches."
                    },
                    "error": {
                      "type": "string",
                      "description": "Short reason, e.g. network error, HTTP 5xx, timeout or invalid JSON."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "query": {
                      "type": "string"
                    },
                    "cert": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "null",
                      "description": "Explicitly null on a failed lookup, never a plain 0."
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "cert",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/bank_failures": {
      "post": {
        "summary": "PRO. Recent US bank failures (and acquirers), newest first, optional state filter. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`).",
        "description": "PRO. Recent US bank failures (and acquirers), newest first, optional state filter. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`).",
        "operationId": "post_x402_bank_failures",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result including status ok, retrieved_at and source_updated_at. A successful search with no hits is status ok with 0 matches.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ],
                      "description": "Successful FDIC lookup, including zero matches."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "cache_hit": {
                      "type": "boolean",
                      "description": "True when the FDIC payload was served from cache."
                    },
                    "count": {
                      "type": "integer"
                    },
                    "failures": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields. Validated before any payment challenge; the request is not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "missing_required_fields"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          },
          "502": {
            "description": "FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Payment is not settled and the request is not billed. Body has status lookup_failed, a short error, retrieved_at, and matches: null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "lookup_failed"
                      ],
                      "description": "The FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Distinct from zero matches."
                    },
                    "error": {
                      "type": "string",
                      "description": "Short reason, e.g. network error, HTTP 5xx, timeout or invalid JSON."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "query": {
                      "type": "string"
                    },
                    "cert": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "null",
                      "description": "Explicitly null on a failed lookup, never a plain 0."
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "since_year": {
                    "type": "number"
                  },
                  "state": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Recent US bank failures (and acquirers), newest first, optional state filter. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`). (query or 402 probe)",
        "description": "PRO. Recent US bank failures (and acquirers), newest first, optional state filter. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`). Accepts query args; unpaid calls return 402 after required fields are present.",
        "operationId": "get_x402_bank_failures",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result including status ok, retrieved_at and source_updated_at. A successful search with no hits is status ok with 0 matches.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ],
                      "description": "Successful FDIC lookup, including zero matches."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "cache_hit": {
                      "type": "boolean",
                      "description": "True when the FDIC payload was served from cache."
                    },
                    "count": {
                      "type": "integer"
                    },
                    "failures": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields. Validated before any payment challenge; the request is not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "missing_required_fields"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          },
          "502": {
            "description": "FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Payment is not settled and the request is not billed. Body has status lookup_failed, a short error, retrieved_at, and matches: null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "lookup_failed"
                      ],
                      "description": "The FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Distinct from zero matches."
                    },
                    "error": {
                      "type": "string",
                      "description": "Short reason, e.g. network error, HTTP 5xx, timeout or invalid JSON."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "query": {
                      "type": "string"
                    },
                    "cert": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "null",
                      "description": "Explicitly null on a failed lookup, never a plain 0."
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "since_year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/state_screen": {
      "post": {
        "summary": "PRO. Active banks in a state ranked by assets or weakest ROA — for B2B sales, vendors and counterparty screens. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`).",
        "description": "PRO. Active banks in a state ranked by assets or weakest ROA — for B2B sales, vendors and counterparty screens. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`).",
        "operationId": "post_x402_state_screen",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result including status ok, retrieved_at and source_updated_at. A successful search with no hits is status ok with 0 matches.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ],
                      "description": "Successful FDIC lookup, including zero matches."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "cache_hit": {
                      "type": "boolean",
                      "description": "True when the FDIC payload was served from cache."
                    },
                    "state": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "banks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "cert": {
                            "type": [
                              "integer",
                              "number",
                              "string",
                              "null"
                            ]
                          },
                          "city": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "state": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "established": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "total_assets_k": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "deposits_k": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "roa": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "roe": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "offices": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "regulator": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "website": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "holding_company": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "report_date": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields. Validated before any payment challenge; the request is not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "missing_required_fields"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          },
          "502": {
            "description": "FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Payment is not settled and the request is not billed. Body has status lookup_failed, a short error, retrieved_at, and matches: null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "lookup_failed"
                      ],
                      "description": "The FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Distinct from zero matches."
                    },
                    "error": {
                      "type": "string",
                      "description": "Short reason, e.g. network error, HTTP 5xx, timeout or invalid JSON."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "query": {
                      "type": "string"
                    },
                    "cert": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "null",
                      "description": "Explicitly null on a failed lookup, never a plain 0."
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string"
                  },
                  "sort": {
                    "type": "string",
                    "description": "assets (default) | weakest_roa"
                  },
                  "limit": {
                    "type": "number"
                  }
                },
                "required": [
                  "state"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Active banks in a state ranked by assets or weakest ROA — for B2B sales, vendors and counterparty screens. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`). (query or 402 probe)",
        "description": "PRO. Active banks in a state ranked by assets or weakest ROA — for B2B sales, vendors and counterparty screens. Results include `status` (`ok` or `lookup_failed`), `retrieved_at` (ISO 8601 UTC, when this result was produced) and `source_updated_at` (when the FDIC data was fetched, including cache hits). A failed FDIC lookup returns `status: lookup_failed` and is distinct from zero matches (`status: ok`). Accepts query args; unpaid calls return 402 after required fields are present.",
        "operationId": "get_x402_state_screen",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result including status ok, retrieved_at and source_updated_at. A successful search with no hits is status ok with 0 matches.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ],
                      "description": "Successful FDIC lookup, including zero matches."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "cache_hit": {
                      "type": "boolean",
                      "description": "True when the FDIC payload was served from cache."
                    },
                    "state": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "banks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "cert": {
                            "type": [
                              "integer",
                              "number",
                              "string",
                              "null"
                            ]
                          },
                          "city": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "state": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "established": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "total_assets_k": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "deposits_k": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "roa": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "roe": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "offices": {
                            "type": [
                              "number",
                              "integer",
                              "null"
                            ]
                          },
                          "regulator": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "website": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "holding_company": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "report_date": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields. Validated before any payment challenge; the request is not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "missing_required_fields"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          },
          "502": {
            "description": "FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Payment is not settled and the request is not billed. Body has status lookup_failed, a short error, retrieved_at, and matches: null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "lookup_failed"
                      ],
                      "description": "The FDIC lookup failed (network error, non-2xx, timeout or bad JSON). Distinct from zero matches."
                    },
                    "error": {
                      "type": "string",
                      "description": "Short reason, e.g. network error, HTTP 5xx, timeout or invalid JSON."
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC timestamp for when this result was produced."
                    },
                    "source_updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO 8601 UTC time the FDIC data was fetched. Included whenever known, including cache hits."
                    },
                    "query": {
                      "type": "string"
                    },
                    "cert": {
                      "type": "string"
                    },
                    "matches": {
                      "type": "null",
                      "description": "Explicitly null on a failed lookup, never a plain 0."
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "assets (default) | weakest_roa"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ]
      }
    }
  }
}