{"openapi":"3.1.0","info":{"title":"StaffBots public read API","version":"1.0.0","description":"Read-only pricing, facts, and the public MCP endpoint. No tenant data. Contact hello@staffbots.ai. Do not invent prices."},"servers":[{"url":"https://staffbots.ai"}],"paths":{"/api/pricing":{"get":{"summary":"Machine-readable plan catalog","operationId":"getPricing","responses":{"200":{"description":"Plans and add-ons from lib/plans.ts"}}}},"/pricing.json":{"get":{"summary":"Same catalog as /api/pricing","operationId":"getPricingJson","responses":{"200":{"description":"Plans and add-ons"}}}},"/facts.json":{"get":{"summary":"Short citable facts","operationId":"getFacts","responses":{"200":{"description":"Product, trial, and contact facts"}}}},"/api/shield/check":{"post":{"summary":"Agent Shield: ask before an AI agent uses a tool","description":"Send Authorization: Bearer <agent key> and JSON { tool, definition, amountCents?, untrusted?, dryRun? }. dryRun returns the verdict without an approval, text, or log entry. Returns verdict allow, approval (poll /api/shield/approvals/{id}), or deny, plus prompt-injection signals. Keys come from Dashboard → Agent Shield.","operationId":"shieldCheck","responses":{"200":{"description":"Verdict"},"401":{"description":"Missing or revoked agent key"}}}},"/api/shield/purchase":{"post":{"summary":"Agent Shield: get a Stripe checkout link for a business (for AI agents)","description":"JSON { email, businessName, extraAgents? }. Returns { checkout_url, annual_total_usd, expires_at, next_steps }. Give the link to a person; nothing is charged until they pay on Stripe. Billed annually: $588/yr for 3 agents, $180/yr per extra agent. No auth. Rate limited.","operationId":"shieldPurchaseLink","responses":{"201":{"description":"Checkout link"},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}}}},"/api/shield/approvals/{id}":{"get":{"summary":"Agent Shield: poll an approval with the agent key","operationId":"shieldApprovalStatus","responses":{"200":{"description":"{ status: pending | approved | blocked | expired }"}}}},"/api/mcp":{"post":{"summary":"Alternate Streamable HTTP MCP endpoint","operationId":"postMcpAlternate","responses":{"200":{"description":"JSON-RPC result"},"429":{"description":"Rate limit"}}}},"/mcp":{"post":{"summary":"Primary Streamable HTTP MCP endpoint","operationId":"postMcp","responses":{"200":{"description":"JSON-RPC result"},"429":{"description":"Rate limit"}}}}}}