# MailChannels

```json
{
  "name": "MailChannels",
  "slug": "mail_channels",
  "url": "https://composio.dev/toolkits/mail_channels",
  "markdown_url": "https://composio.dev/toolkits/mail_channels.md",
  "logo_url": "https://logos.composio.dev/api/mailchannels",
  "categories": [
    "developer tools & devops"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-17T05:39:08.798Z"
}
```

![MailChannels logo](https://logos.composio.dev/api/mailchannels)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with MailChannels MCP or direct API to send transactional email, manage domains and DKIM, review delivery metrics, and maintain suppression lists through natural language.

## Summary

MailChannels is a transactional email delivery platform with domain, DKIM, and delivery tools.
It helps teams send reliable email and monitor delivery from one place.

## Categories

- developer tools & devops

## Toolkit Details

- Tools: 43

## Images

- Logo: https://logos.composio.dev/api/mailchannels

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for MailChannels.
  - Setup:
    - Configure Api Key credentials for MailChannels.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- List MailChannels domains with DKIM status
- Review MailChannels delivery metrics for yesterday
- Show suppressed MailChannels recipients and reasons

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `MAIL_CHANNELS_ACTIVATE_SUB_ACCOUNT` | Activate Sub-account | Reactivate a suspended sub-account, restoring its ability to send email. |
| `MAIL_CHANNELS_CHECK_DOMAIN_AUTHENTICATION` | Check Domain Authentication | Check a sending domain's DKIM, SPF, sender-domain DNS, and Domain Lockdown configuration without changing it. |
| `MAIL_CHANNELS_CREATE_DKIM_KEY` | Create DKIM Key | Create a MailChannels-managed DKIM key pair and return the public key and DNS record that must be published. |
| `MAIL_CHANNELS_CREATE_SUB_ACCOUNT` | Create Sub-account | Create a sub-account under the connected parent account. This creates persistent tenant state but no API or SMTP credential. |
| `MAIL_CHANNELS_CREATE_SUB_ACCOUNT_API_KEY` | Create Sub-account API Key | Explicitly create a sensitive API credential for a sub-account. The returned secret may be shown only once; store it securely because tool or application logs can expose it. This provider-created credential is output for the sub-account and is never connection authentication for this action. |
| `MAIL_CHANNELS_CREATE_SUB_ACCOUNT_SMTP_PASSWORD` | Create Sub-account SMTP Password | Explicitly create a sensitive SMTP credential for a sub-account. The returned password may be shown only once; store it securely because tool or application logs can expose it. This provider-created credential is output for SMTP use and is never connection authentication for this action. |
| `MAIL_CHANNELS_CREATE_SUPPRESSION_ENTRIES` | Create Suppression Entries | Atomically add one or more recipients to the connected account's suppression list, optionally also applying them to all associated sub-accounts. |
| `MAIL_CHANNELS_DELETE_ALL_WEBHOOKS` | Delete All Webhooks | Permanently remove every webhook endpoint enrolled for the connected MailChannels account. This destructive action has no endpoint selector and must not be used when any existing webhook configuration should be retained. |
| `MAIL_CHANNELS_DELETE_CUSTOM_TRACKING_DOMAIN` | Delete Custom Tracking Domain | Permanently delete one custom tracking domain by exact hostname and scope. This destructive action immediately breaks tracking and unsubscribe URLs in previously sent messages that use the domain. |
| `MAIL_CHANNELS_DELETE_SUB_ACCOUNT` | Delete Sub-account | Permanently and irreversibly delete one MailChannels sub-account by its exact handle. This destructive action cannot be undone. |
| `MAIL_CHANNELS_DELETE_SUB_ACCOUNT_API_KEY` | Delete Sub-account API Key | Permanently revoke one sub-account API key by exact sub-account handle and key ID. This explicit destructive credential deletion cannot be undone. |
| `MAIL_CHANNELS_DELETE_SUB_ACCOUNT_LIMIT` | Delete Sub-account Limit | Delete a sub-account's explicit monthly send limit. This destructive quota reset makes the sub-account inherit the parent account's remaining send capacity. |
| `MAIL_CHANNELS_DELETE_SUB_ACCOUNT_SMTP_PASSWORD` | Delete Sub-account SMTP Password | Permanently revoke one sub-account SMTP password by exact sub-account handle and password ID. This explicit destructive credential deletion cannot be undone. |
| `MAIL_CHANNELS_DELETE_SUPPRESSION_ENTRY` | Delete Suppression Entry | Destructively remove one source, or every source, of suppression protection for a recipient. This permits future matching email delivery to that recipient. |
| `MAIL_CHANNELS_ENROLL_WEBHOOK` | Enroll Webhook | Enroll the account's single external endpoint for MailChannels event callbacks. This changes the webhook configuration and causes future events to be sent to that endpoint; delete the existing enrollment before replacing it. |
| `MAIL_CHANNELS_GET_ENGAGEMENT_METRICS` | Get Engagement Metrics | Retrieve account message open and click metrics, optionally filtered by time range and campaign. |
| `MAIL_CHANNELS_GET_PERFORMANCE_METRICS` | Get Performance Metrics | Retrieve account processed, delivered, hard-bounced, and complaint metrics. |
| `MAIL_CHANNELS_GET_RECIPIENT_BEHAVIOUR_METRICS` | Get Recipient Behaviour Metrics | Retrieve account recipient unsubscribe metrics, optionally filtered by time range and campaign. |
| `MAIL_CHANNELS_GET_SUB_ACCOUNT_LIMIT` | Get Sub-account Limit | Return a sub-account's configured monthly send limit; -1 means it inherits the parent account's remaining capacity. |
| `MAIL_CHANNELS_GET_SUB_ACCOUNT_USAGE` | Get Sub-account Usage | Return a sub-account's usage, effective monthly limit, and current billing-period dates. |
| `MAIL_CHANNELS_GET_USAGE` | Get Usage | Return the connected account's usage, effective monthly limit, and current billing-period dates. |
| `MAIL_CHANNELS_GET_VOLUME_METRICS` | Get Volume Metrics | Retrieve account processed, delivered, and dropped message volume metrics. |
| `MAIL_CHANNELS_GET_WEBHOOK_PUBLIC_KEY` | Get Webhook Public Key | Retrieve the MailChannels public key identified by a webhook's Signature-Input header for signature verification. |
| `MAIL_CHANNELS_LIST_CUSTOM_TRACKING_DOMAINS` | List Custom Tracking Domains | Return one page of custom domains registered for click tracking, open tracking, or unsubscribe links. |
| `MAIL_CHANNELS_LIST_DKIM_KEYS` | List DKIM Keys | Return one page of DKIM keys for a domain, optionally filtered by selector or lifecycle status. |
| `MAIL_CHANNELS_LIST_SENDER_METRICS` | List Sender Metrics | Return one page of campaign or sub-account delivery metrics sorted by message volume. |
| `MAIL_CHANNELS_LIST_SUB_ACCOUNT_API_KEYS` | List Sub-account API Keys | Return one page of API-key metadata for a sub-account. MailChannels redacts the key values. Returned provider-created keys are sub-account credentials, not connection authentication for this action. |
| `MAIL_CHANNELS_LIST_SUB_ACCOUNTS` | List Sub-accounts | Return one page of sub-accounts owned by the connected parent account, including handle, company name, and enabled state. |
| `MAIL_CHANNELS_LIST_SUB_ACCOUNT_SMTP_PASSWORDS` | List Sub-account SMTP Passwords | List SMTP-password metadata for a sub-account. MailChannels returns only IDs and partially redacted passwords. These provider-created passwords are sub-account credentials, not connection authentication for this action. |
| `MAIL_CHANNELS_LIST_SUPPRESSION_ENTRIES` | List Suppression Entries | Return one page of suppression entries for the connected account, optionally filtered by recipient, source, or creation date range. |
| `MAIL_CHANNELS_LIST_WEBHOOK_BATCHES` | List Webhook Batches | Return one page of webhook delivery batches, optionally filtered by creation time, response category, or endpoint. If no time filters are supplied, MailChannels uses the last three days. |
| `MAIL_CHANNELS_LIST_WEBHOOKS` | List Webhooks | List all webhook endpoints enrolled for the connected MailChannels account. |
| `MAIL_CHANNELS_REGISTER_CUSTOM_TRACKING_DOMAIN` | Register Custom Tracking Domain | Register an owner-controlled hostname for click tracking, open tracking, or unsubscribe links. DNS TXT ownership verification and a CNAME to links.mailchannels.net may be required before registration completes. |
| `MAIL_CHANNELS_RENDER_EMAIL` | Render Email | Render email content without delivering a message to any recipient. This action always uses MailChannels dry-run mode and has no delivery effect. |
| `MAIL_CHANNELS_RESEND_WEBHOOK_BATCH` | Resend Webhook Batch | Synchronously create one new external delivery attempt for an existing webhook batch. This sends events again to the batch's webhook endpoint. A successful action response means MailChannels completed the attempt, not that the endpoint returned a 2xx status; inspect status_code. |
| `MAIL_CHANNELS_ROTATE_DKIM_KEY` | Rotate DKIM Key | Irreversibly rotate an active DKIM key: mark the existing key as rotated and create a replacement key. Publish the returned replacement DNS record before the old key's signing grace period expires or DKIM validation may fail. |
| `MAIL_CHANNELS_SEND_EMAIL` | Send Email | Deliver email to the specified recipients. This action always performs real, irreversible delivery and consumes recipient quota; use RENDER_EMAIL to preview without delivery. |
| `MAIL_CHANNELS_SEND_EMAIL_ASYNCHRONOUS` | Send Email Asynchronously | Queue email for real, irreversible external delivery to the specified recipients. A successful response confirms queue acceptance only, not eventual delivery, and the operation consumes recipient quota. |
| `MAIL_CHANNELS_SET_SUB_ACCOUNT_LIMIT` | Set Sub-account Limit | Set a sub-account's monthly send limit; setting zero prevents it from sending. |
| `MAIL_CHANNELS_SUSPEND_SUB_ACCOUNT` | Suspend Sub-account | Suspend a sub-account and immediately prevent it from sending email until it is explicitly reactivated. This is a service-affecting operation. |
| `MAIL_CHANNELS_UPDATE_CUSTOM_TRACKING_DOMAIN` | Update Custom Tracking Domain | Change the label or active status of one custom tracking domain identified by its exact hostname and event scope. At least one of name or status is required. Reactivation may require DNS verification. |
| `MAIL_CHANNELS_UPDATE_DKIM_KEY_STATUS` | Update DKIM Key Status | Irreversibly revoke, retire, or begin rotating an existing DKIM key. This changes which key can sign mail and may require coordinated DNS changes. |
| `MAIL_CHANNELS_VALIDATE_ALL_WEBHOOKS` | Validate All Webhooks | Create and send a test callback to every enrolled webhook endpoint, then report whether each endpoint returned a 2xx response. This has an external side effect: every enrolled endpoint receives a test event. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to MailChannels
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["mail_channels"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["mail_channels"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run MailChannels tools with your agent

Send a request, execute the MailChannels tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Show my MailChannels domains and their DKIM status"}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Show my MailChannels domains and their DKIM status" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to MailChannels and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["mail_channels"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["mail_channels"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a MailChannels request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to MailChannels tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Show my MailChannels domains and their DKIM status")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Show my MailChannels domains and their DKIM status",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native MailChannels Integration

- Supports both MailChannels MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable email and account tool execution
- Rich coverage for delivery, domains, DKIM, metrics, webhooks, and suppressions

### 2. Managed Auth

- Securely store and use your MailChannels API key without hard-coding it in agent prompts or application code
- Central place to manage, scope, and revoke MailChannels access
- Per-user and per-environment credentials for safer deployments

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Clear schemas help agents work with MailChannels domains, delivery data, and suppression records
- Comprehensive execution logs show what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access MailChannels
- Scoped, least privilege access to MailChannels resources
- Full audit trail of agent actions to support review and compliance

## Use MailChannels with any AI Agent Framework

Choose a framework you want to connect MailChannels with:

- [ChatGPT](https://composio.dev/toolkits/mail_channels/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/mail_channels/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/mail_channels/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/mail_channels/framework/atomic-agent)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [1password](https://composio.dev/toolkits/_1password) - 1Password is a password manager and digital vault for storing logins, secrets, notes, and secure documents. It helps individuals and teams protect credentials, share access safely, and reduce password risk.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Anakin](https://composio.dev/toolkits/anakin_io) - Anakin is a web automation platform offering scraping, crawling, search, and browser automation. Use it to extract structured data, automate site tasks, and monitor web changes reliably.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [AnyAPI](https://composio.dev/toolkits/anyapi) - AnyAPI is a marketplace of utility APIs for validation, currency conversion, holidays, documents, and web data. It brings common application workflows together through one practical API platform.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.
- [Appveyor](https://composio.dev/toolkits/appveyor) - AppVeyor is a cloud-based continuous integration service for building, testing, and deploying applications. It helps developers automate and streamline their software delivery pipelines.
- [Authyo](https://composio.dev/toolkits/authyo) - Authyo is a REST API service for passwordless authentication, OTP verification, session management, and transactional notifications. Use it to add secure login flows and user verification without building auth infrastructure from scratch.
- [AWS Marketplace MCP](https://composio.dev/toolkits/aws_marketplace_mcp) - AWS Marketplace MCP provides MCP access to AWS Marketplace's cloud software, data, and services catalog. Use it to discover, compare, and evaluate 30K+ AWS Marketplace listings faster.
- [Azure Monitor Activity Log](https://composio.dev/toolkits/azure_monitor_activity_log) - Azure Monitor Activity Log is Azure's service that records management and control-plane events for a subscription. Use it to audit changes, troubleshoot issues, and track resource operations across your Azure resources.
- [Backendless](https://composio.dev/toolkits/backendless) - Backendless is a backend-as-a-service platform for mobile and web apps, offering database, file storage, user authentication, and APIs. It helps developers ship scalable applications faster without managing server infrastructure.

## Frequently Asked Questions

### Do I need my own developer credentials to use MailChannels with Composio?

Yes, MailChannels requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
