> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Failures

> Which banks failed in a period or state, who acquired them, how large they were and what they cost the Deposit Insurance Fund. Filter with `from` / `to` on the failure date, `state`, or `cert` for one institution.

## Request contract

* **Method and path:** POST /apis/v1/banks-data-fdic-gov/bank-data/failures
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/banks-data-fdic-gov/bank-data/failures`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/banks-data-fdic-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "banks-data-fdic-gov.bank-data.failures",
  "method": "POST",
  "path": "/apis/v1/banks-data-fdic-gov/bank-data/failures",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "from": "2023-03-01",
              "to": "2023-03-31"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "cert": {
              "description": "FDIC certificate number, the institution id shared by every BankFind dataset (3511 = Wells Fargo Bank, N.A.; 628 = JPMorgan Chase Bank, N.A.). Find it with `institutions`. A number no institution has ever held is not_found.\n\nProvider reference: minimum 1; maximum 9999999.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 9999999,
                "min": 1
              }
            },
            "cursor": {
              "description": "next_cursor from the previous page of the same query (the record offset).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "fields": {
              "description": "Projection: column names to return instead of the default set, e.g. [\"NAME\", \"FAILDATE\", \"COST\", \"BIDNAME\"]. The identity columns are always added and every record carries `ID`. An unknown name is ignored. The FDIC's column definitions are at https://api.fdic.gov/banks/docs/.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "filters": {
              "description": "Raw BankFind filter, ANDed with the other inputs. Lucene-style: `FIELD:value`, `FIELD:\"two words\"`, `FIELD:(\"A\",\"B\")` for any of several, `FIELD:[low TO high]` for an inclusive range (`*` open), `!(FIELD:value)` to exclude, `AND`/`OR` between terms. Column names are upper case and values match exactly as stored, case included. An unknown column matches nothing (an empty result, not an error); a syntax error is invalid_input.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "from": {
              "description": "Earliest failure date to include, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page_size": {
              "default": 25,
              "description": "Records per page.\n\nProvider reference: minimum 1; maximum 1000; default 25.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 1000,
                "min": 1
              }
            },
            "sort_by": {
              "description": "Columns to sort by, in priority order, e.g. [\"COST\"] or [\"QBFASSET\"]. Defaults to `FAILDATE` descending (most recent first). Unique tiebreak columns are always appended so offset paging is stable. An unsortable or unknown column is invalid_input.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sort_order": {
              "description": "Direction for every sort column. Defaults to the direction of the default sort.\n\nProvider reference: allowed values [\"asc\", \"desc\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "asc",
                  "desc"
                ]
              }
            },
            "state": {
              "description": "Two-letter state or territory code, matched against `PSTALP`. Pattern: ^[A-Za-z]{2,3}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "to": {
              "description": "Latest failure date to include, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/banks-data-fdic-gov.json POST /apis/v1/banks-data-fdic-gov/bank-data/failures
openapi: 3.1.0
info:
  description: ''
  title: FDIC BankFind Suite
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    banks-data-fdic-gov:
      description: ''
      title: FDIC BankFind Suite
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 1a121af68b256f6f99ec1b240112e9455162fda0e3d6b8a8a579e0146a361279
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/banks-data-fdic-gov/bank-data/deposits
    - /apis/v1/banks-data-fdic-gov/bank-data/failures
    - /apis/v1/banks-data-fdic-gov/bank-data/financials
    - /apis/v1/banks-data-fdic-gov/bank-data/history
    - /apis/v1/banks-data-fdic-gov/bank-data/institutions
    - /apis/v1/banks-data-fdic-gov/bank-data/locations
    - /apis/v1/banks-data-fdic-gov/bank-data/summary
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:9e01e72049940f21b23b310716985d471bed4f42b50bedfc9d9e3ea605d6ff5e
    facts_hash: 1a121af68b256f6f99ec1b240112e9455162fda0e3d6b8a8a579e0146a361279
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: banks-data-fdic-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/banks-data-fdic-gov/bank-data/failures:
    post:
      tags:
        - FDIC BankFind Suite
      summary: Failures
      description: >-
        Which banks failed in a period or state, who acquired them, how large
        they were and what they cost the Deposit Insurance Fund. Filter with
        `from` / `to` on the failure date, `state`, or `cert` for one
        institution.
      operationId: banks-data-fdic-gov.bank-data.failures
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  from: '2023-03-01'
                  to: '2023-03-31'
            schema:
              additionalProperties: true
              properties:
                cert:
                  description: >-
                    FDIC certificate number, the institution id shared by every
                    BankFind dataset (3511 = Wells Fargo Bank, N.A.; 628 =
                    JPMorgan Chase Bank, N.A.). Find it with `institutions`. A
                    number no institution has ever held is not_found.


                    Provider reference: minimum 1; maximum 9999999.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 9999999
                    min: 1
                cursor:
                  description: >-
                    next_cursor from the previous page of the same query (the
                    record offset).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                fields:
                  description: >-
                    Projection: column names to return instead of the default
                    set, e.g. ["NAME", "FAILDATE", "COST", "BIDNAME"]. The
                    identity columns are always added and every record carries
                    `ID`. An unknown name is ignored. The FDIC's column
                    definitions are at https://api.fdic.gov/banks/docs/.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                filters:
                  description: >-
                    Raw BankFind filter, ANDed with the other inputs.
                    Lucene-style: `FIELD:value`, `FIELD:"two words"`,
                    `FIELD:("A","B")` for any of several, `FIELD:[low TO high]`
                    for an inclusive range (`*` open), `!(FIELD:value)` to
                    exclude, `AND`/`OR` between terms. Column names are upper
                    case and values match exactly as stored, case included. An
                    unknown column matches nothing (an empty result, not an
                    error); a syntax error is invalid_input.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                from:
                  description: >-
                    Earliest failure date to include, YYYY-MM-DD. Pattern:
                    ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                page_size:
                  default: 25
                  description: |-
                    Records per page.

                    Provider reference: minimum 1; maximum 1000; default 25.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 1000
                    min: 1
                sort_by:
                  description: >-
                    Columns to sort by, in priority order, e.g. ["COST"] or
                    ["QBFASSET"]. Defaults to `FAILDATE` descending (most recent
                    first). Unique tiebreak columns are always appended so
                    offset paging is stable. An unsortable or unknown column is
                    invalid_input.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                sort_order:
                  description: >-
                    Direction for every sort column. Defaults to the direction
                    of the default sort.


                    Provider reference: allowed values ["asc", "desc"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - asc
                      - desc
                state:
                  description: >-
                    Two-letter state or territory code, matched against
                    `PSTALP`. Pattern: ^[A-Za-z]{2,3}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                to:
                  description: >-
                    Latest failure date to include, YYYY-MM-DD. Pattern:
                    ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-08.
                  summary: Official provider example
                  value:
                    count: 2
                    dataset: failures
                    filters: FAILDATE:["2023-03-01" TO "2023-03-31"]
                    index_created_at: '2026-08-25T14:13:18Z'
                    next_cursor: null
                    observed_at_ms: 1791422161867
                    offset: 0
                    records:
                      - BIDNAME: FLAGSTAR BANK, N.A.
                        CERT: 57053
                        CITYST: NEW YORK, NY
                        COST: 0
                        FAILDATE: 3/12/2023
                        FAILYR: '2023'
                        ID: '4106'
                        NAME: SIGNATURE BANK
                        QBFASSET: 110363650
                        QBFDEP: 88612911
                        RESTYPE: FAILURE
                        RESTYPE1: PA
                        SAVR: DIF
                      - BIDNAME: FIRST-CITIZENS BANK & TRUST COMPANY
                        CERT: 24735
                        CITYST: SANTA CLARA, CA
                        COST: 18744254.463
                        FAILDATE: 3/10/2023
                        FAILYR: '2023'
                        ID: '4105'
                        NAME: SILICON VALLEY BANK
                        QBFASSET: 209026000
                        QBFDEP: 175378000
                        RESTYPE: FAILURE
                        RESTYPE1: PA
                        SAVR: DIF
                    search: null
                    sort_by:
                      - FAILDATE
                      - FIN
                      - NAME
                    sort_order: desc
                    source_url: >-
                      https://api.fdic.gov/banks/failures?filters=FAILDATE%3A%5B%222023-03-01%22%20TO%20%222023-03-31%22%5D&sort_by=FAILDATE%2CFIN%2CNAME&sort_order=DESC&limit=25&offset=0
                    total_count: 2
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Every FDIC-insured bank failure and assistance transaction since
            1934 from BankFind's failures dataset: institution name, CERT (null
            for some early failures), city and state, failure and resolution
            dates, resolution type (FAILURE or ASSISTANCE) and transaction type
            (purchase and assumption, payout, insured deposit transfer...),
            insurance fund, acquiring institution and its location, total
            deposits and assets at failure and the estimated loss to the
            insurance fund (thousands of dollars; null where not available).
            FAILDATE is M/D/YYYY. Most recent first.


            The response contains the tool result directly.


            The provider identifies `records` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `ID` | string | BankFind's record id: the CERT for an institution,
            CERT_REPDTE for a financials record, YEAR_CERT_BRNUM for a Summary
            of Deposits branch. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.