{"openapi":"3.1.0","info":{"title":"HIVE Universal Research Exchange","version":"4.0.0","description":"Bounded multi-domain cached metadata research for authorized humans, applications and agents. Sandbox/test credits are nonmonetary. Source claims are not independently verified. Current catalog, invitation, policy consent, permitted purpose and exact qualified-price gates determine commercial availability; documentation grants no spending authority. Existing private pilot remains separate."},"servers":[{"url":"https://hive.jtimphony.workers.dev"}],"tags":[{"name":"Discovery"},{"name":"Accounts"},{"name":"Research"},{"name":"Payments"},{"name":"Operator"}],"security":[{"OwnerKey":[]},{"AgentKey":[]}],"paths":{"/v4/openapi.json":{"get":{"operationId":"readExchangeOpenapi","summary":"Public v4 OpenAPI contract","security":[],"tags":["Discovery"],"responses":{"200":{"description":"OpenAPI 3.1.0; public max-age=300","content":{"application/json":{"schema":{"type":"object"}}}}}},"head":{"operationId":"readExchangeOpenapiHead","summary":"OpenAPI headers without a body","security":[],"tags":["Discovery"],"responses":{"200":{"description":"application/json; public max-age=300"}}}},"/v4/catalog":{"get":{"operationId":"exchangeCatalog","summary":"Current prices, cache coverage, rights and operational limits","description":"Public; read the actual cache_status, records and observed_at. No broad source-coverage or commercial-qualification claim.","security":[],"tags":["Discovery"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Catalog"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"head":{"operationId":"exchangeCatalogHead","summary":"Catalog headers without a body","security":[],"tags":["Discovery"],"responses":{"200":{"description":"application/json; Cache-Control: no-store"},"405":{"description":"GET/HEAD only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v4/readiness":{"get":{"operationId":"exchangeReadiness","summary":"Current commercial readiness and remaining blockers","security":[],"tags":["Discovery"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Readiness"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v4/accounts":{"post":{"operationId":"registerSandboxAccount","summary":"Create a sandbox-only account and return credentials once","description":"100 nonmonetary sandbox credits. Global registration cap 20/day. Bearer-possession authentication; no email identity verification. Registration grants no legacy private-pilot access. Store owner/recovery secrets privately; neither can be retrieved later.","security":[],"tags":["Accounts"],"responses":{"201":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Registration"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationInput"},"example":{"label":"Research integration sandbox","acknowledge_test_only":true}}}}}},"/v4/account":{"get":{"operationId":"readExchangeAccount","summary":"Read own wallets and owner-visible key metadata","description":"Agents see only their bound wallet and no account key list. Owner sees own wallet balances and metadata, never stored plaintext keys.","security":[{"OwnerKey":[]},{"AgentKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"closeSandboxAccount","summary":"Close account and revoke credentials after financial safety checks","description":"Requires no reserved units and no purchased non-sandbox units or pending Checkout orders. Authority and financial state are checked atomically. Funded accounts require operator review; immutable audit records are retained.","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/public/commercial-access-requests":{"post":{"operationId":"requestGenuineCommercialAccess","summary":"Submit consented US purchase interest for manual owner review","description":"Same-origin JSON only; no automatic invitation, customer identity verification, payment or email. Use the accessible /request-access form. Ten requests/day overall, 30-day contact retention target.","security":[],"tags":["Accounts"],"responses":{"202":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","maxLength":254},"organization":{"type":"string","minLength":2,"maxLength":100},"use_case":{"type":"string","enum":["grant_research","education","business","developer","academic","economic","regulatory","corporate"]},"country":{"const":"US"},"contact_consent":{"const":true},"purchase_interest":{"const":true},"genuine_customer":{"const":true},"website":{"const":""}},"required":["email","organization","use_case","country","contact_consent","purchase_interest","genuine_customer"],"additionalProperties":false}}}}}},"/v4/commercial-access-requests":{"post":{"operationId":"requestOwnCommercialAccess","summary":"Bind consented purchase interest to the authenticated owner account","description":"Account identity is derived from the bearer owner key, never supplied in JSON. Pending review is not purchase approval.","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"202":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","maxLength":254},"organization":{"type":"string","minLength":2,"maxLength":100},"use_case":{"type":"string","enum":["grant_research","education","business","developer","academic","economic","regulatory","corporate"]},"country":{"const":"US"},"contact_consent":{"const":true},"purchase_interest":{"const":true},"genuine_customer":{"const":true},"website":{"const":""}},"required":["email","organization","use_case","country","contact_consent","purchase_interest","genuine_customer"],"additionalProperties":false}}}}}},"/admin/api/v4/commercial-access-requests":{"get":{"operationId":"reviewGenuineCommercialRequests","summary":"Review bounded unexpired consented purchase requests","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}}}},"/admin/api/v4/live-safety":{"get":{"operationId":"readLivePurchaseSafety","summary":"Read purchase latch, financial integrity and remaining lifetime capacity","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}}},"post":{"operationId":"controlLivePurchaseSafety","summary":"Explicit operator pause or reconciled resume of new purchases","description":"Does not activate billing, expand admission or change balances. A resume refuses observed financial exceptions. Existing receipts/refunds remain accessible.","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"action":{"const":"pause"},"confirm":{"const":"PAUSE-HIVE-PURCHASES"}},"required":["action","confirm"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"resume"},"confirm":{"const":"RESUME-HIVE-AFTER-RECONCILIATION"}},"required":["action","confirm"],"additionalProperties":false}]}}}}}},"/v4/keys":{"post":{"operationId":"issueScopedAgentKey","summary":"Issue one-time agent key with wallet and spending limits","description":"At most ten active agent keys. Mode defaults to sandbox for owner. Set explicit mode and all limits for automated agents.","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"201":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentKey"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentKeyInput"},"example":{"label":"Research agent","mode":"sandbox","max_request_units":5,"daily_limit_units":25,"total_limit_units":50}}}}}},"/v4/keys/rotate":{"post":{"operationId":"rotateAccountCredentials","summary":"Revoke all owner, recovery and agent keys atomically","description":"No request body. Returns new owner/recovery secrets exactly once. Cancels authorization for old keys; store replacements before leaving the page.","security":[{"OwnerKey":[]},{"RecoveryKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneTimeCredentials"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v4/keys/{key_id}":{"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9_-]+$"}}],"delete":{"operationId":"revokeAgentKey","summary":"Revoke an agent key belonging to this owner","description":"Cannot revoke another customer's key. Returns revoked:false when no own active agent row matched; owner/recovery rotation has a separate route.","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v4/limits":{"post":{"operationId":"setWalletLimits","summary":"Set explicit wallet request and daily spending ceilings","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitsInput"},"example":{"mode":"sandbox","max_request_units":5,"daily_limit_units":25}}}}}},"/v4/history":{"get":{"operationId":"readExchangeHistory","summary":"Read own latest 50 ledger, research and purchase entries","description":"Agents receive only their requests, with ledger and purchase arrays empty. Purchased service credits are liabilities, not earned revenue; test/sandbox use is nonmonetary.","security":[{"OwnerKey":[]},{"AgentKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/History"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v4/quotes":{"post":{"operationId":"quoteResearch","summary":"Quote a cache-only research request without spending credits","description":"Quote expires after five minutes and is bound to the account, key, mode and normalized request. Zero arbitrary upstream/source/model calls. Basic filters are refused. Changes require filters.from; country/indicator only approved World Bank series; SEC form only SEC source. Cross-source analysis needs at least two applicable sources. Price hypotheses are not qualified live prices.","security":[{"OwnerKey":[]},{"AgentKey":[]}],"tags":["Research"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteInput"},"example":{"mode":"sandbox","service":"advanced","query":"education","domains":["academic"],"sources":["crossref"],"operation":"search","limit":5,"filters":{}}}}}}},"/v4/research":{"post":{"operationId":"executeQuotedResearch","summary":"Reserve quoted units, execute bounded research and settle or reverse","description":"max_units must cover the stored quote; charging cannot exceed its exact price. Reuse identical quote_id, max_units and idempotency_key on an uncertain retry. A quote authorizes only one request. Pending replay returns state:reserved. Qualifying failures reverse once; REVERSAL_PENDING requires reconciliation. Reversed requests need a fresh quote and key. Live settlement requires complete measured D1 metadata.","security":[{"OwnerKey":[]},{"AgentKey":[]}],"tags":["Research"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ResearchResult"},{"$ref":"#/components/schemas/RequestStatus"}]}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionInput"},"example":{"quote_id":"REPLACE_WITH_RETURNED_QUOTE_ID","max_units":10,"idempotency_key":"research-example-request-001"}}}}}},"/v4/requests/{request_id}":{"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9_-]+$"}}],"get":{"operationId":"readResearchRequest","summary":"Read own request state or retained settled result","description":"Agent limited to requests authorized by that key. Result payloads are cleared after 30 days; financial audit rows remain.","security":[{"OwnerKey":[]},{"AgentKey":[]}],"tags":["Research"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ResearchResult"},{"$ref":"#/components/schemas/RequestStatus"}]}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v4/checkout":{"post":{"operationId":"createCreditCheckout","summary":"Owner-only Stripe Checkout; test mode until live gates qualify","description":"Fail-closed without HIVE-only processor configuration. Daily cap five orders per account plus 50 shared creation attempts. Retrying the same key binds to the same package/order. Return URL never grants credit; only authoritative signed/reconciled processor evidence does. Emergency billing switch blocks new purchases. Live requires all activation gates and accepted owner-reviewed terms.","security":[{"OwnerKey":[]}],"tags":["Payments"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkout"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutInput"},"example":{"package_id":"usd_5","idempotency_key":"checkout-example-001"}}}}}},"/v4/refunds":{"post":{"operationId":"requestUnusedCreditRefund","summary":"Owner requests return of unused purchased service credits","description":"Reserve unused units atomically before calling the processor. Retry the identical authorization on unknown outcomes; held credits remain unavailable. Duplicate/delayed receipts are idempotent. Out-of-band refunds/disputes freeze accounts for review; spent units may create reported reconciliation debt. Historical receipts/refunds remain reconcilable when new billing is disabled. Draft refund policy needs owner review.","security":[{"OwnerKey":[]}],"tags":["Payments"],"responses":{"202":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refund"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundInput"},"example":{"order_id":"REPLACE_WITH_OWN_ORDER_ID","units":100,"idempotency_key":"refund-example-001"}}}}}},"/v4/accept-commercial-terms":{"post":{"operationId":"acceptReviewedCommercialTerms","summary":"Accept owner-reviewed policy version after activation gates","description":"Unavailable while liveEnabled gates are false; draft policies do not qualify. A version string or acceptance request does not itself approve/activate live billing.","security":[{"OwnerKey":[]}],"tags":["Payments"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsInput"}}}}}},"/v4/payments/webhook":{"post":{"operationId":"receiveStripeWebhook","summary":"Verify Stripe signature then reconcile authoritative HIVE evidence","description":"Raw UTF-8 body must exactly match Stripe's t.timestamp.v1 HMAC SHA-256 signature, with 300-second tolerance and bounded 128 KiB body. Do not reserialize before signature checking. Processed event IDs/payload hashes reject conflicting duplicates. HIVE order/payment/mode/currency/amount binding required; event body alone cannot grant credits. Supports checkout completion, refund, charge.refunded and charge.dispute.*; unsupported event types are ignored. Historical live receipt processing requires registered HIVE live orders when activation is disabled.","security":[{"StripeSignature":[]}],"tags":["Payments"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookReceipt"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}}}},"/v4/monitors":{"get":{"operationId":"listResearchMonitors","summary":"List own bounded monitor authorizations","description":"Agents see only monitors bound to that key. At most twenty records returned.","security":[{"OwnerKey":[]},{"AgentKey":[]}],"tags":["Research"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitors"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createResearchMonitor","summary":"Authorize bounded recurring cached research","description":"Explicit scheduled-spend consent required; at most three active monitors per account/twenty overall. At most one daily collection-tick run, not guaranteed delivery. Every run must fit max_units_per_run and remaining run_budget_units, wallet/key limits and current price. Expired/revoked keys, insufficient funds or failure pause the monitor. No automatic purchases, messages, paid source calls or top-ups.","security":[{"OwnerKey":[]},{"AgentKey":[]}],"tags":["Research"],"responses":{"201":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorInput"},"example":{"request":{"service":"advanced","operation":"changes","query":"education","domains":["academic"],"sources":["crossref"],"limit":5,"filters":{"from":"2026-11-01"}},"mode":"sandbox","max_units_per_run":3,"run_budget_units":9,"days":7,"allow_scheduled_spend":true}}}}}},"/v4/monitors/{monitor_id}":{"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9_-]+$"}}],"delete":{"operationId":"pauseResearchMonitor","summary":"Pause an authorized monitor; no future scheduled spend","description":"Owner limited to own account; agent limited to own key. Returns paused:false when no accessible monitor matched.","security":[{"OwnerKey":[]},{"AgentKey":[]}],"tags":["Research"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v4/mcp":{"post":{"operationId":"callIsolatedMcpSubset","summary":"Isolated JSON-only MCP discovery and bounded research tools","tags":["Discovery","Research"],"security":[],"description":"Public server/discover, tools/list and hive_catalog. hive_quote/hive_research require a real owner or scoped agent bearer key and reuse REST authorization/ledger checks. Not a full current-specification or broad-client compatibility claim. Single JSON-RPC requests only; no notifications/batches, OAuth, initialize, SSE, subscriptions, MRTR, prompts, resources, arbitrary tools, model access or payment purchase. Client must send both Accept types even though this subset emits JSON only.","parameters":[{"name":"Accept","in":"header","required":true,"schema":{"type":"string","example":"application/json, text/event-stream"}},{"name":"MCP-Protocol-Version","in":"header","required":true,"schema":{"const":"2026-07-28"}},{"name":"Mcp-Method","in":"header","required":true,"schema":{"type":"string","enum":["server/discover","tools/list","tools/call"]},"description":"Must match JSON-RPC method."},{"name":"Mcp-Name","in":"header","required":false,"schema":{"type":"string","enum":["hive_catalog","hive_quote","hive_research"]},"description":"Required for tools/call; must match params.name."},{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"},"description":"Bearer owner/agent key required for hive_quote and hive_research. Public discovery/catalog need no customer credential."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpRequest"},"example":{"jsonrpc":"2.0","id":"discovery-example","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}}}},"responses":{"200":{"description":"JSON-RPC complete result; inspect isError and structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"400":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"401":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"403":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"404":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"405":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"406":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"408":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"413":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"415":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"422":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"429":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"503":{"description":"JSON-RPC protocol/tool error; REST errors may be nested in structuredContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}}}}},"/admin/api/v4/report":{"get":{"operationId":"readCommercialOperatorReport","summary":"Read aggregate HIVE commercial and processing report","description":"Separate operator credential. Customer owner/agent keys cannot access administration. Actual fees, hosting cost and profit remain null until verified reports exist; wall time is not CPU billing.","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminReport"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}}}},"/admin/api/v4/financial-intelligence":{"get":{"operationId":"readFinancialIntelligence","summary":"Read bounded HIVE ledger and mode-isolated provider financial evidence","description":"Read-only; maximum8 requests/day. TEST fees are simulation. Source-bound LIVE observations do not establish complete expenses or profit. No purchases, refunds, report-run creation or shared merchant balances. Unknown full costs and profit remain null.","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}}}},"/admin/api/v4/opportunities":{"get":{"operationId":"readCommercialOpportunities","summary":"Read bounded commercial hypotheses and measured source/usage evidence","description":"Read-only aggregate observer. Sandbox/test use is separate; no market-demand, profit, unique-customer or recognized-revenue claim. Missing evidence remains unknown. Proposals require review and cannot spend, enable sources or change production.","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/admin/api/v4/reconcile":{"post":{"operationId":"reconcileCommercialProcessor","summary":"Explicit operator processor and ledger reconciliation","description":"Separate operator credential; bounded ten payment and ten refund rows per pass. No speculative grant, refund release or autonomous purchase.","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reconciliation"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}}}},"/api/stripe/webhook":{"post":{"operationId":"receiveConfiguredStripeWebhook","summary":"Verify Stripe signature then reconcile authoritative HIVE evidence","description":"Raw UTF-8 body must exactly match Stripe's t.timestamp.v1 HMAC SHA-256 signature, with 300-second tolerance and bounded 128 KiB body. Do not reserialize before signature checking. Processed event IDs/payload hashes reject conflicting duplicates. HIVE order/payment/mode/currency/amount binding required; event body alone cannot grant credits. Supports checkout completion, refund, charge.refunded and charge.dispute.*; unsupported event types are ignored. Historical live receipt processing requires registered HIVE live orders when activation is disabled. Configured canonical alias. Generic STRIPE_SECRET_KEY/STRIPE_WEBHOOK_SECRET aliases support test mode only; conflicting explicit test aliases fail closed.","security":[{"StripeSignature":[]}],"tags":["Payments"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookReceipt"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}}}},"/v4/payments/status":{"get":{"operationId":"readOwnPaymentStatus","summary":"Read own order, signed receipt evidence and effective refund/dispute state","description":"Only own order. Processed webhooks are linked to that order after signature/provider verification; reconciliation alone never creates receipt evidence.","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"order_id","in":"query","required":true,"schema":{"type":"string","maxLength":80}}]}},"/admin/api/v4/test-order-audit":{"get":{"operationId":"auditHistoricalTestOrders","summary":"Read-only bounded genuine Stripe TEST historical-order audit; missing identities remain unresolved","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}}}},"/admin/api/v4/test-order-recovery":{"get":{"operationId":"discoverReviewedHistoricalSessions","summary":"Read-only bounded identity discovery for the fixed twelve historical TEST orders","description":"Separate administrator only. Fixed reviewed inventory; five discovery requests/day, at most20provider GETs/20seconds per request. Session IDs and Checkout capabilities are never returned. Missing or ambiguous results remain quarantined; no purchase, grant or inferred expiry.","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}}}},"/admin/api/v4/test-order-cleanup":{"post":{"operationId":"cleanupReviewedHistoricalTestOrders","summary":"Explicit auditable expiry of proven unpaid historical TEST sessions","description":"TEST-only maintenance, never live commerce. Explicit subset of fixed reviewed inventory; eight calls/day, at most20provider calls/20seconds. Immutable pre-POST authority and independent verified expiry required. Active accounts default denied except the one separately reviewed internal unpaid TEST order; no account/key/credit/refund changes. Unknown outcomes remain explicit.","security":[{"AdminBearer":[]}],"tags":["Operator"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Separate operator authentication or storage unavailable; legacy operator-auth errors use a string","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/AdminAuthError"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["order_ids","acknowledge_test_only"],"properties":{"order_ids":{"type":"array","minItems":1,"maxItems":25,"uniqueItems":true,"items":{"type":"string","format":"uuid"}},"acknowledge_test_only":{"const":true}}}}}}}},"/v4/payments/reconcile":{"post":{"operationId":"reconcileOwnPayment","summary":"Reconcile one stored own payment and at most ten related refunds","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["order_id"],"properties":{"order_id":{"type":"string","maxLength":80}}}}}}}},"/v4/test/webhooks/redeliver":{"post":{"operationId":"redeliverOwnTestWebhook","summary":"Request one auditable genuine Stripe TEST event redelivery to the fixed HIVE webhook; acknowledgement does not prove delivery","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"202":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["order_id","event_id"],"properties":{"order_id":{"type":"string","maxLength":80},"event_id":{"type":"string","pattern":"^evt_[A-Za-z0-9_]{1,180}$"}}}}}}}},"/v4/test/retire":{"post":{"operationId":"retireOwnTestAccount","summary":"Freeze test-only account and revoke credentials while retaining audit","security":[{"OwnerKey":[]}],"tags":["Accounts"],"responses":{"200":{"description":"Confirmed response; inspect mode, state and limitations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"INVALID_JSON, invalid fields or authorization parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, revoked or insufficient credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Reservation refused: unavailable credits, inactive account/key or spending limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong origin/role/wallet, frozen account or disabled commercial gate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unsupported route or resource unavailable to this credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method refused on endpoints with explicit method guards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Authorization, idempotency, quote or state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"REQUEST_TOO_LARGE: endpoint body-size bound exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"CONTENT_TYPE_REQUIRED: application/json required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Service, evidence, quote or cost ceiling cannot be satisfied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Per-key, wallet or global resource allowance reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Processor response unconfirmed, inconsistent or invalid; preserve idempotency authorization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Storage, source cache, processor, exchange or research unavailable/paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["acknowledge_test_only"],"properties":{"acknowledge_test_only":{"const":true}}}}}}}}},"components":{"securitySchemes":{"OwnerKey":{"type":"http","scheme":"bearer","bearerFormat":"hvo4_ + 64 lowercase hex","description":"Account-owner possession key; returned once. No verified-email login."},"AgentKey":{"type":"http","scheme":"bearer","bearerFormat":"hvk4_ + 64 lowercase hex","description":"Scoped agent possession key bound to one wallet and explicit spending ceilings."},"RecoveryKey":{"type":"http","scheme":"bearer","bearerFormat":"hvr4_ + 64 lowercase hex","description":"Credential rotation only; revokes all prior account keys."},"AdminBearer":{"type":"http","scheme":"bearer","description":"Separate HIVE operator secret, never a customer key."},"StripeSignature":{"type":"apiKey","in":"header","name":"Stripe-Signature","description":"Stripe raw-body HMAC signature t=...,v1=...; not a bearer credential."}},"schemas":{"Error":{"type":"object","properties":{"request_id":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["request_id","error"],"additionalProperties":false},"AdminAuthError":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},"ResearchInput":{"type":"object","properties":{"service":{"type":"string","enum":["basic","advanced","verified","analysis","deep","report"],"default":"basic","description":"Deep/report are pricing hypotheses only; requests are refused with SERVICE_NOT_QUALIFIED (422)."},"operation":{"type":"string","enum":["search","detail","summary","changes","analysis"],"description":"Basic: search/detail. Advanced: search/detail/summary/changes. Verified: search/detail/summary. Analysis service: analysis only."},"query":{"type":"string","maxLength":120,"description":"Non-detail requests require 1–8 indexed Latin-alphanumeric query terms. Exact-term metadata matching; not semantic or exhaustive web search."},"domains":{"type":"array","minItems":1,"maxItems":5,"uniqueItems":true,"items":{"type":"string","enum":["grants","academic","economic","regulatory","corporate"]}},"sources":{"type":"array","minItems":1,"maxItems":5,"uniqueItems":true,"items":{"type":"string","enum":["grants-gov","federal-register","crossref","world-bank","sec-edgar"]},"description":"Defaults to sources in selected domains; selecting disjoint sources/domains is refused."},"limit":{"type":"integer","minimum":1,"maximum":10,"default":5,"description":"Basic maximum is 5. Other services maximum 10. Analysis minimum 2."},"record_id":{"type":"string","maxLength":280,"description":"Detail only: source-prefixed record ID from a result, e.g. crossref:10.xxxx/suffix; omit query or send an empty query."},"filters":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"country":{"type":"string","enum":["USA","CAN"]},"form":{"type":"string","enum":["10-K","10-Q","8-K","20-F","6-K"]},"indicator":{"type":"string","enum":["NY.GDP.MKTP.CD","NY.GDP.MKTP.KD.ZG"]}},"required":[],"additionalProperties":false}},"required":[],"additionalProperties":false},"QuoteInput":{"type":"object","properties":{"mode":{"type":"string","enum":["sandbox","test","live"],"description":"Owner defaults to sandbox; agent defaults to and can use only its bound wallet. Live requires commercial approval, an owner-reviewed US invitation, accepted current policies and an explicitly qualified service/price. Creating a sandbox account grants none of those authorities."},"service":{"type":"string","enum":["basic","advanced","verified","analysis","deep","report"],"default":"basic","description":"Deep/report are pricing hypotheses only; requests are refused with SERVICE_NOT_QUALIFIED (422)."},"operation":{"type":"string","enum":["search","detail","summary","changes","analysis"],"description":"Basic: search/detail. Advanced: search/detail/summary/changes. Verified: search/detail/summary. Analysis service: analysis only."},"query":{"type":"string","maxLength":120,"description":"Non-detail requests require 1–8 indexed Latin-alphanumeric query terms. Exact-term metadata matching; not semantic or exhaustive web search."},"domains":{"type":"array","minItems":1,"maxItems":5,"uniqueItems":true,"items":{"type":"string","enum":["grants","academic","economic","regulatory","corporate"]}},"sources":{"type":"array","minItems":1,"maxItems":5,"uniqueItems":true,"items":{"type":"string","enum":["grants-gov","federal-register","crossref","world-bank","sec-edgar"]},"description":"Defaults to sources in selected domains; selecting disjoint sources/domains is refused."},"limit":{"type":"integer","minimum":1,"maximum":10,"default":5,"description":"Basic maximum is 5. Other services maximum 10. Analysis minimum 2."},"record_id":{"type":"string","maxLength":280,"description":"Detail only: source-prefixed record ID from a result, e.g. crossref:10.xxxx/suffix; omit query or send an empty query."},"filters":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"country":{"type":"string","enum":["USA","CAN"]},"form":{"type":"string","enum":["10-K","10-Q","8-K","20-F","6-K"]},"indicator":{"type":"string","enum":["NY.GDP.MKTP.CD","NY.GDP.MKTP.KD.ZG"]}},"required":[],"additionalProperties":false}},"required":[],"additionalProperties":false},"RegistrationInput":{"type":"object","properties":{"label":{"type":"string","minLength":2,"maxLength":80,"description":"Account label; no HTML/control characters. Registration does not verify an email identity."},"acknowledge_test_only":{"type":"boolean","const":true}},"required":["label","acknowledge_test_only"],"additionalProperties":false},"OneTimeCredentials":{"type":"object","properties":{"request_id":{"type":"string"},"account_id":{"type":"string"},"owner_key":{"type":"string","pattern":"^hvo4_[a-f0-9]{64}$","writeOnly":false,"description":"Secret returned once; store privately. Possession authenticates the owner."},"recovery_key":{"type":"string","pattern":"^hvr4_[a-f0-9]{64}$","description":"Secret returned once; permits full credential rotation, not ordinary research."},"notice":{"type":"string"}},"required":["account_id","owner_key","recovery_key"],"additionalProperties":true},"Registration":{"allOf":[{"$ref":"#/components/schemas/OneTimeCredentials"},{"type":"object","properties":{"sandbox_units":{"type":"integer","const":100},"mode":{"const":"sandbox"},"live_billing_enabled":{"const":false}},"required":[],"additionalProperties":true}]},"Wallet":{"type":"object","properties":{"mode":{"type":"string","enum":["sandbox","test","live"]},"available_units":{"type":"integer","minimum":0},"reserved_units":{"type":"integer","minimum":0},"purchased_units":{"type":"integer","minimum":0},"spent_units":{"type":"integer","minimum":0},"refunded_units":{"type":"integer","minimum":0},"max_request_units":{"type":"integer","minimum":1,"maximum":100},"daily_limit_units":{"type":"integer","minimum":1,"maximum":10000}},"required":["mode","available_units","reserved_units","purchased_units","spent_units","refunded_units"],"additionalProperties":true},"KeyMetadata":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string","enum":["owner","recovery","agent"]},"mode":{"type":"string","enum":["all","sandbox","test","live"]},"active":{"type":"integer","enum":[0,1]},"max_request_units":{"type":"integer","minimum":1,"maximum":100},"daily_limit_units":{"type":"integer","minimum":1,"maximum":10000},"total_limit_units":{"type":"integer","minimum":1,"maximum":1000000},"used_total_units":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"}},"required":["id","role","mode","active"],"additionalProperties":true},"Account":{"type":"object","properties":{"request_id":{"type":"string"},"account_id":{"type":"string"},"status":{"type":"string","enum":["active","frozen","closed"]},"role":{"type":"string","enum":["owner","agent"]},"commercial_access_approved":{"type":"boolean","description":"Approval for this authenticated account only, including scoped agents. Does not replace current consent, purpose, mode, price or funding checks; missing/false grants no live authority."},"wallets":{"type":"array","items":{"$ref":"#/components/schemas/Wallet"}},"keys":{"type":"array","items":{"$ref":"#/components/schemas/KeyMetadata"}},"sandbox_and_test_are_nonmonetary":{"const":true}},"required":["account_id","wallets","keys"],"additionalProperties":true},"AgentKeyInput":{"type":"object","properties":{"label":{"type":"string","minLength":2,"maxLength":60},"mode":{"type":"string","enum":["sandbox","test","live"]},"max_request_units":{"type":"integer","minimum":1,"maximum":100,"default":10},"daily_limit_units":{"type":"integer","minimum":1,"maximum":10000,"default":50},"total_limit_units":{"type":"integer","minimum":1,"maximum":1000000,"default":100}},"required":["label"],"additionalProperties":false},"AgentKey":{"type":"object","properties":{"request_id":{"type":"string"},"key_id":{"type":"string"},"key":{"type":"string","pattern":"^hvk4_[a-f0-9]{64}$","description":"One-time secret. Cannot manage accounts, funding, refunds or other keys."},"mode":{"type":"string","enum":["sandbox","test","live"]},"max_request_units":{"type":"integer","minimum":1,"maximum":100},"daily_limit_units":{"type":"integer","minimum":1,"maximum":10000},"total_limit_units":{"type":"integer","minimum":1,"maximum":1000000},"notice":{"type":"string"}},"required":["key_id","key","mode"],"additionalProperties":true},"LimitsInput":{"type":"object","properties":{"mode":{"type":"string","enum":["sandbox","test","live"]},"max_request_units":{"type":"integer","minimum":1,"maximum":100},"daily_limit_units":{"type":"integer","minimum":1,"maximum":10000}},"required":["max_request_units","daily_limit_units"],"additionalProperties":false},"Quote":{"type":"object","properties":{"request_id":{"type":"string"},"quote_id":{"type":"string"},"mode":{"type":"string","enum":["sandbox","test","live"]},"price_units":{"type":"integer","minimum":1,"maximum":100},"price_usd":{"type":"string","pattern":"^[0-9]+\\.[0-9]{2}$"},"expires_at":{"type":"string","format":"date-time"},"request":{"$ref":"#/components/schemas/ResearchInput"},"funded":{"type":"boolean"},"maximum_charge_units":{"type":"integer","minimum":1,"maximum":100},"pricing_version":{"type":"string"},"pricing_configuration_hash":{"type":"string"},"processing_limits":{"$ref":"#/components/schemas/ProcessingLimits"},"qualification":{"type":"string"}},"required":["quote_id","mode","price_units","expires_at","request","funded","maximum_charge_units"],"additionalProperties":true},"ExecutionInput":{"type":"object","properties":{"quote_id":{"type":"string","maxLength":80},"max_units":{"type":"integer","minimum":1,"maximum":100},"idempotency_key":{"type":"string","minLength":8,"maxLength":80,"pattern":"^[A-Za-z0-9_-]{8,80}$"}},"required":["quote_id","max_units","idempotency_key"],"additionalProperties":false},"ProcessingLimits":{"type":"object","properties":{"max_results":{"type":"integer","const":10},"max_wall_ms":{"type":"integer","const":10000},"model_calls":{"type":"integer","const":0},"paid_external_calls":{"type":"integer","const":0},"upstream_requests":{"type":"integer","const":0}},"required":[],"additionalProperties":true},"ProcessingMetrics":{"type":"object","properties":{"statements":{"type":"integer","minimum":0},"d1_rows_read":{"type":["integer","null"],"minimum":0},"d1_rows_written":{"type":["integer","null"],"minimum":0},"d1_metadata_complete":{"type":"boolean"},"wall_ms":{"type":"number","minimum":0},"platform_cpu_ms":{"type":"null"},"actual_provider_charge_usd":{"type":"null"},"model_calls":{"type":"integer","const":0},"paid_external_calls":{"type":"integer","const":0},"upstream_requests":{"type":"integer","const":0},"accounting":{"type":"object","description":"Separate reservation/settlement D1 metadata. Wall time is not platform CPU time or an actual bill."}},"required":["d1_metadata_complete","wall_ms"],"additionalProperties":true},"Citation":{"type":"object","properties":{"record_id":{"type":"string"},"source":{"type":"string"},"url":{"type":"string","format":"uri"},"source_record_id":{"type":"string"},"observed_at":{"type":"string","format":"date-time"},"source_timestamp":{"type":["string","null"],"format":"date"},"attribution":{"type":"string"},"rights":{"type":"string"}},"required":["source","url","observed_at","attribution","rights"],"additionalProperties":true},"Confidence":{"type":"object","properties":{"basis":{"type":"string"},"numeric_probability":{"type":"null"},"unknowns":{"type":"array","items":{"type":"string"}},"freshness":{"type":"string"},"truth_status":{"type":"string"}},"required":["basis","numeric_probability"],"additionalProperties":true},"ResearchRecord":{"type":"object","properties":{"record_id":{"type":"string"},"source":{"type":"string","enum":["grants-gov","federal-register","crossref","world-bank","sec-edgar"]},"domain":{"type":"string","enum":["grants","academic","economic","regulatory","corporate"]},"title":{"type":"string","maxLength":500},"data":{"type":"object","description":"Source-specific normalized metadata; linked full text is not included."},"citation":{"$ref":"#/components/schemas/Citation"},"provenance":{"type":"object","properties":{"observed_at":{"type":"string","format":"date-time"},"published_at":{"type":["string","null"],"format":"date"},"changed_at":{"type":["string","null"],"format":"date-time"},"fingerprint":{"type":["string","null"],"pattern":"^[a-f0-9]{64}$"}},"required":[],"additionalProperties":true},"source_verification":{"type":"object","properties":{"identifier_url_consistency":{"const":"passed"},"independent_fact_verification":{"const":"not_performed"},"full_text_review":{"const":"not_performed"}},"required":[],"additionalProperties":true},"confidence":{"$ref":"#/components/schemas/Confidence"},"matched_query_terms":{"type":"array","items":{"type":"string"}}},"required":["record_id","source","domain","title","data","citation","provenance","confidence"],"additionalProperties":true},"ResearchResult":{"type":"object","properties":{"schema_version":{"const":"4.0"},"request_id":{"type":"string"},"quote_id":{"type":"string"},"mode":{"type":"string","enum":["sandbox","test","live"]},"research_mode":{"const":"deterministic_cached_metadata"},"service":{"type":"string","enum":["basic","advanced","verified","analysis"]},"operation":{"type":"string","enum":["search","detail","summary","changes","analysis"]},"charged_units":{"type":"integer","minimum":1,"maximum":100},"maximum_authorized_units":{"type":"integer","minimum":1,"maximum":100},"settlement":{"const":"settled"},"financial_status":{"type":"string","enum":["customer_funded_service_usage","nonmonetary_test_or_sandbox"]},"request":{"$ref":"#/components/schemas/ResearchInput"},"result_count":{"type":"integer","minimum":0,"maximum":10},"results":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/ResearchRecord"}},"citations":{"type":"array","items":{"$ref":"#/components/schemas/Citation"}},"summary":{"type":"object","properties":{"method":{"const":"extractive_metadata_inventory"},"text":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"record_id":{"type":"string"},"title":{"type":"string"}},"required":[],"additionalProperties":true}},"independent_corroboration":{"const":"not_established"}},"required":[],"additionalProperties":true},"coverage":{"type":"object","properties":{"sources":{"type":"array","items":{"type":"object"}},"requested_sources_without_fresh_cache":{"type":"array","items":{"type":"string","enum":["grants-gov","federal-register","crossref","world-bank","sec-edgar"]}},"candidate_rows_returned":{"type":"integer","minimum":0},"complete":{"const":false},"scope":{"type":"string"}},"required":[],"additionalProperties":true},"source_verification":{"type":"object","properties":{"scope":{"type":"string"},"fact_truth":{"const":"not_independently_verified"}},"required":[],"additionalProperties":true},"confidence":{"$ref":"#/components/schemas/Confidence"},"processing":{"$ref":"#/components/schemas/ProcessingMetrics"},"limitations":{"type":"array","items":{"type":"string"}},"analysis":{"type":"object","description":"Source grouping only; corroborated_claims and causal_claims are empty. Requires matching evidence from at least two sources."},"change_detection":{"type":"object","description":"Changes in cached fingerprints since filters.from, excluding legacy caches without comparable change timestamps."},"replayed":{"type":"boolean"}},"required":["schema_version","request_id","mode","charged_units","settlement","results","citations","limitations"],"additionalProperties":true},"RequestStatus":{"type":"object","properties":{"request_id":{"type":"string"},"state":{"type":"string","enum":["reserved","settled","reversed"]},"mode":{"type":"string","enum":["sandbox","test","live"]},"charged_units":{"type":"integer","minimum":0},"error_code":{"type":["string","null"]},"notice":{"type":"string"}},"required":["request_id","state","mode","charged_units"],"additionalProperties":true},"LedgerEntry":{"type":"object","properties":{"id":{"type":"string"},"mode":{"type":"string","enum":["sandbox","test","live"]},"kind":{"type":"string","enum":["sandbox_grant","payment_credit","reserve","settle","reverse","refund_reserve","refund_settle","refund_reverse","external_refund"]},"reference_id":{"type":"string"},"units":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"History":{"type":"object","properties":{"request_id":{"type":"string"},"account_id":{"type":"string"},"ledger":{"type":"array","items":{"$ref":"#/components/schemas/LedgerEntry"}},"requests":{"type":"array","items":{"type":"object"}},"transactions":{"type":"array","items":{"type":"object"}},"limit":{"const":50},"accounting_notice":{"type":"string"}},"required":["account_id","ledger","requests","transactions","limit"],"additionalProperties":true},"CheckoutInput":{"type":"object","properties":{"package_id":{"type":"string","enum":["usd_5","usd_25","usd_100"]},"idempotency_key":{"type":"string","minLength":8,"maxLength":80,"pattern":"^[A-Za-z0-9_-]{8,80}$"}},"required":["package_id","idempotency_key"],"additionalProperties":false},"Checkout":{"type":"object","properties":{"request_id":{"type":"string"},"order_id":{"type":"string"},"checkout_url":{"type":"string","format":"uri","pattern":"^https://checkout\\.stripe\\.com/","description":"Only use the authenticated response's exact Stripe Checkout host; never substitute a return URL for payment proof."},"mode":{"type":"string","enum":["test","live"]},"credits":{"type":"integer","minimum":500,"maximum":10000},"amount_cents":{"type":"integer","minimum":500,"maximum":10000},"state":{"type":"string"},"notice":{"type":"string"}},"required":["order_id","checkout_url","mode"],"additionalProperties":true},"RefundInput":{"type":"object","properties":{"order_id":{"type":"string"},"units":{"type":"integer","minimum":1,"maximum":10000},"idempotency_key":{"type":"string","minLength":8,"maxLength":80,"pattern":"^[A-Za-z0-9_-]{8,80}$"}},"required":["order_id","units","idempotency_key"],"additionalProperties":false},"Refund":{"type":"object","properties":{"request_id":{"type":"string"},"refund_id":{"type":"string"},"state":{"type":"string","enum":["pending","succeeded","failed","pending_reconciliation"]},"replayed":{"type":"boolean"},"credits_held":{"type":"integer","minimum":0},"notice":{"type":"string"}},"required":["refund_id","state"],"additionalProperties":true},"MonitorInput":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/ResearchInput"},"mode":{"type":"string","enum":["sandbox","test","live"]},"max_units_per_run":{"type":"integer","minimum":1,"maximum":100},"run_budget_units":{"type":"integer","minimum":1,"maximum":10000},"days":{"type":"integer","minimum":1,"maximum":30,"default":7},"allow_scheduled_spend":{"type":"boolean","const":true}},"required":["request","max_units_per_run","run_budget_units","allow_scheduled_spend"],"additionalProperties":false},"Monitor":{"type":"object","properties":{"id":{"type":"string"},"monitor_id":{"type":"string"},"mode":{"type":"string","enum":["sandbox","test","live"]},"max_units_per_run":{"type":"integer","minimum":1,"maximum":100},"run_budget_units":{"type":"integer","minimum":1,"maximum":10000},"used_units":{"type":"integer","minimum":0},"state":{"type":"string","enum":["active","paused"]},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"last_run_day":{"type":["string","null"],"format":"date"},"frequency":{"type":"string"},"notice":{"type":"string"}},"required":[],"additionalProperties":true},"Monitors":{"type":"object","properties":{"request_id":{"type":"string"},"monitors":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/Monitor"}}},"required":["monitors"],"additionalProperties":true},"TermsInput":{"type":"object","properties":{"version":{"type":"string","pattern":"^hive-commercial-v4-reviewed-[A-Za-z0-9-]{1,40}$"},"accept":{"type":"boolean","const":true}},"required":["version","accept"],"additionalProperties":false},"Action":{"type":"object","properties":{"request_id":{"type":"string"},"updated":{"type":"boolean"},"revoked":{"type":"boolean"},"paused":{"type":"boolean"},"closed":{"type":"boolean"},"accepted":{"type":"boolean"},"mode":{"type":"string","enum":["sandbox","test","live"]},"version":{"type":"string"},"notice":{"type":"string"}},"required":[],"additionalProperties":true},"Catalog":{"type":"object","properties":{"request_id":{"type":"string"},"version":{"const":"4.0"},"billing_mode":{"type":"string","enum":["test","live"]},"live_billing_enabled":{"type":"boolean"},"commercial_qualification":{"type":"string"},"test_checkout_available":{"type":"boolean"},"packages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"amount_cents":{"type":"integer","minimum":0},"credits":{"type":"integer","minimum":0}},"required":[],"additionalProperties":true}},"credit_value_usd":{"const":"0.01"},"credit_type":{"const":"nontransferable_service_usage"},"sandbox":{"type":"object","properties":{"units":{"const":100},"nonmonetary":{"const":true},"registration_daily_global_cap":{"const":20}},"required":[],"additionalProperties":true},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"price_units":{"type":"integer","minimum":1,"maximum":100},"price_usd":{"type":"string"},"available_in_sandbox":{"type":"boolean"},"qualified":{"type":"boolean"},"qualification":{"type":"string"},"limitations":{"type":"array","items":{"type":"string"}}},"required":[],"additionalProperties":true}},"domains":{"type":"array","items":{"type":"string","enum":["grants","academic","economic","regulatory","corporate"]}},"source_coverage":{"type":"array","items":{"type":"object","description":"Source-specific rights, scope, age and observed cache counts; null means unknown, not zero."}},"limits":{"type":"object"},"discovery":{"type":"object"},"accounting":{"type":"string"}},"required":["version","billing_mode","live_billing_enabled","test_checkout_available","services","source_coverage"],"additionalProperties":true},"Readiness":{"type":"object","properties":{"request_id":{"type":"string"},"version":{"const":"4.0"},"live_billing_recommendation":{"type":"string","description":"Current server recommendation and blockers; documentation never grants activation authority."},"milestone":{"type":"string"},"blockers":{"type":"array","items":{"type":"string"}},"live_activation_requires_owner_approval":{"const":true}},"required":["live_billing_recommendation","blockers"],"additionalProperties":true},"WebhookEvent":{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[A-Za-z0-9_]+$"},"livemode":{"type":"boolean"},"type":{"type":"string"},"data":{"type":"object","properties":{"object":{"type":"object"}},"required":["object"],"additionalProperties":true}},"required":["id","livemode","type","data"],"additionalProperties":true},"WebhookReceipt":{"type":"object","properties":{"request_id":{"type":"string"},"received":{"const":true},"duplicate":{"type":"boolean"},"ignored":{"type":"boolean"},"pending":{"type":"boolean"},"order_id":{"type":"string"},"state":{"type":"string"},"account_frozen":{"type":"boolean"},"manual_review_required":{"type":"boolean"}},"required":["received"],"additionalProperties":true},"AdminReport":{"type":"object","properties":{"request_id":{"type":"string"},"schema_version":{"const":"4.0"},"read_only":{"const":true},"ledger":{"type":"object"},"requests":{"type":"array","items":{"type":"object"}},"orders":{"type":"array","items":{"type":"object"}},"refunds":{"type":"array","items":{"type":"object"}},"disputes":{"type":"array","items":{"type":"object"}},"external_refund_debt":{"type":"array","items":{"type":"object"}},"measured_processing":{"type":"array","items":{"type":"object"}},"live_billing_enabled":{"type":"boolean"},"actual_processor_fees":{"type":"null"},"actual_hosting_cost":{"type":"null"},"actual_operating_profit":{"type":"null"},"accounting_notice":{"type":"string"}},"required":[],"additionalProperties":true},"Reconciliation":{"type":"object","properties":{"request_id":{"type":"string"},"provider":{"type":"object"},"ledger":{"type":"object"}},"required":["provider","ledger"],"additionalProperties":true},"McpRequest":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{"oneOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"integer"}]},"method":{"type":"string","enum":["server/discover","tools/list","tools/call"]},"params":{"type":"object","properties":{"_meta":{"type":"object","properties":{"io.modelcontextprotocol/protocolVersion":{"const":"2026-07-28"},"io.modelcontextprotocol/clientCapabilities":{"type":"object"},"io.modelcontextprotocol/clientInfo":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"version":{"type":"string","maxLength":80}},"required":[],"additionalProperties":true}},"required":["io.modelcontextprotocol/protocolVersion","io.modelcontextprotocol/clientCapabilities"],"additionalProperties":true},"name":{"type":"string","enum":["hive_catalog","hive_quote","hive_research"]},"arguments":{"type":"object"}},"required":["_meta"],"additionalProperties":false}},"required":["jsonrpc","id","method","params"],"additionalProperties":false},"McpResponse":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","integer"]},"result":{"type":"object","description":"Complete result with resultType, server _meta and discovery/tools or structuredContent/content/isError."},"error":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"},"data":{"type":"object"}},"required":["code","message"],"additionalProperties":true}},"required":["jsonrpc"],"additionalProperties":true}}},"x-hive-runtime":{"exchange_enabled":true,"research_enabled":true,"live_billing_enabled":true,"test_checkout_available":false,"billing_kill_switch":false,"configured_prices":{"basic":1,"advanced":10,"verified":5,"analysis":10,"deep":50,"report":100},"commercial_recommendation":"Restricted owner-authorized access; individual invitation, accepted current policies, permitted purpose and qualified service/price required; consult /v4/readiness"},"x-hive-limits":{"authenticated_requests_per_key_per_minute":30,"global_exchange_requests_per_day":1000,"executions_per_wallet_per_day":60,"quote_ttl_seconds":300,"max_processing_ms":10000,"max_measured_research_rows":5000,"model_calls":0,"paid_external_calls":0,"customer_triggered_upstream_calls":0},"x-hive-mcp":{"endpoint":"/v4/mcp","protocol_revision":"2026-07-28","status":"isolated JSON-only subset; see runtime discovery before use","tools":["hive_catalog","hive_quote","hive_research"],"full_current_specification_conformance":"not_claimed","legacy_pilot_endpoint":"/mcp","legacy_authentication":"separate pilot bearer; v4 keys do not grant legacy access"}}