Skip to main content
Mailtrap logo

Mailtrap

Email Delivery Platform for testing and sending transactional emails

This is a first-class FlyMyAI MCP. Agents discover it automatically via tool search and call the actions below on demand - you never wire it up by hand. See the Composio catalog for how discovery works.

Connect

Mailtrap authenticates with a bearer token. Generate the credential in your Mailtrap account, then paste it into FlyMyAI the first time an agent uses a Mailtrap action.

Get your Mailtrap credential →

Fields to fill in FlyMyAI

FieldDetails
Bearer TokenToken for bearer authentication (required)
API TokenSign in and copy your API Token directly from your dashboard under Settings > API Tokens (https://mailtrap.io/api-tokens) (required)

Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

ActionWhat it doesRequired inputs
MAILTRAP_CLEAN_INBOXTool to clean an inbox in Mailtrap by deleting all messages. Use when you need to remove all emails from an inbox while keeping the inbox itself.account_id, inbox_id
MAILTRAP_CREATE_CONTACTTool to create a new contact in Mailtrap. Use when you need to add a contact with an email address to a Mailtrap account. Optionally include custom fields and assign to contact lists.account_id, contact
MAILTRAP_CREATE_CONTACT_EVENTTool to create a contact event in Mailtrap. Use when you need to track custom events associated with a contact for segmentation or automation triggers.account_id, contact_identifier, name
MAILTRAP_CREATE_CONTACT_EXPORTTool to create a contact export job for a Mailtrap account. Use when you need to export contacts with filters. The export is processed asynchronously - the response includes a job ID and status. Check the status field; when it becomes 'finished', the url fiel…account_id, filters
MAILTRAP_CREATE_CONTACT_FIELDTool to create a custom contact field in Mailtrap. Use when you need to add new contact attributes for personalization and segmentation in email campaigns.account_id, name, data_type, merge_tag
MAILTRAP_CREATE_CONTACT_LISTTool to create a new contact list in Mailtrap. Use when you need to organize contacts into groups or segments. Each contact list has a unique ID and name that can be used to add contacts to it later.account_id, name
MAILTRAP_CREATE_EMAIL_TEMPLATETool to create a new email template in Mailtrap account. Use when you need to create a reusable email template with HTML/text content, subject, and category. The template can be used for sending promotional, transactional, or newsletter emails.account_id, email_template
MAILTRAP_CREATE_SENDING_DOMAINTool to create a new sending domain in Mailtrap. Use when you need to register a domain for sending transactional emails. After creation, DNS records must be configured before the domain can be used for sending.account_id, sending_domain
MAILTRAP_DELETE_CONTACTTool to delete a contact from a Mailtrap account. Use when you need to permanently remove a contact by their UUID or email address. The deletion is permanent and cannot be undone.account_id, contact_identifier
MAILTRAP_DELETE_CONTACT_FIELDTool to delete a contact field by its ID. Use when you need to remove a custom contact field from an account.account_id, field_id
MAILTRAP_DELETE_CONTACT_LISTTool to delete a contact list by its ID. Use when you need to remove a contact list from an account.account_id, list_id
MAILTRAP_DELETE_EMAIL_TEMPLATETool to delete an email template from a Mailtrap account. Use when you need to remove an existing email template.account_id, email_template_id
MAILTRAP_DELETE_PROJECTTool to delete a project from Mailtrap. Use when you need to permanently remove a project and its associated resources. Returns the ID of the deleted project.account_id, project_id
MAILTRAP_DELETE_SENDING_DOMAINTool to delete a sending domain from a Mailtrap account. Use when you need to remove a domain permanently.account_id, sending_domain_id
MAILTRAP_GET_BILLING_USAGETool to retrieve current billing cycle usage for an account. Use when you need to check billing information, usage limits, or consumption for Email Sandbox and Email Sending services.account_id
MAILTRAP_GET_CONTACTTool to retrieve a contact by UUID or email address from Mailtrap. Use when you need to fetch details of a specific contact including their subscription status, lists, and custom fields.account_id, contact_identifier
MAILTRAP_GET_CONTACT_EXPORTTool to retrieve the status of a contact export. Use when you need to check the progress of an export or download the exported contacts file.account_id, export_id
MAILTRAP_GET_CONTACT_FIELDTool to retrieve contact field details by field ID. Use when you need to get information about a specific custom field in your contacts.account_id, field_id
MAILTRAP_GET_CONTACT_IMPORTTool to retrieve the status of a contact import operation. Use when you need to check the progress or completion status of a contact import. Use after initiating a contact import to monitor its status and retrieve statistics once finished.account_id, import_id
MAILTRAP_GET_CONTACT_LISTTool to retrieve a specific contact list by its ID. Use when you need to fetch details about a contact list in a Mailtrap account.account_id, list_id
MAILTRAP_GET_EMAIL_TEMPLATETool to retrieve details of a specific email template by ID. Use when you need to fetch template content, metadata, or configuration for an existing email template.account_id, email_template_id
MAILTRAP_GET_INBOXTool to retrieve inbox attributes from Mailtrap. Use when you need to get details about a specific inbox including its configuration, statistics, and permissions.account_id, inbox_id
MAILTRAP_GET_MESSAGE_HTMLTool to retrieve the HTML body of a message from Mailtrap. Use when you need to get the formatted HTML content of a specific email message.account_id, inbox_id, message_id
MAILTRAP_GET_PERMISSION_RESOURCESTool to retrieve all resources in account for permission management. Use when you need to see the hierarchical structure of projects, inboxes, and other resources with their access levels for the current authentication token.account_id
MAILTRAP_GET_PROJECTTool to retrieve project details from Mailtrap by project ID. Use when you need to get information about a specific project including its inboxes, permissions, and share links.account_id, project_id
MAILTRAP_GET_SENDING_DOMAINTool to retrieve sending domain details from Mailtrap. Use when you need to check domain configuration, DNS verification status, or tracking settings.account_id, sending_domain_id
MAILTRAP_GET_SENDING_STATSTool to retrieve email sending statistics from Mailtrap for a specific account. Use when you need metrics like delivery rate, bounce rate, open rate, click rate, and spam rate for a date range.account_id, start_date, end_date
MAILTRAP_GET_SENDING_STATS_BY_CATEGORIESTool to retrieve email sending statistics grouped by categories. Use when you need to analyze email performance metrics (delivery, bounce, open, click, spam rates) segmented by email categories within a date range.account_id, start_date, end_date
MAILTRAP_GET_SENDING_STATS_BY_DATETool to retrieve email sending statistics aggregated by date. Use when you need to analyze email delivery performance, bounce rates, open rates, click rates, and spam rates for a specific date range.account_id, start_date, end_date
MAILTRAP_GET_SENDING_STATS_BY_DOMAINSTool to retrieve sending statistics grouped by domains for a Mailtrap account. Use when you need email delivery, bounce, open, click, and spam metrics broken down by sending domain for a specific date range. Supports filtering by domain IDs, sending streams,…account_id, start_date, end_date
MAILTRAP_GET_SENDING_STATS_BY_ESPTool to retrieve email sending statistics grouped by email service providers (ESPs) for a specified date range. Returns delivery, bounce, open, click, and spam metrics for each ESP. Use when you need to analyze email performance across different email provide…account_id, start_date, end_date
MAILTRAP_IMPORT_CONTACTSTool to import contacts in bulk to Mailtrap. Use when you need to add or update multiple contacts at once. The import operation is asynchronous and returns a job ID that can be used to check the status later.account_id, contacts
MAILTRAP_LIST_ACCOUNTSTool to list all Mailtrap accounts you have access to. Use when you need to retrieve account information or get account IDs for other operations. Returns account ID, name, and access levels (1000=owner, 100=admin, 10=viewer).-
MAILTRAP_LIST_CONTACT_FIELDSTool to get all contact fields for a Mailtrap account. Use when you need to retrieve custom field definitions for contacts.account_id
MAILTRAP_LIST_CONTACT_LISTSTool to retrieve all contact lists for a Mailtrap account. Use when you need to view available contact lists or obtain contact list IDs for other operations.account_id
MAILTRAP_LIST_EMAIL_TEMPLATESTool to retrieve all email templates for a Mailtrap account. Use when you need to list available templates, browse template configurations, or find a specific template by name or attributes.account_id
MAILTRAP_LIST_INBOXESTool to get a list of inboxes for a Mailtrap account. Use when you need to retrieve all inboxes associated with an account ID. Returns the list of inboxes with their configuration, permissions, and statistics.account_id
MAILTRAP_LIST_MESSAGESTool to get messages from a Mailtrap inbox. Use when you need to retrieve emails from a specific inbox, with support for search filtering and pagination. Returns up to 30 messages per request.account_id, inbox_id
MAILTRAP_LIST_PROJECTSTool to get a list of projects for a Mailtrap account. Use when you need to retrieve all projects and their associated inboxes for a specific account. Returns project attributes, permissions, and nested inbox information.account_id
MAILTRAP_LIST_SENDING_DOMAINSTool to list all sending domains for a Mailtrap account. Use when you need to retrieve configured domains for email sending.account_id
MAILTRAP_LIST_SUPPRESSIONSTool to list suppressed email addresses for a Mailtrap account. Use when you need to view which emails are blocked from receiving messages due to bounces, complaints, unsubscribes, or manual suppression.account_id
MAILTRAP_MARK_INBOX_AS_READTool to mark all messages in a Mailtrap inbox as read. Use when you need to mark all unread messages as read in a specific inbox.account_id, inbox_id
MAILTRAP_RESET_INBOX_CREDENTIALSTool to reset SMTP credentials for a Mailtrap inbox. Use when you need to regenerate the username and password for inbox access.account_id, inbox_id
MAILTRAP_UPDATE_CONTACTTool to update an existing contact in Mailtrap. Use when you need to modify contact details such as email, custom fields, list memberships, or subscription status. If the contact doesn't exist, it will be created.account_id, contact_identifier, contact
MAILTRAP_UPDATE_CONTACT_FIELDTool to update a contact field in Mailtrap. Use when you need to modify the name or merge tag of an existing contact field.account_id, field_id
MAILTRAP_UPDATE_CONTACT_LISTTool to update a contact list's name in Mailtrap. Use when you need to rename an existing contact list.account_id, list_id, name
MAILTRAP_UPDATE_EMAIL_TEMPLATETool to update an existing email template in Mailtrap account. Use when you need to modify template properties such as name, subject, category, HTML body, or plain text body. All fields in the email_template object are optional - only provide the fields you w…account_id, email_template_id, email_template
MAILTRAP_UPDATE_INBOXTool to update an inbox's settings in Mailtrap. Use when you need to change the inbox name or email username.account_id, inbox_id, inbox
MAILTRAP_UPDATE_PROJECTTool to update a project's name in Mailtrap. Use when you need to rename an existing project.account_id, project_id, project
We love our partners - FlyMy.AI builds with the best. Thanks, Mailtrap!