Built by Metorial, the integration platform for agentic AI.
Create, verify, or delete a custom email domain. Use `action` to specify the operation: - **create**: Register a new domain (returns DNS records to configure) - **verify**: Trigger verification of DNS records for a pending domain - **delete**: Remove a domain Custom domains require a paid plan. After creating, configure the DNS records and then verify.
Add or remove labels from an email message. Labels are used for organizing, filtering, and managing the state of conversations.
Create, update, or send an email draft. Use `action` to specify the operation: - **create**: Create a new draft in an inbox - **update**: Update an existing draft's content - **send**: Send an existing draft as an email Drafts support scheduling via `sendAt` for delayed sending.
List email drafts in an inbox. Returns draft metadata including subject, recipients, and scheduled send time. Supports pagination.
Retrieve the full details of a specific email message including headers, body content, attachments metadata, and extracted text. The `extractedText` and `extractedHtml` fields contain the reply content without quoted history.
Retrieve details of a specific email inbox by its ID, including its display name, pod association, and timestamps.
List email conversation threads in an inbox. Threads group related messages together. Supports filtering by labels, date range, and pagination.
List entries in an email allow or block list. Specify the direction (send/receive) and list type (allow/block) to view the corresponding list entries.
Reply to an existing email message. Replies stay linked to the original thread. Use `replyAll` to reply to all original recipients. You can also add additional recipients via `to`, `cc`, and `bcc`.
Get a presigned download URL for an email attachment. The URL is temporary and expires after a set time. You can look up attachments from either a message or a thread.
List all pods in the account. Pods are multi-tenant containers that group inboxes and domains for isolated email management. A default pod is created with every account.
List email messages in an inbox with filtering by labels, date range, and inclusion of spam/blocked/trash. Supports pagination. Returns messages sorted by timestamp (newest first by default).
Create or delete a pod for multi-tenant isolation. Pods group inboxes and domains for a single customer/user/agent, keeping email data separate. A default pod is created when you sign up. - **create**: Create a new pod - **delete**: Delete an empty pod (all inboxes and domains must be removed first)
Create, update, or delete webhooks for receiving email and domain events. Webhooks can be scoped to specific pods or inboxes. Available event types: `message.received`, `message.sent`, `message.delivered`, `message.bounced`, `message.complained`, `message.rejected`, `domain.verified`.
Add or remove entries from email allow/block lists. Lists control which emails or domains can send to or receive from your inboxes. Specify `direction` (send or receive) and `listType` (allow or block) to target the correct list.
Update an inbox's display name. The display name format is typically "Display Name <username@domain.com>".
Retrieve a full email thread including all messages ordered by timestamp. Provides the complete conversation history with sender/recipient details, message content, and metadata.
Delete an email draft from an inbox. This permanently removes the draft.
Delete an email thread and all its messages from an inbox. This action cannot be undone.
Send a new email from an inbox. Supports plain text and HTML bodies, attachments (base64 or URL), CC/BCC recipients, custom headers, and labels. AgentMail handles SPF, DKIM, and DMARC automatically.
Permanently delete an email inbox and all its associated data (messages, threads, drafts). This action cannot be undone.
List all custom email domains in the account with their verification status and DNS records. Supports pagination.
List all email inboxes in the account. Supports cursor-based pagination. Returns inboxes sorted by creation date (newest first by default).
Create a new email inbox for an AI agent. The inbox can use the default `@agentmail.to` domain or a custom domain (requires a paid plan). If no username is provided, one will be auto-generated.
Forward an existing email message to new recipients. The original message content is included and you can add additional text or recipients.