CSB Group SARL
Email2Chat

Email2Chat API

Integrate Email2Chat into your own apps and workflows. Monitor any Gmail, Outlook, or IMAP inbox and receive AI-processed email events in real time — via webhook, SSE stream, or our MCP server for AI agents.

REST
JSON API over HTTPS
SSE
Real-time event stream
MCP
Claude / AI agent ready
Early development: The public API is currently in development. The endpoints below document the planned interface. Register for early access to be notified when it launches.

Authentication

All API requests require a Bearer token in the Authorization header. Get your API key from the dashboard once you have a paid plan.

Authorization: Bearer em2c_your_api_key_here

Example request

curl https://email2chat.com/api/monitoring/status \
  -H "Authorization: Bearer em2c_your_api_key_here"

Monitoring

GET /api/monitoring/status Coming Soon

Returns monitoring status for all connected email accounts.

{
  "accounts": [
    {
      "email": "[email protected]",
      "provider": "gmail",
      "status": "active",
      "last_checked": "2026-07-29T10:00:00Z",
      "notifications_today": 12
    }
  ]
}
POST /api/monitoring/pause Coming Soon

Pause monitoring for a specific email account.

POST /api/monitoring/resume Coming Soon

Resume monitoring for a specific email account.

Emails

GET /api/emails/recent Coming Soon

Returns recent emails processed by Email2Chat with AI summaries and classifications.

{
  "emails": [
    {
      "id": "em_abc123",
      "account": "[email protected]",
      "from": "[email protected]",
      "subject": "Meeting tomorrow",
      "received_at": "2026-07-29T09:41:00Z",
      "ai_summary": "Meeting at 3pm in room B.",
      "ai_label": "Important",
      "ai_label_confidence": 0.94
    }
  ],
  "total": 47,
  "page": 1,
  "page_size": 20
}
POST /api/emails/{id}/mark-read Coming Soon

Mark an email as read in the original inbox (Gmail/Outlook).

POST /api/emails/{id}/archive Coming Soon

Archive an email in the original inbox.

Webhooks

Register a webhook URL and Email2Chat will POST a JSON payload every time a new email is processed.

POST /api/webhooks Coming Soon

Register a webhook endpoint.

// Request
{
  "url": "https://yourapp.com/email-hook",
  "secret": "your_signing_secret",
  "events": ["email.received", "email.classified"]
}

// Payload sent to your URL on new email
{
  "event": "email.received",
  "timestamp": "2026-07-29T09:41:00Z",
  "data": {
    "account": "[email protected]",
    "from": "[email protected]",
    "subject": "Meeting tomorrow",
    "ai_summary": "Meeting at 3pm in room B.",
    "ai_label": "Important"
  }
}

Payloads are signed with HMAC-SHA256. Verify the X-Email2Chat-Signature header.

Server-Sent Events

Connect to the SSE stream and receive new email events in real time — no polling needed.

GET /sse Coming Soon

Open a persistent SSE connection. Events arrive as they happen.

// JavaScript example
const es = new EventSource(
  "https://email2chat.com/sse",
  { headers: { "Authorization": "Bearer em2c_..." } }
);

es.addEventListener("email.received", (e) => {
  const email = JSON.parse(e.data);
  console.log("New email:", email.subject);
});

MCP Server (Claude / AI agents)

Email2Chat ships as an MCP (Model Context Protocol) server — plug it directly into Claude Desktop, Claude Code, or any MCP-compatible AI agent.

Planned MCP tools

  • get_recent_emails — Fetch recent emails with AI summaries
  • search_emails — Search inbox by sender, subject, or label
  • get_monitoring_status — Check which accounts are active
  • mark_email_read — Mark email as read in Gmail/Outlook
  • archive_email — Archive email in original inbox
  • get_email_body — Fetch full email body on demand

MCP manifest (GET /mcp)

{
  "schema_version": "v1",
  "name": "email2chat",
  "description": "Monitor Gmail, Outlook, O365. Real-time AI-processed email notifications.",
  "docs_url": "https://email2chat.com/developers",
  "status": "api_in_development"
}

Errors

Status Meaning
200Success
400Bad request — missing or invalid parameter
401Unauthorized — missing or invalid API key
403Forbidden — API key lacks permission
404Not found
429Rate limited — slow down requests
500Server error — try again or contact support

All errors return: {"error": "description", "code": "ERROR_CODE"}

Get Early Access

Public API ships Q3 2026. Register and we'll email you the moment it's ready — plus an extended free trial.

No spam. One email when the API launches.

REST API
Full CRUD on monitored emails
Webhooks
Push events to your backend
MCP Server
Claude & AI agent integration