{"openapi": "3.1.0", "info": {"title": "Elite Support AI API", "version": "1.0.0", "description": "Per-customer API for Elite Support AI knowledge base and drafted answers. Flat-fee plans; see x-pricing.", "x-mcp": {"url": "https://supportai.eliteaiempire.com/mcp"}}, "servers": [{"url": "https://supportai.eliteaiempire.com"}], "paths": {"/v1/pricing": {"get": {"operationId": "elitesupport_get_pricing", "summary": "Public flat plans and add-on prices.", "security": [], "responses": {"200": {"description": "OK"}}}}, "/v1/usage": {"get": {"operationId": "elitesupport_get_usage", "summary": "Read-only. Answers used in the last 30 days vs the free quota.", "security": [{"bearerAuth": ["read"]}], "responses": {"200": {"description": "OK"}, "401": {"$ref": "#/components/responses/Error"}, "403": {"$ref": "#/components/responses/Error"}, "429": {"$ref": "#/components/responses/Error"}}}}, "/v1/export": {"get": {"operationId": "elitesupport_export", "summary": "Read-only. Export all your stored objects (docs, usage, key metadata) as JSON.", "security": [{"bearerAuth": ["read"]}], "responses": {"200": {"description": "OK"}, "401": {"$ref": "#/components/responses/Error"}, "403": {"$ref": "#/components/responses/Error"}, "429": {"$ref": "#/components/responses/Error"}}}}, "/v1/docs-items": {"get": {"operationId": "elitesupport_list_docs", "summary": "Read-only. List knowledge-base documents.", "security": [{"bearerAuth": ["read"]}], "responses": {"200": {"description": "OK"}, "401": {"$ref": "#/components/responses/Error"}, "403": {"$ref": "#/components/responses/Error"}, "429": {"$ref": "#/components/responses/Error"}}}, "post": {"operationId": "elitesupport_add_doc", "summary": "Write. Add a page of your own text to the knowledge base.", "security": [{"bearerAuth": ["write"]}], "responses": {"200": {"description": "OK"}, "401": {"$ref": "#/components/responses/Error"}, "403": {"$ref": "#/components/responses/Error"}, "429": {"$ref": "#/components/responses/Error"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["title", "body"], "properties": {"title": {"type": "string"}, "body": {"type": "string"}}}}}}, "parameters": [{"name": "Idempotency-Key", "in": "header", "required": false, "schema": {"type": "string"}}]}}, "/v1/answer": {"post": {"operationId": "elitesupport_answer", "summary": "Write, metered. Draft an answer to a customer question from your knowledge base. Requires confirm=true.", "security": [{"bearerAuth": ["write"]}], "responses": {"200": {"description": "OK"}, "401": {"$ref": "#/components/responses/Error"}, "403": {"$ref": "#/components/responses/Error"}, "429": {"$ref": "#/components/responses/Error"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["question", "confirm"], "properties": {"question": {"type": "string"}, "confirm": {"type": "boolean", "description": "Must be true; this call is recorded as a usage event."}}}}}}, "parameters": [{"name": "Idempotency-Key", "in": "header", "required": false, "schema": {"type": "string"}}], "x-pricing": {"unit": "answer", "price_usd": 0, "free_quota_per_month": 100, "note": "Included in flat plan ($29/$79/$199 per month); each call is metered for quota tracking."}}}, "/v1/account": {"delete": {"operationId": "elitesupport_delete_account", "summary": "Destructive write. Permanently delete the account and all data. Requires confirm=true.", "security": [{"bearerAuth": ["write"]}], "responses": {"200": {"description": "OK"}, "401": {"$ref": "#/components/responses/Error"}, "403": {"$ref": "#/components/responses/Error"}, "429": {"$ref": "#/components/responses/Error"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["confirm"], "properties": {"confirm": {"type": "boolean"}}}}}}, "parameters": [{"name": "Idempotency-Key", "in": "header", "required": false, "schema": {"type": "string"}}]}}, "/mcp": {"post": {"security": [], "responses": {"200": {"description": "OK"}}, "operationId": "mcp", "summary": "MCP JSON-RPC. tools/list without a key returns the public tools: get_company_info, list_pricing, get_checkout_link, search_site."}}, "/buy/{plan}": {"get": {"security": [], "responses": {"200": {"description": "OK"}}, "operationId": "buy", "summary": "Create a Stripe Checkout Session for starter, growth or scale (?interval=month|year) and redirect to it. Nothing is charged until payment.", "parameters": [{"name": "plan", "in": "path", "required": true, "schema": {"type": "string", "enum": ["starter", "growth", "scale", "kb_build"]}}]}}, "/api/lead": {"post": {"security": [], "responses": {"200": {"description": "OK"}}, "operationId": "lead", "summary": "Save an email for the free plan and get a referral link."}}, "/api/order": {"get": {"security": [], "responses": {"200": {"description": "OK"}}, "operationId": "order", "summary": "Value, currency and plan of a paid Checkout Session (purchase event)."}}, "/llms.txt": {"get": {"security": [], "responses": {"200": {"description": "OK"}}, "operationId": "llms", "summary": "Plain-text summary for agents."}}, "/healthz": {"get": {"operationId": "healthz", "security": [], "responses": {"200": {"description": "OK"}}}}}, "components": {"securitySchemes": {"bearerAuth": {"type": "http", "scheme": "bearer", "description": "API key (esk_...). Scopes: read, write, billing."}}, "responses": {"Error": {"description": "Error", "content": {"application/json": {"schema": {"type": "object", "required": ["error", "message"], "properties": {"error": {"type": "string"}, "message": {"type": "string"}}}}}}}}}