{"openapi":"3.1.0","info":{"title":"MIDAS Cold Email Outbound, Shadow-DOM Newsletter & MCP API","version":"3.4.0","description":"Deliverability-first cold B2B outbound sequences, Town Crier Shadow DOM newsletter channels, Cart Recovery, Behavioral Events API, Hosted Archives, and Remote MCP."},"servers":[{"url":"https://midas.pyrexxai.com"}],"components":{"securitySchemes":{"SecretBearerAuth":{"type":"http","scheme":"bearer","description":"Server-side secret API key (midas_live_...)"},"PublishableBearerAuth":{"type":"http","scheme":"bearer","description":"Browser-safe write-only Gong key (midas_pk_...)"}},"schemas":{"SubscribeRequest":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"},"name":{"type":"string"},"gongId":{"type":"string","description":"Gong slug or CUID (optional when using midas_pk_)"},"cadence":{"type":"string","enum":["daily","weekly","biweekly","monthly"]},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"type":"object","additionalProperties":true}}},"CapturePartialRequest":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"},"gongId":{"type":"string"},"clientToken":{"type":"string"},"partialData":{"type":"object","additionalProperties":true}}},"TrackEventRequest":{"type":"object","required":["email","eventName"],"properties":{"email":{"type":"string","format":"email"},"eventName":{"type":"string"},"idempotencyKey":{"type":"string"},"properties":{"type":"object","additionalProperties":true}}},"CreateCampaignRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"objective":{"type":"string"},"context":{"type":"string"},"senderName":{"type":"string"}}},"McpJsonRpcRequest":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":["string","number","null"]},"method":{"type":"string","enum":["initialize","ping","tools/list","tools/call"]},"params":{"type":"object","additionalProperties":true}}}}},"security":[{"SecretBearerAuth":[]}],"paths":{"/api/public/town-crier/subscribe":{"post":{"summary":"Subscribe contact to a Gong channel (midas_pk_ or midas_live_)","security":[{"PublishableBearerAuth":[]},{"SecretBearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscribeRequest"}}}},"responses":{"201":{"description":"Subscriber ingested and welcome autoresponder queued"}}}},"/api/public/town-crier/capture-partial":{"post":{"summary":"Checkpoint step-1 partial progressive capture for Cart Recovery","security":[{"PublishableBearerAuth":[]},{"SecretBearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapturePartialRequest"}}}},"responses":{"200":{"description":"Partial capture saved"}}}},"/api/public/town-crier/subscribers/status":{"get":{"summary":"Check subscriber status, cadence & active Gongs","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","format":"email"}},{"name":"gong","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Subscriber status payload"}}}},"/api/public/town-crier/subscribers/preferences":{"patch":{"summary":"Update subscriber cadence, tags & Gong subscriptions","responses":{"200":{"description":"Updated preferences"}}}},"/api/events/track":{"post":{"summary":"Track behavioral event and trigger transactional or sequence rules","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackEventRequest"}}}},"responses":{"201":{"description":"Event processed"}}}},"/api/events/rules":{"get":{"summary":"List behavioral trigger rules","responses":{"200":{"description":"Trigger rules"}}},"post":{"summary":"Create behavioral trigger rule","responses":{"201":{"description":"Created"}}}},"/api/campaigns":{"get":{"summary":"List cold outbound campaigns","responses":{"200":{"description":"Campaign list"}}},"post":{"summary":"Create cold outbound campaign","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCampaignRequest"}}}},"responses":{"201":{"description":"Campaign created"}}}},"/api/campaigns/{id}/dispatch-now":{"post":{"summary":"Trigger a bounded sweep (max 5 sends) for a campaign","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sweep summary"}}}},"/api/sandbox/test-send":{"post":{"summary":"Send Zero-Setup Sandbox test email to authenticated workspace owner","responses":{"200":{"description":"Sandbox test dispatched"}}}},"/api/domains":{"get":{"summary":"List domains (domains:read)","responses":{"200":{"description":"Domains"}}}},"/api/knowledge":{"get":{"summary":"List Knowledge Bases (knowledge:read)","responses":{"200":{"description":"Knowledge Bases"}}}},"/api/inbox":{"get":{"summary":"List inbox threads (inbox:read)","responses":{"200":{"description":"Threads"}}}},"/api/mcp":{"post":{"summary":"Stateless Streamable HTTP MCP JSON-RPC 2.0 (discovery open; tools/call authenticated)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcRequest"}}}},"responses":{"200":{"description":"JSON-RPC 2.0 response"}}}}}}