{"openapi": "3.1.0", "info": {"title": "FastMesh Pay & Self-Serve Key Portal", "version": "1.0.0", "description": "Unified live Creem.io prepaid checkout portal, 10-second self-serve API key redemption vault (SHA-256 only, displayed once), real-time micro-USD balance and receipts dashboard, and idempotent storefront checkout upgrade kit. Zero conversation or trace data resale; strict $0 charge on miss or 422 invalid input. Catalog indexes 229 live Creem products across 75 FastMesh engines.", "contact": {"name": "FastMesh Operations", "email": "ops@fastmesh.dev", "url": "https://pay.fastmesh.dev"}}, "x-fastmesh-invariants": {"zero_charge_on_miss": true, "zero_charge_on_422": true, "zero_data_resale": true, "payment_model": "non_contingent_fixed_prepaid_credits", "merchant_of_record": "Creem.io"}, "servers": [{"url": "https://pay.fastmesh.dev", "description": "Production HTTPS portal"}, {"url": "http://127.0.0.1:9042", "description": "Local development server"}], "components": {"securitySchemes": {"BearerAuth": {"type": "http", "scheme": "bearer", "bearerFormat": "fm_live_<redacted>", "description": "FastMesh API key minted once via POST /api/redeem"}, "ApiKeyHeader": {"type": "apiKey", "in": "header", "name": "X-API-Key", "description": "Alternative FastMesh API key header"}, "CreemSignature": {"type": "apiKey", "in": "header", "name": "creem-signature", "description": "HMAC-SHA256 hex digest (or sha256=<hex>) computed over raw request body"}}}, "paths": {"/health": {"get": {"operationId": "getHealth", "summary": "Service health, SQLite WAL status, and catalog counts", "responses": {"200": {"description": "Healthy service status JSON"}}}}, "/": {"get": {"operationId": "getPortalHome", "summary": "FastMesh Pay & Self-Serve Key Portal web application", "responses": {"200": {"description": "HTML storefront and key redemption portal"}}}}, "/api/catalog": {"get": {"operationId": "getCatalog", "summary": "Query live Creem.io prepaid credit catalog across all FastMesh engines", "parameters": [{"name": "subdomain", "in": "query", "schema": {"type": "string"}}, {"name": "tier", "in": "query", "schema": {"type": "string", "enum": ["starter", "pro", "scale", "other"]}}, {"name": "wave_group", "in": "query", "schema": {"type": "string"}}, {"name": "q", "in": "query", "schema": {"type": "string"}, "description": "Search keyword"}], "responses": {"200": {"description": "Normalized live Creem product catalog"}}}}, "/api/redeem": {"post": {"operationId": "redeemOrderKey", "summary": "Redeem paid order_id or checkout_id + claim_token for a one-time API key", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["claim_token"], "properties": {"order_id": {"type": "string"}, "checkout_id": {"type": "string"}, "claim_token": {"type": "string"}}}}}}, "responses": {"200": {"description": "Minted API key displayed once (shown_once: true)"}, "401": {"description": "Invalid claim_token"}, "404": {"description": "Order not found"}, "409": {"description": "Order already redeemed or refunded"}, "422": {"description": "Missing or invalid fields ($0 billed)"}}}}, "/api/balance": {"get": {"operationId": "getKeyBalance", "summary": "Fetch real-time micro-USD balance, credits, orders, and itemized receipts", "security": [{"BearerAuth": []}, {"ApiKeyHeader": []}], "parameters": [{"name": "limit", "in": "query", "schema": {"type": "integer", "minimum": 1, "maximum": 200, "default": 50}}], "responses": {"200": {"description": "Wallet balance and itemized receipts (no raw key or email echoed)"}, "401": {"description": "Missing, unknown, or revoked API key"}}}}, "/api/upgrade-preview": {"post": {"operationId": "previewStorefrontUpgrade", "summary": "Idempotently upgrade storefront HTML with live Creem links and checkout bar", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["html"], "properties": {"html": {"type": "string"}, "subdomain": {"type": "string"}, "portal_url": {"type": "string"}}}}}}, "responses": {"200": {"description": "Upgraded HTML and idempotency verification report"}, "422": {"description": "Invalid input ($0 billed)"}}}}, "/mcp": {"post": {"operationId": "invokeMcp", "summary": "Native flat JSON-RPC 2.0 MCP endpoint", "responses": {"200": {"description": "JSON-RPC 2.0 response"}, "202": {"description": "Notification accepted"}}}}, "/openapi.json": {"get": {"operationId": "getOpenApi", "summary": "OpenAPI 3.1.0 machine-readable API specification", "responses": {"200": {"description": "OpenAPI 3.1.0 JSON"}}}}, "/llms.txt": {"get": {"operationId": "getLlmsTxt", "summary": "Machine-readable LLM directory and guide index", "responses": {"200": {"description": "Plain text LLM index"}}}}, "/skill.md": {"get": {"operationId": "getSkillManual", "summary": "Autonomous agent operational skill manual", "responses": {"200": {"description": "Markdown skill manual"}}}}, "/guides": {"get": {"operationId": "listGuides", "summary": "Index of published developer guides and billing references", "responses": {"200": {"description": "HTML or JSON guide directory"}}}}, "/guides/{slug}": {"get": {"operationId": "getGuideBySlug", "summary": "Fetch an individual developer guide HTML page", "parameters": [{"name": "slug", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Guide HTML page"}, "404": {"description": "Guide not found"}}}}, "/webhooks/creem": {"post": {"operationId": "receiveCreemWebhook", "summary": "HMAC-SHA256 verified Creem.io webhook settlement and refund clawback endpoint", "security": [{"CreemSignature": []}], "responses": {"200": {"description": "Webhook verified and settled idempotently"}, "400": {"description": "Malformed JSON or missing event fields"}, "401": {"description": "Invalid or missing HMAC-SHA256 signature"}}}}}}
