{"openapi":"3.1.0","info":{"title":"MandateGuard","version":"0.1.0"},"paths":{"/mcp":{"post":{"summary":"Mcp Post","operationId":"mcp_post_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mcp/sse":{"get":{"summary":"Mcp Sse","operationId":"mcp_sse_mcp_sse_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pricing":{"get":{"summary":"Pricing","operationId":"pricing_pricing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/inbox":{"get":{"summary":"Inbox","operationId":"inbox_inbox_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/intents":{"get":{"summary":"Intents Page","operationId":"intents_page_intents_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/envelopes":{"get":{"summary":"Envelopes Page","operationId":"envelopes_page_envelopes_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/contact":{"get":{"summary":"Contact","operationId":"contact_contact_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms":{"get":{"summary":"Terms","operationId":"terms_terms_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/privacy":{"get":{"summary":"Privacy","operationId":"privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/security":{"get":{"summary":"Security","operationId":"security_security_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides":{"get":{"summary":"Guides Index Page","operationId":"guides_index_page_guides_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/guides/{slug}":{"get":{"summary":"Guide Page","operationId":"guide_page_guides__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/login":{"get":{"summary":"Owner Login Page","operationId":"owner_login_page_owner_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Owner Login","operationId":"owner_login_owner_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/mint":{"get":{"summary":"Owner Page","operationId":"owner_page_owner_mint_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Owner Mint","operationId":"owner_mint_owner_mint_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"summary":"Robots","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/llms.txt":{"get":{"summary":"Llms Txt","operationId":"llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/c0ce97bcb117f87d1277cc2ee3af47ef.txt":{"get":{"summary":"Indexnow Key","operationId":"indexnow_key_c0ce97bcb117f87d1277cc2ee3af47ef_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sitemap.xml":{"get":{"summary":"Sitemap","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspaces":{"post":{"summary":"Create Workspace","operationId":"create_workspace_api_workspaces_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspaces/webhook":{"post":{"summary":"Set Webhook","operationId":"set_webhook_api_workspaces_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/agents":{"get":{"summary":"List Agents","operationId":"list_agents_api_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Agent","operationId":"create_agent_api_agents_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/agents/{agent_id}/passport":{"post":{"summary":"Set Agent Passport","description":"Attach/update the Agent Passport ID an agent record carries (R-13a).","operationId":"set_agent_passport_api_agents__agent_id__passport_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/policies":{"post":{"summary":"Create Policy","operationId":"create_policy_api_policies_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/authorize":{"post":{"summary":"Authorize","operationId":"authorize_authorize_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/approvals":{"get":{"summary":"List Approvals","operationId":"list_approvals_api_approvals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/approvals/{approval_id}/approve":{"post":{"summary":"Approve","operationId":"approve_api_approvals__approval_id__approve_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"integer","title":"Approval Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/approvals/{approval_id}/deny":{"post":{"summary":"Deny","operationId":"deny_api_approvals__approval_id__deny_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"integer","title":"Approval Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/spend/redeem":{"post":{"summary":"Redeem","operationId":"redeem_api_spend_redeem_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/receipts":{"get":{"summary":"Receipts","operationId":"receipts_api_receipts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/verify-chain":{"get":{"summary":"Verify Chain","operationId":"verify_chain_api_verify_chain_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/vendors/trust":{"get":{"summary":"Trust","operationId":"trust_api_vendors_trust_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/export":{"get":{"summary":"Export","operationId":"export_api_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/agents/{agent_id}/freeze":{"post":{"summary":"Freeze","operationId":"freeze_api_agents__agent_id__freeze_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{agent_id}/unfreeze":{"post":{"summary":"Unfreeze","operationId":"unfreeze_api_agents__agent_id__unfreeze_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/usage":{"get":{"summary":"Api Usage","description":"Key-authenticated usage readout (never counted). 401 for a\nmissing/invalid/revoked API key — the workspace key is not an API\nkey and does not resolve here.","operationId":"api_usage_api_v1_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/keys":{"get":{"summary":"List Api Keys","operationId":"list_api_keys_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Api Key","operationId":"create_api_key_api_keys_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/keys/{key_id}/revoke":{"post":{"summary":"Revoke Api Key","operationId":"revoke_api_key_api_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/intents":{"get":{"summary":"List Intents","operationId":"list_intents_api_intents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Register Intent","operationId":"register_intent_api_intents_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/intents/{intent_id}":{"get":{"summary":"Get Intent Ep","operationId":"get_intent_ep_api_intents__intent_id__get","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","title":"Intent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/intents/{intent_id}/events":{"post":{"summary":"Intent Post Event","operationId":"intent_post_event_api_intents__intent_id__events_post","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","title":"Intent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/intents/{intent_id}/{action}":{"post":{"summary":"Intent Action","operationId":"intent_action_api_intents__intent_id___action__post","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","title":"Intent Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/intents/{intent_id}/verify-receipt/{receipt_id}":{"get":{"summary":"Verify Receipt Ep","description":"Cross-party check — any role (issuer/merchant/agent), free: verify a\nreceipt against a registered intent without write access.","operationId":"verify_receipt_ep_api_intents__intent_id__verify_receipt__receipt_id__get","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","title":"Intent Id"}},{"name":"receipt_id","in":"path","required":true,"schema":{"type":"integer","title":"Receipt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/envelopes":{"get":{"summary":"List Envelopes","operationId":"list_envelopes_api_envelopes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Define Envelope","operationId":"define_envelope_api_envelopes_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/envelopes/{envelope_id}":{"get":{"summary":"Get Envelope Ep","operationId":"get_envelope_ep_api_envelopes__envelope_id__get","parameters":[{"name":"envelope_id","in":"path","required":true,"schema":{"type":"string","title":"Envelope Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/envelopes/{envelope_id}/evaluate":{"post":{"summary":"Evaluate Envelope Ep","description":"Evaluate one spend request against the envelope and return the ONE\nreviewer card. The decision is recorded on the workspace's\nhash-chained receipt trail inside the same transaction.","operationId":"evaluate_envelope_ep_api_envelopes__envelope_id__evaluate_post","parameters":[{"name":"envelope_id","in":"path","required":true,"schema":{"type":"string","title":"Envelope Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/second-visit/activity":{"get":{"summary":"Second Visit Activity","operationId":"second_visit_activity_api_second_visit_activity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/license/apply":{"post":{"summary":"Apply License","operationId":"apply_license_api_license_apply_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/license-keys":{"get":{"summary":"Owner License Keys Json","description":"Owner LIST/status (admin-keys census cell: LIST) — JSON form, gated by\n_owner_ok on the X-Owner-Password header.","operationId":"owner_license_keys_json_owner_license_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Owner License Keys Form","description":"Owner LIST/status — JSON-body form, the owner page's fetch pattern\n(the ReviewDesk list pattern: a list action on the existing owner\nsurface, alongside mint + revoke).","operationId":"owner_license_keys_form_owner_license_keys_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/revoke":{"post":{"summary":"Owner Revoke","operationId":"owner_revoke_owner_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/api-keys":{"post":{"summary":"Owner Create Api Key","description":"Owner-only role-scoped API-key creation for ANY workspace.\n\nThe owner password (same gate as /owner/mint) replaces issuer auth:\nno workspace credential and no plan gate apply. Target the workspace\nby email (workspaces.email) or explicit workspace_id — explicit ID\nwins. The key is stored exactly like the customer handler's\n(POST /api/keys): sha256 hash + raw[:12] prefix; the raw key is\nreturned once, here only.","operationId":"owner_create_api_key_owner_api_keys_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/paypal-manual-info":{"get":{"summary":"Paypal Info","operationId":"paypal_info_api_paypal_manual_info_get","parameters":[{"name":"plan","in":"query","required":false,"schema":{"type":"string","default":"","title":"Plan"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/paypal-manual-confirm":{"post":{"summary":"Paypal Confirm","operationId":"paypal_confirm_api_paypal_manual_confirm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/crypto-checkout":{"post":{"summary":"Crypto Checkout","description":"Start a BTCPay invoice for {plan, buyer_email} via rail-relay.\n\nThe amount ALWAYS comes from config.CRYPTO_PLAN_AMOUNTS_USD\n(server side, matching the relay catalog) — any client-sent amount\nis ignored. Any relay failure maps to a graceful 200 \"opens soon\"\nstate, never an error page: the PayPal door keeps working.","operationId":"crypto_checkout_api_crypto_checkout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rail-webhook":{"post":{"summary":"Rail Webhook","description":"rail-relay settled-invoice callback -> mint + deliver a key.\n\nAuth: X-Relay-Signature sha256=<HMAC-SHA256 hex of raw body> with\nthe platform relay secret. Bad signature -> 403, zero mint.\nkind != \"settled\" -> 200 no-op. Idempotent per rail_txn_id via the\nrail_txns table (namespaced \"<rail>:<id>\", insert-first): a replay\nmints no second key and records no second delivery. Amount, when\npresent, must match the server-side catalog Decimal-exact.","operationId":"rail_webhook_api_rail_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/protection":{"get":{"summary":"Protection Page","operationId":"protection_page_owner_protection_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/protection/login":{"post":{"summary":"Protection Login","operationId":"protection_login_owner_protection_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/api/protection":{"get":{"summary":"Protection Api","operationId":"protection_api_owner_api_protection_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/analytics":{"get":{"summary":"Analytics Page","operationId":"analytics_page_owner_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/analytics/advanced":{"get":{"summary":"Analytics Advanced Page","operationId":"analytics_advanced_page_owner_analytics_advanced_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/analytics/login":{"post":{"summary":"Analytics Login","operationId":"analytics_login_owner_analytics_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/owner/api/analytics":{"get":{"summary":"Analytics Api","operationId":"analytics_api_owner_api_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/login":{"get":{"summary":" Ga Login Page","operationId":"_ga_login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}