DEVELOPER PLATFORM (v3.4)

MIDAS Developer Documentation

MIDAS provides autonomous cold email infrastructure and Town Crier Shadow DOM newsletter channels via REST APIs, official TypeScript/React (@midas-aem/client) and Python (midas-aem) SDKs, a Zero-CLI Next.js proxy, and a remote Streamable HTTP MCP server at https://midas.pyrexxai.com/api/mcp.

1. MCP Server & AI Agents →

Connect Claude Code, Cursor, or Codex over Streamable HTTP or stdio to manage Gongs, campaigns, and sandbox tests.

2. Shadow DOM Embeds & Proxy →

Drop-in Web Components with midas_pk_ keys, match-host theming, Cart Recovery, and 1-line Next.js proxy.

3. Cold Outbound Sequences →

Multi-mailbox rotation, BYO Mailgun/SMTP, 5-send sweep pacing, Knowledge Base AI replies, and OOO freeze.

4. Behavioral Events & Webhooks →

Real-time transactional triggers (POST /api/events/track) and HMAC-SHA256 webhook verification.

Quickstart & Environment Matrix

npm install @midas-aem/client
npx @midas-aem/client init

# Python SDK (sync & async)
pip install midas-aem
Environment VariableScopePurpose
MIDAS_API_KEYServer SecretBearer midas_live_... key for SDKs, Next.js proxy, Events API, MCP & CLI
MIDAS_PUBLISHABLE_KEYPublic BrowserWrite-only midas_pk_... key pinned to 1 Gong channel for HTML/Webflow embeds
MIDAS_BASE_URLServer / ClientTarget MIDAS host (https://midas.pyrexxai.com)
MIDAS_WEBHOOK_SECRETServer SecretHMAC signing secret (whsec_...) for verifying X-Midas-Signature

Zero-Setup Sandbox Test (Send Live Without DNS)

Verify your API key and envelope rendering immediately by sending a test email strictly to your own workspace account inbox:

curl -X POST "https://midas.pyrexxai.com/api/sandbox/test-send" \
  -H "Authorization: Bearer midas_live_YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject":"Hello from MIDAS Sandbox"}'