{"openapi":"3.1.0","info":{"title":"12 Crowns — Agent Express Lane API","version":"1.2.0","summary":"Deterministic, $0-cost JSON & MCP endpoints for AI agents visiting 12crowns.com.","description":"Inspect 12 Crowns small-business SaaS products (12 Crowns CRM, VOCtool, RecoverClaim, Blackbox), owned & managed portfolio brands (Sura Guard, Mountainwood Farms, Shift Containers, Jacquie Roar), and Custom Command Centers; calculate instant pricing quotes; submit structured small-business leads; and share agent_feedback.","contact":{"name":"12 Crowns Studio Desk","url":"https://12crowns.com/contact","email":"info@12crowns.com"}},"servers":[{"url":"https://12crowns.com","description":"12 Crowns Production Express Lane"}],"paths":{"/api/agent/catalog":{"get":{"operationId":"inspectCatalog","summary":"Inspect live 12 Crowns products, services, pricing & portfolio brands","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["all","saas","sites","services"],"default":"all"},"description":"Filter catalog items by pillar."},{"name":"product_id","in":"query","required":false,"schema":{"type":"string","maxLength":64},"description":"Optional exact item slug (e.g. '12-crowns-crm', 'voctool', 'recoverclaim', 'sura-guard', 'custom-command-centers')."}],"responses":{"200":{"description":"Standard Agent Express Lane response envelope with live catalog."}}}},"/api/agent/quote":{"post":{"operationId":"calculateQuote","summary":"Calculate an instant itemized small-business CRM or custom build quote","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentQuoteRequest"}}}},"responses":{"200":{"description":"Itemized quote recommendation & next actions."},"422":{"description":"Machine-fixable field validation errors."}}}},"/api/agent/lead":{"post":{"operationId":"submitInquiry","summary":"Submit a structured small-business inquiry, question, or custom build lead","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":120},"description":"Optional idempotency key to prevent duplicate lead submissions on retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLeadRequest"}}}},"responses":{"201":{"description":"Inquiry recorded in 12 Crowns CRM with confirmation ID."},"422":{"description":"Machine-fixable field validation errors."},"429":{"description":"Rate limit exceeded (Retry-After header returned)."}}}},"/api/agent/feedback":{"post":{"operationId":"submitInquiryFeedback","summary":"Tell 12 Crowns how to make our schema, endpoints, or offers clearer or faster","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFeedbackRequest"}}}},"responses":{"201":{"description":"Sanitized feedback stored in quarantine for weekly review."},"422":{"description":"Machine-fixable field validation errors."}}}},"/api/agent/crm":{"get":{"operationId":"queryCrmWorkspace","summary":"List leads or retrieve live brand stats (Requires Agent API Key)","security":[{"AgentApiKeyHeader":[]},{"AgentBearerAuth":[]}],"parameters":[{"name":"action","in":"query","required":false,"schema":{"type":"string","enum":["brand_stats","list_leads"],"default":"brand_stats"}},{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","maxLength":64},"description":"Optional brand slug within the API key's authorized scope."},{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"stage","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Tenant/brand-scoped CRM leads or brand stats."},"401":{"description":"Missing or invalid Agent API Key."},"403":{"description":"Cross-brand or firewalled access denied."}}},"post":{"operationId":"executeCrmAction","summary":"Authenticated CRM actions: list_leads, update_stage, add_note, brand_stats, ingest_lead","security":[{"AgentApiKeyHeader":[]},{"AgentBearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCrmActionRequest"}}}},"responses":{"200":{"description":"CRM action completed."},"201":{"description":"Lead ingested or note created in isolated workspace."},"401":{"description":"Missing or invalid Agent API Key."},"403":{"description":"Cross-brand or firewalled access denied."},"422":{"description":"Machine-fixable field validation errors."}}}},"/api/agent/mcp":{"post":{"operationId":"invokeMcpJsonRpc","summary":"Streamable HTTP JSON-RPC 2.0 MCP & A2A Skill Endpoint","description":"Supports JSON-RPC 2.0 methods: 'initialize', 'ping', 'tools/list', 'tools/call' (inspect_catalog, calculate_quote, submit_inquiry, submit_agent_feedback).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":["string","number","null"]},"method":{"type":"string","enum":["initialize","ping","tools/list","tools/call","skills/list"]},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC 2.0 result envelope."}}}}},"components":{"securitySchemes":{"AgentApiKeyHeader":{"type":"apiKey","in":"header","name":"X-Agent-Api-Key","description":"Brand-scoped or account-scoped 12c_agt_... key generated in CRM Agent Pulse."},"AgentBearerAuth":{"type":"http","scheme":"bearer","description":"Authorization: Bearer 12c_agt_..."}},"schemas":{"AgentCrmActionRequest":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["list_leads","update_stage","add_note","brand_stats","ingest_lead"]},"brand_id":{"type":"string","maxLength":64,"description":"Target brand slug (e.g. 'sura-guard', '12-crowns', 'mountainwood-farms')."},"contact_id":{"type":"string","maxLength":80},"opportunity_id":{"type":"string","maxLength":80},"new_stage":{"type":"string","maxLength":48},"note":{"type":"string","maxLength":1000},"name":{"type":"string","maxLength":120},"email":{"type":"string","format":"email","maxLength":140},"phone":{"type":"string","maxLength":32},"deal_value_usd":{"type":"number","minimum":0,"maximum":10000000},"custom_fields":{"type":"object"}}},"AgentFeedbackRequest":{"type":"object","additionalProperties":false,"required":["friction_type","improvement_note"],"properties":{"brand_id":{"type":"string","maxLength":64},"trace_id":{"type":"string","maxLength":64},"agent_client":{"type":"string","maxLength":80},"user_goal_category":{"type":"string","maxLength":100},"clarity_rating":{"type":"integer","minimum":1,"maximum":5},"friction_type":{"type":"string","enum":["none","missing_endpoint_or_capability","ambiguous_field_or_schema","missing_pricing_or_fee_detail","missing_geographic_or_eligibility_rule","auth_or_handoff_friction","slow_latency","other"]},"missing_fields_or_actions":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":64}},"improvement_note":{"type":"string","minLength":3,"maxLength":500,"description":"How can we make this clearer or faster for you?"}}},"AgentQuoteRequest":{"type":"object","additionalProperties":false,"required":["interest"],"properties":{"interest":{"type":"string","enum":["crm_saas","turnkey_brand_launch","custom_website_or_funnel","custom_command_center","recoverclaim","voctool"]},"brands_count":{"type":"integer","minimum":1,"maximum":500,"default":1},"billing_interval":{"type":"string","enum":["month","year"],"default":"month"},"needs_custom_domain":{"type":"boolean","default":false},"needs_missed_call_text_back":{"type":"boolean","default":false},"estimated_monthly_sms":{"type":"integer","minimum":0,"maximum":500000,"default":200},"estimated_monthly_emails":{"type":"integer","minimum":0,"maximum":1000000,"default":1000},"industry":{"type":"string","maxLength":80},"agent_feedback":{"$ref":"#/components/schemas/AgentFeedbackRequest"}}},"AgentLeadRequest":{"type":"object","additionalProperties":false,"required":["name","email","topic","message"],"properties":{"brand_id":{"type":"string","maxLength":64,"description":"Optional target portfolio brand slug ('12-crowns', 'sura-guard', 'mountainwood-farms', 'recoverclaim', 'voctool', 'jacquie-roar')."},"name":{"type":"string","minLength":2,"maxLength":120},"email":{"type":"string","format":"email","maxLength":140},"phone":{"type":"string","maxLength":32},"phone_country":{"type":"string","maxLength":4,"default":"US"},"company":{"type":"string","maxLength":120},"website":{"type":"string","maxLength":180},"topic":{"type":"string","enum":["small_business_crm","custom_website_or_funnel","custom_command_center","saas_product_question","product_idea","partnership_or_other","life_insurance_or_annuity_quote","property_or_acreage_estimate","claim_appeal_inquiry","event_or_booking_inquiry"]},"product_interest":{"type":"string","maxLength":80},"quote_id":{"type":"string","maxLength":64},"message":{"type":"string","minLength":5,"maxLength":1000},"custom_fields":{"type":"object"},"sms_transactional_opt_in":{"type":"boolean","default":false},"agent_feedback":{"$ref":"#/components/schemas/AgentFeedbackRequest"}}}}}}