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.
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
/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
}
]
}
/api/monitoring/pause
Coming Soon
Pause monitoring for a specific email account.
/api/monitoring/resume
Coming Soon
Resume monitoring for a specific email account.
Emails
/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
}
/api/emails/{id}/mark-read
Coming Soon
Mark an email as read in the original inbox (Gmail/Outlook).
/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.
/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.
/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 summariessearch_emails— Search inbox by sender, subject, or labelget_monitoring_status— Check which accounts are activemark_email_read— Mark email as read in Gmail/Outlookarchive_email— Archive email in original inboxget_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 |
|---|---|
| 200 | Success |
| 400 | Bad request — missing or invalid parameter |
| 401 | Unauthorized — missing or invalid API key |
| 403 | Forbidden — API key lacks permission |
| 404 | Not found |
| 429 | Rate limited — slow down requests |
| 500 | Server 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.