{"openapi":"3.1.0","info":{"title":"AIF MARKET API","version":"1.1.0","description":"Agent discovery and scoped workspaces. Reading is not spending authority."},"servers":[{"url":"https://aif.market"}],"components":{"securitySchemes":{"agent":{"type":"http","scheme":"bearer","bearerFormat":"AIF scoped credential"}}},"paths":{"/api/custody/orders/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"readAccountPaymentQuote","security":[{"agent":[]}],"description":"Read the authorized buyer workspace's order amount, exact terms hash, quote expiry and account-payment availability. Requires read scope.","responses":{"200":{"description":"Current quote. Availability does not grant spending permission."},"401":{"description":"Authentication required"},"404":{"description":"Order unavailable to this workspace"}}},"post":{"operationId":"executeAccountOrderAction","security":[{"agent":[]}],"description":"Requires pay:orders and an unexpired owner-issued mandate for this offer, budget and per-payment amount. Payment holds AIF until acceptance. Agent acceptance also requires explicit delivery-acceptance permission. Reuse requestKey only for the same payment; never retry with a new key after an uncertain response. Disputes preserve the hold. Returns unavailable while account payments are disabled.","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"required":["action","requestKey","amount","termsHash","consent","mandateId"],"properties":{"action":{"const":"pay"},"requestKey":{"type":"string","format":"uuid"},"amount":{"type":"string","pattern":"^\\d{1,20}(\\.\\d{1,18})?$"},"termsHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"consent":{"const":true},"mandateId":{"type":"string","format":"uuid"}}},{"type":"object","additionalProperties":false,"required":["action","reason"],"properties":{"action":{"enum":["accept","dispute"]},"reason":{"type":"string","minLength":5,"maxLength":2000}}}]}}}},"responses":{"200":{"description":"Persisted order state"},"401":{"description":"Authentication required"},"403":{"description":"Scope, role or mandate denied"},"409":{"description":"Quote, balance or order state changed"},"503":{"description":"Account payments unavailable"}}}},"/api/answers":{"get":{"operationId":"readScenarioGuides","description":"Public, source-linked product answers. No account or internal operational data.","parameters":[{"name":"lang","in":"query","schema":{"type":"string","enum":["en","zh-Hant","zh-Hans","ja","ko","th","fr","de","es","ar"]}}],"responses":{"200":{"description":"Localized questions, answers, steps and canonical source URLs"}}}},"/api/catalog":{"get":{"operationId":"searchCatalogue","parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"category","in":"query","schema":{"type":"string","enum":["AIF","WF","IP","WLD"]}}],"responses":{"200":{"description":"Public catalogue records with INDEX references"}}}},"/api/roadshows":{"get":{"operationId":"listRoadshows","description":"Published online, offline and hybrid roadshows. Public discovery does not grant registration or spending authority.","responses":{"200":{"description":"Confirmed schedules and INDEX project references"}}}},"/api/filmtoken":{"get":{"operationId":"listFilmOfferings","parameters":[{"name":"code","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Open offerings with published terms; catalogue inclusion alone is not an offering"}}}},"/api/resources":{"get":{"operationId":"listWorkspaceRecords","security":[{"agent":[]}],"responses":{"200":{"description":"Records in the authorized workspace"}}},"post":{"operationId":"createWorkspaceDraft","security":[{"agent":[]}],"description":"Requires write:resources. No financial execution.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kind","data"],"properties":{"kind":{"type":"string"},"data":{"type":"object"},"submit":{"type":"boolean"}}}}}},"responses":{"201":{"description":"Created draft"},"403":{"description":"Permission denied"}}}},"/mcp":{"post":{"operationId":"mcp","description":"MCP Streamable HTTP JSON-RPC endpoint","responses":{"200":{"description":"JSON-RPC response"}}}}}}