{"openapi":"3.1.0","info":{"title":"Bank, Credit Union & Charity Registries API","version":"1.0.0","description":"Look up US FDIC-insured banks, NCUA credit unions, and charities on the England and Wales register by identifier or name from official public bulk data vendored in the repository. Paid with x402 exact USDC on Base. No account is required.","contact":{"email":"support@brainiac.software"},"x-guidance":"BRAINIAC.software is a pay-per-call API for software agents. No account or API key is required.\nPayment uses x402 with exact USDC on Base (8453). Each paid resource accepts POST for the call; unpaid GET/HEAD return the same 402 payment challenge for discovery.\nHow to call an operation:\n1. POST JSON matching the requestBody. An unpaid POST (including empty body) returns 402 payment terms before body validation.\n2. Compare 402 payTo, asset, and network with /api/v1/catalog and /.well-known/x402 — not only with the 402 itself.\n3. Pay and retry with payment-signature. Invalid JSON/schema after payment-signature returns 400 and is not charged. Settlement (a charge) only on 2xx. payment-signature attached ≠ charged.\nIdempotency-Key: 64 hex chars from 32 random bytes. Reuse only for the same operation and body (replays stored response, including status=partial). A new key runs a fresh call.\nIdempotency after errors: unpaid 402 does not store the key. Post-signature 402/503 release it (retry same key). Pre-reserve schema 400 does not store it. Other post-signature responses (2xx/4xx/5xx) are stored: same key+body replays; different body → 409. Stored 4xx/5xx replays are not a second charge. Prefer a new key after fixing a 4xx; after 5xx reuse the same key only for the stored error.\nPost-signature 402/503 include prior-payment-attempt (nonce, settled false|unknown). A facilitator 502 is SETTLEMENT_UNKNOWN (stored under the Idempotency-Key; cross-instance replay needs the shared store; may already be charged) — check USDC authorizationState(payer, nonce) on Base before re-signing.\nSettlement signal: settled 2xx include payment-response. 4xx/5xx do not. Do not book a cost from payment-signature alone.\nCoverage billing: HTTP 200 with status complete, partial, or failed is charged at the full listed price. Retrying missing checks needs a new settled call. 4xx/5xx are not charged.\nmissing_items.reason: timeout/rate_limited → one delayed retry (new key); upstream_down → after recovery; not_supported → never.\nInvariants: any missing_items ⇒ not status complete; sources[] is provenance only (source, url, retrievedAt), never success/error keyed by check.\nFree lookup: GET /api/v1/results/{result_id} returns stored coverage JSON (404 RESULT_NOT_FOUND if unknown/expired; not a 402). Prior-Result-Id sets replaces_result_id.\nOutputs are prechecks/drafts for human review — not official determinations, legal advice, or certified filings."},"servers":[{"url":"https://www.brainiac.software"}],"paths":{"/api/v1/registries/fdic-bank-lookup":{"post":{"operationId":"look_up_an_fdic_insured_bank","summary":"Look up an FDIC-insured bank","description":"Find a US FDIC-insured or formerly insured institution by certificate number, RSSD id, or name in the vendored FDIC BankFind institutions file. Returns status, charter class, and end date; ambiguous names return candidates.","tags":["registries"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cert":{"type":"integer","minimum":1,"maximum":9007199254740991},"rssd":{"type":"integer","minimum":1,"maximum":9007199254740991},"name":{"type":"string","minLength":2,"maxLength":200},"state":{"type":"string","pattern":"^[A-Z]{2}$"},"activeOnly":{"default":false,"type":"boolean"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50}},"additionalProperties":false},"example":{"cert":628}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"cert":{"type":"number"},"rssd":{"type":"number"},"name":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"active":{"type":"boolean"},"insured":{"type":"boolean"},"charterClass":{"type":"string"},"charterClassLabel":{"type":"string"},"established":{"type":"string"},"insuredSince":{"type":"string"},"endDate":{"type":"null"},"changeCode":{"type":"string"}},"additionalProperties":true}},"totalCandidates":{"type":"number"},"snapshot":{"type":"object","properties":{"file":{"type":"string"},"sha256":{"type":"string"},"asOf":{"type":"string"},"retrievedAt":{"type":"string"},"sourceUrl":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"sha256":{"type":"string"}},"additionalProperties":true}}},"additionalProperties":true},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"results":[{"cert":628,"rssd":852218,"name":"JPMorgan Chase Bank, National Association","city":"Columbus","state":"OH","zip":"43240","active":true,"insured":true,"charterClass":"N","charterClassLabel":"Commercial bank, national charter, Fed member, supervised by the OCC","established":"1824-01-01","insuredSince":"1934-01-01","endDate":null,"changeCode":"820"}],"totalCandidates":1,"snapshot":{"file":"fdic-institutions.csv","sha256":"8795122bdd9c853a50aa5f9346582f65e0f6dce588eee3db5a85751f78552f11","asOf":"2026-11-14","retrievedAt":"2026-11-14","sourceUrl":"https://api.fdic.gov/banks/institutions","files":[{"file":"fdic-institutions.csv","sha256":"8795122bdd9c853a50aa5f9346582f65e0f6dce588eee3db5a85751f78552f11"}]},"sources":[{"source":"FDIC BankFind Suite institutions (bulk CSV export)","url":"https://api.fdic.gov/banks/institutions","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Results come from the vendored FDIC snapshot only, not a live BankFind request.","Name searches return every candidate whose name contains all query tokens; no single institution is picked for an ambig…","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/registries/ncua-credit-union-lookup":{"post":{"operationId":"look_up_an_ncua_credit_union","summary":"Look up an NCUA credit union","description":"Find a US credit union by NCUA charter number, RSSD id, name, or trade name from the vendored NCUA 5300 Call Report FOICU and TradeNames files. Only credit unions that filed in that cycle are listed.","tags":["registries"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"charter":{"type":"integer","minimum":1,"maximum":9007199254740991},"rssd":{"type":"integer","minimum":1,"maximum":9007199254740991},"name":{"type":"string","minLength":2,"maxLength":200},"state":{"type":"string","pattern":"^[A-Z]{2}$"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50}},"additionalProperties":false},"example":{"charter":5536}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"charter":{"type":"number"},"rssd":{"type":"number"},"name":{"type":"string"},"tradeNames":{"type":"array","items":{}},"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"charterState":{"type":"string"},"zip":{"type":"string"},"cuType":{"type":"string"},"yearOpened":{"type":"number"},"charterIssued":{"type":"string"},"insuredSince":{"type":"string"},"peerGroup":{"type":"number"},"minorityDepositoryInstitution":{"type":"boolean"},"cycleDate":{"type":"string"}},"additionalProperties":true}},"totalCandidates":{"type":"number"},"snapshot":{"type":"object","properties":{"file":{"type":"string"},"sha256":{"type":"string"},"asOf":{"type":"string"},"retrievedAt":{"type":"string"},"sourceUrl":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"sha256":{"type":"string"}},"additionalProperties":true}}},"additionalProperties":true},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"results":[{"charter":5536,"rssd":617677,"name":"NAVY FEDERAL CREDIT UNION","tradeNames":[],"street":"820 FOLLIN LANE","city":"VIENNA","state":"VA","charterState":"VA","zip":"22180","cuType":"1","yearOpened":1947,"charterIssued":"1947-07-17","insuredSince":"1971-01-04","peerGroup":6,"minorityDepositoryInstitution":false,"cycleDate":"2026-06-30"}],"totalCandidates":1,"snapshot":{"file":"ncua-foicu.txt","sha256":"f45c44bc6b8425433be8d2a262fd54179c2947a90796448301d84ec6fb470f38","asOf":"2026-06-30","retrievedAt":"2026-11-14","sourceUrl":"https://ncua.gov/files/publications/analysis/call-report-data-2026-06.zip","files":[{"file":"ncua-foicu.txt","sha256":"f45c44bc6b8425433be8d2a262fd54179c2947a90796448301d84ec6fb470f38"},{"file":"ncua-tradenames.txt","sha256":"1e352ba28f7e2c1d66aa39b8172ba0feca2a19a4b5b4399bc79ae91a9559cdc6"}]},"sources":[{"source":"NCUA 5300 Call Report quarterly data (FOICU.txt, TradeNames.txt)","url":"https://ncua.gov/files/publications/analysis/call-report-data-2026-06.zip","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["The file lists only credit unions that filed in the 2026-06-30 cycle; an empty result may mean the union merged or liqu…","cuType is the raw NCUA code because the file's field description does not define its values.","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/registries/uk-charity-lookup":{"post":{"operationId":"look_up_a_charity_in_england_and_wales","summary":"Look up a charity in England and Wales","description":"Find a charity on the Charity Commission register for England and Wales by registered number or name from a vendored charity-level subset of the register extract. Removed charities are reported, not missed.","tags":["registries"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"charityNumber":{"type":"integer","minimum":200000,"maximum":9999999},"name":{"type":"string","minLength":2,"maxLength":200},"includeLinked":{"default":false,"type":"boolean"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50}},"additionalProperties":false},"example":{"charityNumber":220949}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"charityNumber":{"type":"number"},"linkedNumber":{"type":"number"},"name":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"registeredOn":{"type":"string"},"removedOn":{"type":"null"},"companyNumber":{"type":"string"},"postcode":{"type":"string"},"latestIncome":{"type":"number"},"isCio":{"type":"boolean"},"insolvent":{"type":"boolean"},"inAdministration":{"type":"boolean"}},"additionalProperties":true}},"totalCandidates":{"type":"number"},"snapshot":{"type":"object","properties":{"file":{"type":"string"},"sha256":{"type":"string"},"asOf":{"type":"string"},"retrievedAt":{"type":"string"},"sourceUrl":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"sha256":{"type":"string"}},"additionalProperties":true}}},"additionalProperties":true},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"results":[{"charityNumber":220949,"linkedNumber":0,"name":"THE BRITISH RED CROSS SOCIETY","status":"Registered","type":"Other","registeredOn":"1963-03-21","removedOn":null,"companyNumber":"RC000070","postcode":"EC2Y 9AL","latestIncome":293500000,"isCio":false,"insolvent":false,"inAdministration":false}],"totalCandidates":1,"snapshot":{"file":"uk-charities-registered.tsv.br","sha256":"daca1a08f242a87e2d0e9d009a4503d4a37df6c33880feba2a5957867dc79586","asOf":"2026-11-14","retrievedAt":"2026-11-14","sourceUrl":"https://ccewuksprdoneregsadata1.blob.core.windows.net/data/json/publicextract.charity.zip","files":[{"file":"uk-charities-registered.tsv.br","sha256":"daca1a08f242a87e2d0e9d009a4503d4a37df6c33880feba2a5957867dc79586"},{"file":"uk-charities-removed.tsv.br","sha256":"d5aedbf2b637d86c9462067cc3e2ab4a0c88a8ff225d5d257ddedacedc3acf3c"}]},"sources":[{"source":"Charity Commission for England and Wales register extract (Open Government Licence v3.0)","url":"https://ccewuksprdoneregsadata1.blob.core.windows.net/data/json/publicextract.charity.zip","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Covers England and Wales only. Scottish (OSCR) and Northern Ireland (CCNI) charities, and exempt or excepted charities …","Only charity-level columns are vendored; trustee, contact email, phone, and address details are not included.","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}}},"components":{"schemas":{"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}}}}}}}}