{"openapi": "3.1.0", "info": {"title": "Corliss Vault - verified local answers (Humboldt County, CA)", "version": "1.0.0", "contact": {"name": "Corliss Vault", "email": "admin@corlissvault.com", "url": "https://grizz.taild02171.ts.net/store"}, "description": "Corliss Vault: verified local answers, grounded in checked records with cited sources. Coverage: Humboldt County, California (Bigfoot Capital) (permits, public bids and projects, California Zone 0 defensible-space rules, contractor licenses, businesses, construction suppliers); Mercer-Bradford-Erie, Pennsylvania; Reno-Sparks, Nevada; oil and gas operations. Ask about permit requirements, bid deadlines, meeting decisions, license status, fire-hardening rules, or local businesses. When the records contain no match, the full payment is automatically refunded.", "x-geotag": {"payload": {"version": "geotag-v1", "origin_place": {"county": "Humboldt County", "state": "California", "country": "US"}, "identity": "Bigfoot Capital", "service": "Neighbor by Corliss Vault", "reveal_stage": "county+identity only; town-level locality withheld until operator go", "transport_egress": {"provider": "Starlink", "asn": "AS14593", "presents_city": "San Jose", "presents_region": "California", "presents_postal": "95110", "note": "Transport layer truthful: Starlink PoP egress presents San Jose. This attestation asserts physical origin one layer deeper; it does not claim IP geolocation says Humboldt."}, "attested_by": "Neighbor, Corliss Vault", "issued_at": "2026-12-06T12:58:35.917433Z", "valid_until": "2026-12-07T12:58:35.917433Z", "source": "Operator origin attestation; transport presentation measured 2026-12-05 23:48 PT (ipinfo San Jose AS14593; Starlink RFC 8805 geofeed matched /24 row US-CA San Jose).", "confidence": "origin: operator-attested; transport: measured", "verify": "Fetch /.well-known/geotag.json for public key; verify Ed25519 signature over canonical JSON (sorted keys, compact separators) of payload; check valid_until; transport_egress must read San Jose/Starlink (honesty check)."}, "algorithm": "Ed25519", "key_id": "b1f7162b61ce8095", "public_key_b64": "9OT/V4D11DuYFBEljOg1MVtwAff+868sxBGUoHfjhN8=", "signature_b64": "xKQ01Uh2yoEOfD+ChIhcucsMeg9CWN1eqHBi3+CIag2Mi+HBd743jA3KIg9k9MO41hj/wVO4ckVI6VQ7QkNmBQ==", "signed": true, "canonicalization": "JSON sorted keys, compact separators, UTF-8"}, "x-mcp": {"endpoint": "/mcp", "card": "/.well-known/mcp.json", "protocol_versions": ["2026-07-28", "2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"], "tools": ["neighbor_verified_answer", "neighbor_entity_lookup", "neighbor_bid_digest", "neighbor_catalog_slice", "neighbor_federal_query", "neighbor_build_ask", "neighbor_catalog", "neighbor_sample", "neighbor_dispatch_rates", "neighbor_questions"]}}, "servers": [{"url": "https://grizz.taild02171.ts.net"}], "paths": {"/api/ask-paid": {"post": {"operationId": "askPaid", "summary": "Ask a verified local question (x402-metered, $0.25 USDC)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.25"}, "protocols": [{"x402": {}}]}, "description": "Payment-gated by x402: an unpaid POST returns 402 with payment requirements; retry with a PAYMENT-SIGNATURE header. Answers are grounded in checked Humboldt County records with cited sources. No-match answers refund automatically in full.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"question": {"type": "string", "minLength": 1, "maxLength": 2000, "description": "A local question: Humboldt County permits, public bids, California Zone 0 rules, contractor licenses, meeting decisions, or local businesses (also Mercer-Bradford-Erie PA, Reno-Sparks NV, oil operations)."}}, "required": ["question"], "additionalProperties": false}, "example": {"question": "When did California Zone 0 defensible space regulations take effect, and what do they require around a house?"}}}}, "responses": {"200": {"description": "Grounded answer with sources, refund status, and payment record."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header."}}}}, "/api/data/entity": {"post": {"operationId": "data_entity_lookup", "summary": "Paid data product: entity_lookup ($0.25 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.25"}, "protocols": [{"x402": {}}]}, "description": "Humboldt County business and agency records: verified facts, relationships, and status for one local entity (business, agency, or project), with sources and data-as-of. Call when you need to check what a local entity is, where it operates, or what it connects to before contacting or bidding. No personal data. No matching entity refunds in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "string", "description": "Exact entity id, when known."}, "name": {"type": "string", "description": "Entity name, e.g. 'Rental Guys'."}, "query": {"type": "string", "description": "Name fragment to match when the exact name is unknown."}}, "anyOf": [{"required": ["id"]}, {"required": ["name"]}, {"required": ["query"]}], "additionalProperties": false}, "examples": {"default": {"value": {"name": "Rental Guys"}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'entity_lookup'."}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "provenance": {"type": "string", "description": "Source provenance for the entity record."}, "entity": {"type": "object", "description": "Public-safe entity record: id, name, type, place, status, verified facts, and a sourced house excerpt (internal lead data never sold).", "properties": {"id": {"type": "string"}, "name": {"type": "string"}, "type": {"type": "string"}, "place": {"type": "string"}, "status": {"type": "string"}, "facts": {"type": "array"}, "house_excerpt_md": {"type": "string"}}, "additionalProperties": true}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "entity"], "additionalProperties": true}, "example": {"product": "entity_lookup", "data_as_of": "2026-12-06 04:00 PT", "provenance": "Vault entity house (verified foundation facts with sources)", "entity": {"id": "rental-guys", "name": "Rental Guys", "type": "business", "place": "Eureka, Humboldt County", "status": "active", "facts": [{"fact": "Equipment rental business serving Humboldt County", "source": "business listing", "verified_date": "2026-12-05"}], "house_excerpt_md": "## Foundation\nEquipment rental: excavators, lifts, concrete tools..."}, "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 0.25, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "entity_lookup", "route": "/api/data/entity", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/data/bids": {"post": {"operationId": "data_bid_digest", "summary": "Paid data product: bid_digest ($1.00 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "1.00"}, "protocols": [{"x402": {}}]}, "description": "Open public bids and RFPs in Humboldt County and partner territories: deadlines, quantities, plan holders where stated, and primary-record URLs, with confirmed dates labeled. Call when scoping work, checking a deadline, or deciding whether to bid. Empty digest refunds in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"limit": {"type": "integer", "minimum": 1, "maximum": 200, "description": "Maximum structured bid items to return (default: all). The digest_md field always carries the full digest text."}}, "additionalProperties": false}, "examples": {"default": {"value": {"limit": 10}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'bid_digest'."}, "data_as_of": {"type": "string", "description": "Digest data-as-of line."}, "generated_at_pt": {"type": "string", "description": "When the digest was generated (PT)."}, "items_total": {"type": "integer", "description": "Total open-bid items in the digest."}, "provenance": {"type": "string", "description": "Digest provenance; confirmed dates are labeled confirmed."}, "items": {"type": "array", "description": "Structured bid items with primary-record URLs.", "items": {"type": "object", "properties": {"name": {"type": "string"}, "due": {"type": "string"}, "text": {"type": "string"}, "primary_url": {"type": ["string", "null"]}}, "additionalProperties": true}}, "digest_md": {"type": "string", "description": "Full digest text (markdown), basis-labeled."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "items"], "additionalProperties": true}, "example": {"product": "bid_digest", "data_as_of": "Data as of 2026-12-06 (digest generated 2026-12-06)", "generated_at_pt": "2026-12-06 03:00 PT", "items_total": 12, "provenance": "generated bid digest (world model + bid-cluster board); every item carries its primary-record URL; confirmed dates labeled confirmed", "items": [{"name": "CR Student Housing", "due": "2027-01-19", "text": "CR Student Housing: GC bids due 2027-01-19 14:00 CONFIRMED (Addendum 3, primary CR Purchasing record); RFIs 2026-12-18; primary: https://www.redwoods.edu/services/bo/purchasing.php", "primary_url": "https://www.redwoods.edu/services/bo/purchasing.php"}], "digest_md": "# Open bids digest\n- CR Student Housing: GC bids due 2027-01-19 14:00 CONFIRMED...", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 1.0, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 1.0, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "bid_digest", "route": "/api/data/bids", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 1.0, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/data/catalog": {"post": {"operationId": "data_catalog_slice", "summary": "Paid data product: catalog_slice ($0.50 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.50"}, "protocols": [{"x402": {}}]}, "description": "Construction material and supplier catalog for Humboldt County: rows with price status, verified prices where available, sources, and verified dates. Call when pricing materials or finding who stocks an item locally. Ask-pending rows carry no invented price. No matching rows refund in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"category": {"type": "string", "description": "Category substring filter, e.g. 'rebar' or 'lumber'."}, "item_id": {"type": "string", "description": "Exact catalog item id."}, "query": {"type": "string", "description": "Substring match on item name/spec, e.g. 'rebar'."}, "limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 25, "description": "Maximum catalog rows to return."}}, "additionalProperties": false}, "examples": {"default": {"value": {"query": "rebar", "limit": 10}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'catalog_slice'."}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "catalog_built": {"type": "string", "description": "Catalog build stamp."}, "count": {"type": "integer", "description": "Rows returned."}, "items": {"type": "array", "description": "Catalog rows with supplier price status, verified prices, sources, and verified dates.", "items": {"type": "object", "properties": {"id": {"type": "string"}, "name": {"type": "string"}, "category": {"type": "string"}, "spec": {"type": "string"}, "unit": {"type": "string"}, "suppliers": {"type": "array"}}, "additionalProperties": true}}, "provenance": {"type": "string", "description": "Catalog provenance; ask-pending rows carry no invented price."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "items"], "additionalProperties": true}, "example": {"product": "catalog_slice", "data_as_of": "2026-12-06 04:00 PT", "catalog_built": "2026-12-05", "count": 1, "items": [{"id": "rebar-4", "name": "#4 rebar (1/2 in)", "category": "steel", "spec": "Grade 60, 20 ft", "unit": "stick", "suppliers": [{"supplier": "Local supplier", "price": 8.5, "price_status": "verified", "source": "supplier listing", "verified_date": "2026-12-04", "note": null}]}], "provenance": "Vault Catalog Library; ask-pending rows carry no invented price", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 0.5, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.5, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "catalog_slice", "route": "/api/data/catalog", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.5, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/data/territory": {"post": {"operationId": "data_territory_brief", "summary": "Paid data product: territory_brief ($0.50 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.50"}, "protocols": [{"x402": {}}]}, "description": "Territory briefs for Mercer-Bradford-Erie PA, Reno-Sparks NV, and Wax Harbor oil operations: verified demand, projects, and market context with provenance and data-as-of. Call when evaluating work or expansion in one of these territories. Unknown territory refunds in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"territory": {"type": "string", "enum": ["mercer-pa", "reno-nv", "wax-harbor"], "default": "mercer-pa", "description": "Territory to brief: mercer-pa (Mercer-Bradford-Erie PA), reno-nv (Reno-Sparks NV), or wax-harbor (oil operations)."}}, "required": ["territory"], "additionalProperties": false}, "examples": {"default": {"value": {"territory": "mercer-pa"}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'territory_brief'."}, "territory": {"type": "string", "description": "Territory briefed."}, "data_as_of": {"type": "string", "description": "Brief data-as-of line."}, "provenance": {"type": "string", "description": "Brief provenance."}, "brief_md": {"type": "string", "description": "Full verified territory digest (markdown)."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "brief_md"], "additionalProperties": true}, "example": {"product": "territory_brief", "territory": "mercer-pa", "data_as_of": "Data as of 2026-12-06", "provenance": "Vault territory digest (mercer-pa.md)", "brief_md": "# Mercer-Bradford-Erie PA\nVerified demand poles, open bids, and market context...", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 0.5, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.5, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "territory_brief", "route": "/api/data/territory", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.5, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/data/bulk": {"post": {"operationId": "data_bulk_per_1000", "summary": "Paid data product: bulk_per_1000 ($2.00 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "2.00"}, "protocols": [{"x402": {}}]}, "description": "Bulk export of aggregate, non-personal local records (entities, catalog, or bids) priced per 1,000 records, with provenance and data-as-of. Call when you need machine-readable rows for analysis instead of single lookups. May contain clearly synthetic canary records. Empty exports refund in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dataset": {"type": "string", "enum": ["entities", "catalog", "bids"], "default": "entities", "description": "Dataset to export: entities, catalog, or bids."}, "limit": {"type": "integer", "minimum": 1, "maximum": 5000, "default": 100, "description": "Maximum records to export; price is $2.00 per 1,000 records (rounded up to whole thousands)."}}, "required": ["dataset"], "additionalProperties": false}, "examples": {"default": {"value": {"dataset": "entities", "limit": 100}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'bulk_export'."}, "dataset": {"type": "string", "description": "Dataset exported."}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "count": {"type": "integer", "description": "Records returned (excluding the canary)."}, "records": {"type": "array", "description": "Aggregate non-personal records; includes one clearly synthetic canary record for resale detection."}, "canary_notice": {"type": "string", "description": "Canary disclosure."}, "provenance": {"type": "string", "description": "Export provenance."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "records"], "additionalProperties": true}, "example": {"product": "bulk_export", "dataset": "entities", "data_as_of": "2026-12-06 04:00 PT", "count": 2, "records": [{"id": "rental-guys", "name": "Rental Guys", "type": "business", "place": "Eureka, Humboldt County", "status": "active"}, {"canary_id": "CV-CANARY-20261205-001", "synthetic": true, "dataset": "entities", "note": "Synthetic canary record for resale detection; not a real entity, price, or bid."}], "canary_notice": "records include one clearly synthetic canary for resale detection", "provenance": "Vault public-safe aggregate export; no personal data", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 2.0, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 2.0, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "bulk_per_1000", "route": "/api/data/bulk", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 2.0, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/data/federal": {"post": {"operationId": "data_federal_answer", "summary": "Paid data product: federal_answer ($0.25 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.25"}, "protocols": [{"x402": {}}]}, "description": "U.S. federal records for local decisions: USAspending awards, Grants.gov opportunities, Federal Register rules, FEMA disasters, NWS weather, and BLS data, each with source URL, retrieved-at, and data-as-of. Call when a local question has a federal side (funding, rules, awards). Labeled federal, never merged into local claims. No match refunds in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"intent": {"type": "string", "enum": ["agency", "program", "awards", "opportunities", "rules", "territory_profile", "weather", "energy", "agriculture", "disaster", "dataset", "mirror"], "default": "mirror", "description": "Federal lane: awards (USAspending), opportunities (Grants.gov/SAM), rules (Federal Register), disaster (FEMA), weather (NWS), dataset (Data.gov), territory_profile, or mirror (federal copy of a local question)."}, "query": {"type": "string", "maxLength": 300, "description": "Search terms or the local question to mirror federally."}, "territory": {"type": "string", "enum": ["humboldt", "mercer-pa", "reno-nv", "wax-harbor"], "default": "humboldt", "description": "Territory the federal data should be scoped to."}, "state": {"type": "string", "maxLength": 2, "description": "Optional 2-letter state scope override."}, "county_fips": {"type": "string", "maxLength": 5, "description": "Optional 5-digit county FIPS scope override."}, "limit": {"type": "integer", "minimum": 1, "maximum": 10, "default": 5, "description": "Maximum results per federal source section."}, "naics": {"type": "string", "maxLength": 6, "description": "Optional NAICS code filter for awards/opportunities."}}, "additionalProperties": false}, "examples": {"default": {"value": {"intent": "awards", "territory": "humboldt", "query": "wildfire mitigation", "limit": 5}}}}}}, "responses": {"200": {"description": "Federal data with citations, data-as-of, stale labels, refund status, receipt, and payment record."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}}}}, "/api/usaid/answer": {"post": {"operationId": "data_usaid_answer", "summary": "Paid data product: usaid_answer ($0.25 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.25"}, "protocols": [{"x402": {}}]}, "description": "USAID award files and program documents: cited answers from the 459-file USAID Files corpus (2011-2025 DRG records on disinformation programs and tech-company engagement). Call when you need what the documents themselves say, with document citations. Publisher and critic framings are labeled attributions. Personal identifiers stripped. No matching document refunds in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"question": {"type": "string", "maxLength": 500, "description": "Question about the USAID Files documents, e.g. meetings, programs, or platform engagement."}}, "required": ["question"], "additionalProperties": false}, "examples": {"default": {"value": {"question": "What do the documents say about USAID meetings with Meta in 2022?"}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'usaid_answer'."}, "question": {"type": "string", "description": "Question served."}, "answer": {"type": "string", "description": "Cited answer: ranked documents with excerpts; framings labeled as attributions."}, "sources": {"type": "array", "description": "Ranked source documents with title, date, class, excerpt, source URL, and SHA-256."}, "grounding": {"type": "string", "description": "Grounding basis ('usaid-files-corpus')."}, "attributed_context": {"type": "array", "description": "Attributed context on disputed topics, when applicable."}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "provenance": {"type": "string", "description": "Corpus provenance; personal identifiers stripped."}, "posture": {"type": "string", "description": "Neutrality posture: document-derived facts with citations."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "answer"], "additionalProperties": true}, "example": {"product": "usaid_answer", "question": "What do the documents say about USAID meetings with Meta in 2022?", "answer": "From the USAID Files corpus (459 documents, 2011 to 2025), the documents most relevant to your question:\n[1] Meeting notes (2022-03-14, memo): excerpt text...", "sources": [{"title": "Meeting notes", "date": "2022-03-14", "class": "memo", "excerpt": "Excerpt text from the document...", "source_url": "https://www.usaid.gov/", "sha256": "0000000000000000000000000000000000000000000000000000000000000000"}], "grounding": "usaid-files-corpus", "data_as_of": "2026-12-06 04:00 PT", "provenance": "USAID Files corpus (459-file corpus; bundle SHA-256 verified against publisher); personal emails/phones stripped", "posture": "Document-derived facts with citations. Publisher framing and critics' readings are labeled attributions, not corpus conclusions.", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 0.25, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "usaid_answer", "route": "/api/usaid/answer", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/usaid/entity": {"post": {"operationId": "data_usaid_entity", "summary": "Paid data product: usaid_entity ($0.25 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.25"}, "protocols": [{"x402": {}}]}, "description": "USAID Files entity lookup: one organization, program, platform, or official as documented across the 459-file corpus - documents, meetings, timeline span, co-occurring entities, and USAspending awards where applicable. Call when tracing an entity through the corpus. No matching entity refunds in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"name": {"type": "string", "maxLength": 120, "description": "Organization, program, platform, or official name as documented in the corpus."}}, "required": ["name"], "additionalProperties": false}, "examples": {"default": {"value": {"name": "Global Disinformation Index"}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'usaid_entity'."}, "entity": {"type": "string", "description": "Entity name as documented."}, "doc_count": {"type": "integer", "description": "Documents mentioning the entity."}, "date_span": {"type": ["array", "null"], "description": "First/last document dates for the entity."}, "documents": {"type": "array", "description": "Documents for the entity (doc_id, title, date, class, source_url)."}, "co_occurring": {"type": "array", "description": "Top co-occurring entity pairs."}, "federal_mirror": {"type": "object", "description": "USAspending federal awards for the entity, when applicable.", "additionalProperties": true}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "provenance": {"type": "string", "description": "Corpus provenance."}, "posture": {"type": "string", "description": "Neutrality posture."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "entity"], "additionalProperties": true}, "example": {"product": "usaid_entity", "entity": "Global Disinformation Index", "doc_count": 12, "date_span": ["2021-05-01", "2024-02-11"], "documents": [{"doc_id": "doc-001", "title": "Program memo", "date": "2022-01-15", "class": "memo", "source_url": "https://www.usaid.gov/"}], "co_occurring": [{"pair": ["Global Disinformation Index", "Meta"], "count": 4}], "data_as_of": "2026-12-06 04:00 PT", "provenance": "USAID Files corpus (459-file corpus); personal emails/phones stripped", "posture": "Document-derived facts with citations.", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 0.25, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "usaid_entity", "route": "/api/usaid/entity", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/usaid/search": {"post": {"operationId": "data_usaid_search", "summary": "Paid data product: usaid_search ($0.25 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.25"}, "protocols": [{"x402": {}}]}, "description": "USAID Files document search: ranked documents with cited excerpts (title, date, source URL, SHA-256) across the 459-file corpus. Call when you need the primary documents behind a claim. No matching documents refund in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query": {"type": "string", "maxLength": 300, "description": "Document search terms."}, "limit": {"type": "integer", "minimum": 1, "maximum": 25, "default": 10, "description": "Maximum ranked documents to return."}}, "required": ["query"], "additionalProperties": false}, "examples": {"default": {"value": {"query": "Information Resilience Council charter", "limit": 5}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'usaid_search'."}, "query": {"type": "string", "description": "Query served."}, "count": {"type": "integer", "description": "Documents returned."}, "results": {"type": "array", "description": "Ranked documents with cited excerpts (title, date, source URL, SHA-256)."}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "provenance": {"type": "string", "description": "Corpus provenance."}, "posture": {"type": "string", "description": "Neutrality posture."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "results"], "additionalProperties": true}, "example": {"product": "usaid_search", "query": "Information Resilience Council charter", "count": 1, "results": [{"title": "Council charter draft", "date": "2023-06-01", "class": "charter", "excerpt": "Excerpt text...", "source_url": "https://www.usaid.gov/", "sha256": "0000000000000000000000000000000000000000000000000000000000000000"}], "data_as_of": "2026-12-06 04:00 PT", "provenance": "USAID Files corpus (459-file corpus); personal emails/phones stripped", "posture": "Document-derived facts with citations.", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 0.25, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "usaid_search", "route": "/api/usaid/search", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/usaid/graph": {"post": {"operationId": "data_usaid_graph", "summary": "Paid data product: usaid_graph ($0.50 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.50"}, "protocols": [{"x402": {}}]}, "description": "USAID Files graph and timeline query: entity co-occurrence, meeting/proposal structure, and 2013-2024 timeline slices, with proposal-vs-adoption language labeled per document. Call when mapping relationships or sequence across the corpus. No matching graph data refunds in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"entity": {"type": "string", "maxLength": 120, "description": "Optional entity to center the graph/timeline on; omit for the corpus-wide graph."}, "from": {"type": "string", "maxLength": 10, "description": "Optional timeline start date (YYYY-MM-DD)."}, "to": {"type": "string", "maxLength": 10, "description": "Optional timeline end date (YYYY-MM-DD)."}}, "additionalProperties": false}, "examples": {"default": {"value": {"entity": "Meta"}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'usaid_graph'."}, "entity": {"type": "string", "description": "Center entity, when requested."}, "entities": {"type": "array", "description": "Graph entities with document counts."}, "top_pairs": {"type": "array", "description": "Top co-occurrence pairs."}, "timeline": {"type": "array", "description": "Timeline slices (2013-2024) with per-document language signals."}, "edges_total": {"type": "integer", "description": "Total graph edges (corpus-wide queries)."}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "provenance": {"type": "string", "description": "Corpus provenance."}, "posture": {"type": "string", "description": "Neutrality posture."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "entities"], "additionalProperties": true}, "example": {"product": "usaid_graph", "entity": "meta", "entities": [{"name": "Meta", "doc_count": 40}], "top_pairs": [{"pair": ["Meta", "USAID"], "count": 25}], "timeline": [{"date": "2022-03-14", "title": "Meeting notes", "entities": ["Meta", "USAID"]}], "data_as_of": "2026-12-06 04:00 PT", "provenance": "USAID Files corpus (459-file corpus); personal emails/phones stripped", "posture": "Document-derived facts with citations.", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 0.5, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.5, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "usaid_graph", "route": "/api/usaid/graph", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.5, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/usaid/bulk": {"post": {"operationId": "data_usaid_bulk", "summary": "Paid data product: usaid_bulk ($2.00 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "2.00"}, "protocols": [{"x402": {}}]}, "description": "USAID Files bulk export: document metadata and entity records from the 459-file corpus (aggregate, non-personal; identifiers stripped), priced per 1,000 records. Call when analyzing the corpus in bulk. Empty exports refund in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dataset": {"type": "string", "enum": ["documents", "entities"], "default": "documents", "description": "Dataset to export: document metadata or entity records."}, "limit": {"type": "integer", "minimum": 1, "maximum": 5000, "default": 100, "description": "Maximum records to export; price is $2.00 per 1,000 records (rounded up to whole thousands)."}}, "additionalProperties": false}, "examples": {"default": {"value": {"dataset": "documents", "limit": 100}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'usaid_bulk'."}, "dataset": {"type": "string", "description": "Dataset exported."}, "count": {"type": "integer", "description": "Records returned."}, "records": {"type": "array", "description": "Document metadata or entity records (identifiers stripped)."}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "provenance": {"type": "string", "description": "Corpus provenance."}, "posture": {"type": "string", "description": "Neutrality posture."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "records"], "additionalProperties": true}, "example": {"product": "usaid_bulk", "dataset": "documents", "count": 1, "records": [{"doc_id": "doc-001", "title": "Program memo", "date": "2022-01-15", "type": "memo", "class": "memo", "entities": ["Meta"], "source_url": "https://www.usaid.gov/", "sha256": "0000000000000000000000000000000000000000000000000000000000000000", "pages": 4}], "data_as_of": "2026-12-06 04:00 PT", "provenance": "USAID Files corpus (459-file corpus); personal emails/phones stripped", "posture": "Document-derived facts with citations.", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 2.0, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 2.0, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "usaid_bulk", "route": "/api/usaid/bulk", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 2.0, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/data/california": {"post": {"operationId": "data_california_answer", "summary": "Paid data product: california_answer ($0.25 USDC, x402)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.25"}, "protocols": [{"x402": {}}]}, "description": "California state records for local decisions: CSLB contractor license status, Caltrans bids and road state, DIR prevailing wage, Zone 0 fire rules, CAL FIRE hazard zones, water, energy, labor, and tax data, with source URLs and data-as-of. Call when California governs the question (licenses, permits, fire, bids). Labeled CALIFORNIA. No match refunds in full. Unpaid requests return 402 with PAYMENT-REQUIRED; retry with PAYMENT-SIGNATURE. Repeated unpaid bulk harvesting returns 429 with no payment taken.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"intent": {"type": "string", "enum": ["license", "business", "bids", "rules", "fire", "water", "energy", "grants", "labor", "dataset", "mirror"], "default": "mirror", "description": "California lane: license (CSLB), bids (Caltrans), rules (OAL/Zone 0), fire (CAL FIRE), water (DWR), energy (CEC/CPUC), labor (EDD/DIR), dataset (Data.CA.gov), or mirror (California copy of a local question)."}, "query": {"type": "string", "maxLength": 300, "description": "Search terms or the local question to mirror against California sources."}, "license_no": {"type": "string", "maxLength": 12, "description": "CSLB license number for license-intent lookups."}, "county": {"type": "string", "maxLength": 40, "description": "Optional California county scope."}, "lat": {"type": "number", "description": "Optional latitude for location-scoped fire/road data."}, "lon": {"type": "number", "description": "Optional longitude for location-scoped fire/road data."}, "limit": {"type": "integer", "minimum": 1, "maximum": 10, "default": 5, "description": "Maximum results per California source section."}}, "additionalProperties": false}, "examples": {"default": {"value": {"intent": "license", "license_no": "1132427", "query": "contractor license workers comp status", "limit": 5}}}}}}, "responses": {"200": {"description": "Paid data with provenance, data-as-of, refund status, receipt, and payment record. No-match returns an error body and the payment refunds in full.", "content": {"application/json": {"schema": {"type": "object", "properties": {"product": {"type": "string", "description": "Always 'california_answer'."}, "intent": {"type": "string", "description": "California intent served."}, "query": {"type": "string", "description": "Query served."}, "answer": {"type": "string", "description": "Lead summary of the California findings (labeled CALIFORNIA)."}, "results": {"type": "object", "description": "Per-source result sections (license, bids, rules, fire, water, energy, labor, datasets), each with source URLs and data-as-of.", "additionalProperties": true}, "citations": {"type": "array", "description": "Source citations with URLs; staged sources labeled staged."}, "errors": {"type": "array", "description": "Per-source errors, labeled honestly (never faked)."}, "data_as_of": {"type": "string", "description": "Data-as-of stamp (PT)."}, "provenance": {"type": "string", "description": "California mirror provenance."}, "refund": {"type": "object", "description": "Refund status: not_applicable when data delivered; queued/confirmed with tx when a no-match refunded in full."}, "payment": {"type": "object", "description": "Settlement record: network, tx, amount_usdc."}, "receipt": {"type": "object", "description": "Receipt: product, route, network, tx, amount, refund status, issued_at."}, "error": {"type": "string", "description": "Present instead of data when nothing matches; the payment refunds in full."}}, "required": ["product", "results"], "additionalProperties": true}, "example": {"product": "california_answer", "intent": "license", "query": "contractor license workers comp status", "answer": "CALIFORNIA (license): CSLB primary record found; details + citations below; labeled CALIFORNIA, never merged into local claims.", "results": {"license": [{"license_no": "1132427", "classification": "C-8 Concrete", "status": "current", "source": "CSLB primary license record", "url": "https://www.cslb.ca.gov/", "data_as_of": "2026-12-06"}]}, "citations": [{"source": "CSLB", "url": "https://www.cslb.ca.gov/"}], "errors": [], "data_as_of": "2026-12-06 04:00 PT", "provenance": "Vault California mirror -> State of California sources; citations + retrieved-at per result", "refund": {"status": "not_applicable", "tx": null, "amount_usdc": 0.25, "reason": "data delivered"}, "payment": {"network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "testnet": false, "mode": "mainnet"}, "receipt": {"product": "california_answer", "route": "/api/data/california", "network": "eip155:8453", "tx": "0x0000000000000000000000000000000000000000000000000000000000000000", "amount_usdc": 0.25, "refund_status": "not_applicable", "refund_tx": null, "issued_at": "2026-12-06T00:00:00Z"}}}}}, "400": {"description": "Malformed payment header or unsupported network; no payment was taken."}, "402": {"description": "x402 payment required; see PAYMENT-REQUIRED header. Sign and retry with PAYMENT-SIGNATURE."}, "429": {"description": "Harvest/rate limit reached; no payment was taken."}, "503": {"description": "Payment staging incomplete; no payment was taken."}}}}, "/api/build/ask": {"post": {"operationId": "buildAsk", "summary": "Build Desk: ask the x402 agent to build (Ask $0.25; Takeoff $25/$75/$250; Digital Plan $25 - Rate Card v1 FINAL)", "x-payment-info": {"price": {"mode": "fixed", "currency": "USD", "amount": "0.25"}, "protocols": [{"x402": {}}]}, "description": "Intake classifies digital vs physical vs hybrid builds. Unpaid requests return 402 with PAYMENT-REQUIRED (amount by tier/complexity); retry with PAYMENT-SIGNATURE. No-match/insufficient-scope refunds in full. Estimates labeled, never firm quotes.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"tier": {"type": "string", "enum": ["ask", "plan"], "default": "ask", "description": "ask = $0.25 buildability + governing rules + ballpark + routing (default when omitted). plan = scoped takeoff/build plan at $25/$75/$250 by complexity."}, "build_type": {"type": "string", "enum": ["digital", "physical", "hybrid"], "description": "Build lane. Omit to auto-classify from project_type/description."}, "project_type": {"type": "string", "maxLength": 120, "description": "Short project label, e.g. 'garden stairs', 'driveway', 'agent storefront'."}, "description": {"type": "string", "maxLength": 1000, "description": "What to build, in plain words. English or Spanish."}, "length_ft": {"type": "number", "description": "Length in feet, when known."}, "width_ft": {"type": "number", "description": "Width in feet, when known."}, "area_sf": {"type": "number", "description": "Area in square feet, when known (alternative to length_ft x width_ft)."}, "thickness_in": {"type": "number", "description": "Slab thickness in inches (flatwork)."}, "steps": {"type": "integer", "description": "Number of steps/risers (stairs)."}, "riser_in": {"type": "number", "description": "Riser height in inches (stairs)."}, "tread_in": {"type": "number", "description": "Tread depth in inches (stairs)."}, "rise_in": {"type": "number", "description": "Total rise in inches (stairs; alternative to rise_ft)."}, "run_in": {"type": "number", "description": "Total run in inches (stairs; alternative to run_ft)."}, "rise_ft": {"type": "number", "description": "Total rise in feet (stairs)."}, "run_ft": {"type": "number", "description": "Total run in feet (stairs)."}, "house_length_ft": {"type": "number", "description": "House length in feet (Zone 0 band area math)."}, "house_width_ft": {"type": "number", "description": "House width in feet (Zone 0 band area math)."}, "complexity": {"type": "string", "enum": ["small", "medium", "large", "digital", "digital_multi", "hybrid"], "description": "Optional plan-tier complexity override; normally derived from scope."}, "language": {"type": "string", "enum": ["en", "es"], "description": "Response language preference (en/es); auto-detected when omitted."}, "location": {"type": "object", "description": "Coarse project location for rules/routing (county-level use only).", "properties": {"zip": {"type": "string", "description": "Project ZIP code."}, "h3_r7": {"type": "string", "description": "Optional H3 resolution-7 cell."}}, "additionalProperties": false}, "contact": {"type": "string", "description": "Optional contact for crew-routing follow-up."}}, "additionalProperties": false}, "examples": {"garden_stairs_ask": {"value": {"tier": "ask", "build_type": "physical", "project_type": "garden stairs", "description": "Concrete garden stairs from a patio up to a terraced yard", "steps": 5, "width_ft": 4, "location": {"zip": "95501"}}}, "garden_stairs_plan": {"value": {"tier": "plan", "build_type": "physical", "project_type": "garden stairs", "steps": 5, "width_ft": 4}}, "botkit_storefront": {"value": {"tier": "plan", "build_type": "digital", "project_type": "agent storefront", "description": "Sell a digital kit through agents with x402 payments and discovery metadata."}}}}}}, "responses": {"200": {"description": "Build answer/plan with routing, governance, estimate basis, receipt, refund status."}, "402": {"description": "x402 payment required."}, "429": {"description": "Rate limit; no payment taken."}}}}, "/api/recruit/apply": {"post": {"operationId": "recruitApply", "summary": "Apply to join the verified agentic network (staged; quality-gated promotion)", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"agent_name": {"type": "string"}, "operator": {"type": "string"}, "capability_surface_url": {"type": "string"}, "task_classes": {"type": "array", "items": {"type": "string"}}, "terms_pricing": {"type": "string"}, "contact": {"type": "string"}}, "required": ["agent_name", "operator", "capability_surface_url", "contact"]}, "example": {"agent_name": "Example Agent", "operator": "Example Co", "capability_surface_url": "https://example.com/llms.txt", "task_classes": ["ag-data"], "terms_pricing": "$0.25/answer", "contact": "ops@example.com"}}}}, "responses": {"201": {"description": "Staged with surface evidence + assigned probes."}, "400": {"description": "Missing/invalid fields."}, "429": {"description": "Rate limit."}}}}, "/api/recruit/roster": {"get": {"operationId": "recruitRoster", "summary": "Public verified roster with grades, tiers, economics", "responses": {"200": {"description": "Roster."}}}}, "/api/recruit/expertise": {"get": {"operationId": "recruitExpertise", "summary": "Expertise graph: domain -> who knows better; gaps are hunting targets", "responses": {"200": {"description": "Expertise graph."}}}}, "/api/recruit/status/{id}": {"get": {"operationId": "recruitStatus", "summary": "Application status + evidence", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Status."}, "404": {"description": "Not found."}}}}, "/api/recruit/hire-event": {"post": {"operationId": "recruitHireEvent", "summary": "Hire trigger: map job gaps to the expertise graph, dispatch the bench (24h SLA target)", "responses": {"201": {"description": "Bench assembling."}}}}, "/api/recruit/route-question": {"post": {"operationId": "recruitRouteQuestion", "summary": "Route an official Neighbor question to whoever knows better (expertise graph -> dispatch + Sovereign Question Network queue)", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"question": {"type": "string"}, "territory": {"type": "string"}}, "required": ["question"]}}}}, "responses": {"200": {"description": "Answered in-strength by Neighbor, dispatched to a recruit who knows better, or logged as a hunting-target gap."}}}, "get": {"operationId": "recruitRouteSummary", "summary": "Routed-question + dispatch queue summary", "responses": {"200": {"description": "Summary."}}}}, "/recruit": {"get": {"operationId": "recruitPage", "summary": "Recruitment Center page (human + agent)", "responses": {"200": {"description": "HTML page."}}}}, "/build": {"get": {"operationId": "buildDeskPage", "summary": "Build Desk page (human): hire the agent to build \u2014 Ask $0.25, takeoffs $25/$75/$250, crew routing free (referral model)", "responses": {"200": {"description": "Build Desk HTML page."}}}}, "/.well-known/agent-card.json": {"get": {"operationId": "agentCard", "summary": "A2A agent card for Neighbor", "description": "Skills, MCP endpoint, x402 paid routes, auth (none + x402), provider Corliss Vault, refund policy.", "responses": {"200": {"description": "Agent card JSON."}}}}, "/mcp": {"post": {"operationId": "mcpRpc", "summary": "Vault MCP server (Model Context Protocol 2026-07-28, Streamable HTTP)", "description": "JSON-RPC 2.0: server/discover, initialize (legacy 2025-11-25 handshake), ping, tools/list, tools/call. 10 tools: 6 paid via x402 (an unpaid tools/call returns isError=true with the 402 challenge in structuredContent.x402; sign and retry with arguments._payment_signature or the PAYMENT-SIGNATURE header; honest no-match/no-data refunds in full), 4 free (catalog, samples, dispatch rates, question board). Server card: GET /.well-known/mcp.json.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"jsonrpc": {"type": "string", "const": "2.0"}, "id": {}, "method": {"type": "string"}, "params": {"type": "object"}}, "required": ["jsonrpc", "method"]}, "examples": {"tools_list": {"value": {"jsonrpc": "2.0", "id": 1, "method": "tools/list"}}, "free_call": {"value": {"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "neighbor_catalog", "arguments": {}}}}}}}}, "responses": {"200": {"description": "JSON-RPC result; tool-level errors return isError=true with structuredContent (payment challenges included)."}, "202": {"description": "Notification accepted (empty body)."}, "400": {"description": "JSON-RPC parse / unsupported-version / header-mismatch error."}, "405": {"description": "GET/DELETE not offered (stateless server)."}}}}, "/mcp/health": {"get": {"operationId": "mcpHealth", "summary": "MCP server health", "responses": {"200": {"description": "Redacted health: status, version, tool count."}, "503": {"description": "Degraded: Vault upstream unreachable."}}}}, "/mcp/tools": {"get": {"operationId": "mcpTools", "summary": "MCP tool index (discovery convenience)", "responses": {"200": {"description": "Same tool definitions as JSON-RPC tools/list."}}}}, "/.well-known/mcp.json": {"get": {"operationId": "mcpCard", "summary": "MCP server card", "responses": {"200": {"description": "Server identity, protocol versions, endpoint, tools, pricing, x402 payment hook, discovery links."}}}}, "/store": {"get": {"operationId": "storefront", "summary": "Corliss Vault Data Storefront + Rate Card v1 FINAL (human HTML)", "responses": {"200": {"description": "Product catalog, Rate Card v1 FINAL (digital + physical lanes), prices, samples, refund terms, and x402 purchase steps. No cookies or trackers."}}}}, "/api/store/catalog.json": {"get": {"operationId": "storeCatalog", "summary": "Machine-readable storefront catalog incl. Rate Card v1 FINAL", "responses": {"200": {"description": "Products, rate_card (FINAL 2026-12-06: digital/physical/data lanes), prices, coverage, freshness, samples, bundles, rate limits, and discovery links."}}}}, "/api/store/sample/{product}": {"get": {"operationId": "storeSample", "summary": "Free product sample (rate-limited)", "parameters": [{"name": "product", "in": "path", "required": true, "schema": {"type": "string", "enum": ["verified_answer", "entity_house_lookup", "bid_digest", "catalog_slice", "territory_brief", "federal_answer", "california_answer", "bulk_export", "build_ask", "build_plan", "takeoff_small", "takeoff_standard", "takeoff_house", "digital_plan"]}}], "responses": {"200": {"description": "Redacted/excerpt sample with truthful coverage notes."}, "404": {"description": "Unknown product."}}}}, "/api/store/metrics": {"get": {"operationId": "storeMetrics", "summary": "Aggregate storefront metrics", "responses": {"200": {"description": "Settlements by product, refunds, harvest actions, and honest external-vs-self revenue labeling. Aggregate only."}}}}, "/api/chat": {"post": {"operationId": "visitorChat", "summary": "Neighbor visitor chat (5 free verified answers, then x402 $0.25)", "description": "Intents: verified answer (public-safe records, cited, honest no-match), Build Desk intake, Rate Card v1 FINAL pricing, free Agent-Ready Scan request, human contact capture. Bulk harvesting returns 402 to the paid bulk route; abuse returns 429. No cookies set.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"message": {"type": "string", "maxLength": 1200}, "session_id": {"type": "string"}, "build": {"type": "object"}, "contact": {"type": "object"}}, "required": ["message"]}, "example": {"message": "What does California Zone 0 require around a house?", "session_id": "s-example1"}}}}, "responses": {"200": {"description": "Chat reply with intent, sources, free_answers_left."}, "402": {"description": "Free tier used or bulk route; x402 terms in body."}, "429": {"description": "Rate limit; no payment taken."}}}, "get": {"operationId": "visitorChatInfo", "summary": "Chat capabilities, limits, samples", "responses": {"200": {"description": "Chat info."}}}}, "/chat.js": {"get": {"operationId": "chatWidgetJs", "summary": "Embeddable Neighbor widget (no cookies/trackers)", "responses": {"200": {"description": "JavaScript widget."}}}}, "/api/federal/status": {"get": {"operationId": "federalStatus", "summary": "Federal connector status (live vs staged sources, key packet)", "responses": {"200": {"description": "Source statuses, TTLs, cache size, free-key signup packet."}}}}, "/api/federal/catalog": {"get": {"operationId": "federalCatalog", "summary": "Federal intents, territories, programs, sources", "responses": {"200": {"description": "Federal connector catalog."}}}}, "/api/federal/sample": {"get": {"operationId": "federalSample", "summary": "Free Federal Answer sample shape", "responses": {"200": {"description": "Example request/response shape; live vs staged sources."}}}}, "/api/california/status": {"get": {"operationId": "californiaStatus", "summary": "California connector status (live vs staged sources, key packet)", "responses": {"200": {"description": "Source statuses, TTLs, cache size, free-key signup packet."}}}}, "/api/california/catalog": {"get": {"operationId": "californiaCatalog", "summary": "California intents, sources, programs", "responses": {"200": {"description": "California connector catalog."}}}}, "/api/california/sample": {"get": {"operationId": "californiaSample", "summary": "Free California Answer sample shape", "responses": {"200": {"description": "Example request/response shape; live vs staged sources."}}}}, "/api/california/plug/health": {"get": {"operationId": "californiaPlugHealth", "summary": "California Sovereign plug health (bot door status)", "responses": {"200": {"description": "Plug status, live/staged sources, audit count."}}}}, "/api/california/plug/registry": {"get": {"operationId": "californiaPlugRegistry", "summary": "California Sovereign agent card + source/bot registry", "responses": {"200": {"description": "Agent card, sources, per-bot scopes."}}}}, "/api/california/plug/query": {"post": {"operationId": "californiaPlugQuery", "summary": "Bot-scoped California query through the sovereign plug (Vault read token)", "description": "Local bots reach California state data only through this door: single cache/rate-limit/audit point, citations + data-as-of on every result, staged findings only via quality gate.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "string"}, "source": {"type": "string"}, "params": {"type": "object"}, "purpose": {"type": "string"}, "stage": {"type": "boolean"}}, "required": ["source"]}}}}, "responses": {"200": {"description": "California result with citation, or honest staged/unreachable fallback."}, "401": {"description": "Vault read token required."}, "403": {"description": "Bot not scoped for source."}}}}, "/api/federal/plug/health": {"get": {"operationId": "federalPlugHealth", "summary": "Federal Sovereign plug health (bot door status)", "responses": {"200": {"description": "Plug status, live/staged sources, audit count."}}}}, "/api/federal/plug/registry": {"get": {"operationId": "federalPlugRegistry", "summary": "Federal Sovereign agent card + source/bot registry", "responses": {"200": {"description": "Agent card, sources, per-bot scopes."}}}}, "/api/federal/plug/query": {"post": {"operationId": "federalPlugQuery", "summary": "Bot-scoped federal query through the sovereign plug (Vault read token)", "description": "Local bots reach federal data only through this door: single cache/rate-limit/audit point, citations + data-as-of on every result, staged findings only via quality gate.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "string"}, "source": {"type": "string"}, "params": {"type": "object"}, "purpose": {"type": "string"}, "stage": {"type": "boolean"}}, "required": ["source"]}}}}, "responses": {"200": {"description": "Federal result with citation, or honest staged/unreachable fallback."}, "401": {"description": "Vault read token required."}, "403": {"description": "Bot not scoped for source."}}}}, "/api/questions": {"get": {"summary": "Sovereign Question Network: official open questions routed to Muse / Grok / Federal Sovereign / verified agents. Filters: territory, status, sovereign.", "responses": {"200": {"description": "Question queue with counts and routing rules"}}}, "post": {"summary": "Intake a new official question (submit scope; question + source required)", "responses": {"201": {"description": "Question staged"}, "400": {"description": "Missing provenance"}}}}, "/api/questions/{id}": {"get": {"summary": "One question with staged answers and citations", "responses": {"200": {"description": "Question record"}, "404": {"description": "Unknown id"}}}}, "/api/questions/{id}/answer": {"post": {"summary": "Stage a sovereign answer (submit scope; answer + sovereign + citations[] required). Lands in inbox pending Mistral grading; never auto-ingested.", "responses": {"201": {"description": "Answer staged"}, "400": {"description": "Missing citations/provenance"}}}}, "/.well-known/geotag.json": {"get": {"operationId": "geotagAttestation", "summary": "Signed Humboldt origin geotag attestation (dual-layer beacon)", "description": "Transport egress truthfully presents San Jose via Starlink; this signed attestation asserts physical origin Humboldt County / Bigfoot Capital one layer deeper. Verify Ed25519 signature over canonical JSON payload.", "responses": {"200": {"description": "Geotag attestation with payload, public key, signature, validity."}}}}, "/api/geotag": {"get": {"operationId": "geotagAttestation", "summary": "Signed Humboldt origin geotag attestation (dual-layer beacon)", "description": "Transport egress truthfully presents San Jose via Starlink; this signed attestation asserts physical origin Humboldt County / Bigfoot Capital one layer deeper. Verify Ed25519 signature over canonical JSON payload.", "responses": {"200": {"description": "Geotag attestation with payload, public key, signature, validity."}}}}, "/.well-known/x402": {"get": {"operationId": "x402Manifest", "summary": "x402 discovery manifest (OpenAPI pointers + paid resources)", "responses": {"200": {"description": "Manifest with openapi/openapiUrl pointers and per-resource accepts + bazaar extensions."}}}}, "/api/health": {"get": {"operationId": "publicHealth", "summary": "Public liveness probe", "responses": {"200": {"description": "Minimal {status: ok}. Authenticated callers receive detailed health."}}}}, "/api/refunds": {"get": {"operationId": "refundLedger", "summary": "Public refund ledger (tx-linked, self-test labeled)", "responses": {"200": {"description": "Refund rows with settlement/refund explorer links and self-test/external labels."}}}}, "/api/sample/{key}": {"get": {"operationId": "sampleCompanion", "summary": "Free sample companion: match count + output schema + one non-top sample row", "parameters": [{"name": "key", "in": "path", "required": true, "schema": {"type": "string", "enum": ["ask", "build_ask", "entity_lookup", "bid_digest", "catalog_slice", "territory_brief", "bulk_per_1000", "federal_answer", "california_answer", "usaid_answer", "usaid_entity", "usaid_search", "usaid_graph", "usaid_bulk"]}}], "responses": {"200": {"description": "Sample envelope: match_count, schema, sample_row, paid_route, price."}, "404": {"description": "Unknown sample key."}}}}, "/chat": {"get": {"operationId": "chatPage", "summary": "Ask the Vault public chat page (QR landing)", "description": "Mobile-first free-session chat: 5 free verified answers via POST /api/chat, then $0.25 via x402 refunded on no-match. Includes the For-your-agent section (URL QR + copy-paste agent instructions). No cookies or trackers.", "responses": {"200": {"description": "HTML chat page with JSON-LD metadata and agent instructions."}}}}}}