# Mailtrap

Email Delivery Platform for testing and sending transactional emails

- **Category:** developer tools
- **Auth:** API_KEY, API_KEY
- **Tools:** 49
- **Triggers:** 0
- **Slug:** `MAILTRAP`
- **Version:** 00000000_00

## Tools

### Clean Inbox

**Slug:** `MAILTRAP_CLEAN_INBOX`

Tool 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.

### Create Contact

**Slug:** `MAILTRAP_CREATE_CONTACT`

Tool 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.

### Create Contact Event

**Slug:** `MAILTRAP_CREATE_CONTACT_EVENT`

Tool to create a contact event in Mailtrap. Use when you need to track custom events associated with a contact for segmentation or automation triggers.

### Create Contact Export

**Slug:** `MAILTRAP_CREATE_CONTACT_EXPORT`

Tool 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 field will contain the download link for the exported contacts file. Filters are required - you must specify at least one filter such as subscription_status (subscribed/unsubscribed) or list_id (array of list IDs).

### Create Contact Field

**Slug:** `MAILTRAP_CREATE_CONTACT_FIELD`

Tool to create a custom contact field in Mailtrap. Use when you need to add new contact attributes for personalization and segmentation in email campaigns.

### Create Contact List

**Slug:** `MAILTRAP_CREATE_CONTACT_LIST`

Tool 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.

### Create Email Template

**Slug:** `MAILTRAP_CREATE_EMAIL_TEMPLATE`

Tool 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.

### Create Sending Domain

**Slug:** `MAILTRAP_CREATE_SENDING_DOMAIN`

Tool 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.

### Delete Contact

**Slug:** `MAILTRAP_DELETE_CONTACT`

Tool 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.

### Delete Contact Field

**Slug:** `MAILTRAP_DELETE_CONTACT_FIELD`

Tool to delete a contact field by its ID. Use when you need to remove a custom contact field from an account.

### Delete Contact List

**Slug:** `MAILTRAP_DELETE_CONTACT_LIST`

Tool to delete a contact list by its ID. Use when you need to remove a contact list from an account.

### Delete Email Template

**Slug:** `MAILTRAP_DELETE_EMAIL_TEMPLATE`

Tool to delete an email template from a Mailtrap account. Use when you need to remove an existing email template.

### Delete Project

**Slug:** `MAILTRAP_DELETE_PROJECT`

Tool 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.

### Delete Sending Domain

**Slug:** `MAILTRAP_DELETE_SENDING_DOMAIN`

Tool to delete a sending domain from a Mailtrap account. Use when you need to remove a domain permanently.

### Get Billing Usage

**Slug:** `MAILTRAP_GET_BILLING_USAGE`

Tool 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.

### Get Contact

**Slug:** `MAILTRAP_GET_CONTACT`

Tool 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.

### Get Contact Export

**Slug:** `MAILTRAP_GET_CONTACT_EXPORT`

Tool 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.

### Get Contact Field

**Slug:** `MAILTRAP_GET_CONTACT_FIELD`

Tool to retrieve contact field details by field ID. Use when you need to get information about a specific custom field in your contacts.

### Get Contact Import Status

**Slug:** `MAILTRAP_GET_CONTACT_IMPORT`

Tool 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.

### Get Contact List

**Slug:** `MAILTRAP_GET_CONTACT_LIST`

Tool to retrieve a specific contact list by its ID. Use when you need to fetch details about a contact list in a Mailtrap account.

### Get Email Template

**Slug:** `MAILTRAP_GET_EMAIL_TEMPLATE`

Tool 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.

### Get Inbox Attributes

**Slug:** `MAILTRAP_GET_INBOX`

Tool to retrieve inbox attributes from Mailtrap. Use when you need to get details about a specific inbox including its configuration, statistics, and permissions.

### Get Message HTML Body

**Slug:** `MAILTRAP_GET_MESSAGE_HTML`

Tool 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.

### Get Permission Resources

**Slug:** `MAILTRAP_GET_PERMISSION_RESOURCES`

Tool 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.

### Get Project by ID

**Slug:** `MAILTRAP_GET_PROJECT`

Tool 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.

### Get Sending Domain

**Slug:** `MAILTRAP_GET_SENDING_DOMAIN`

Tool to retrieve sending domain details from Mailtrap. Use when you need to check domain configuration, DNS verification status, or tracking settings.

### Get Sending Stats

**Slug:** `MAILTRAP_GET_SENDING_STATS`

Tool 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.

### Get Sending Stats by Categories

**Slug:** `MAILTRAP_GET_SENDING_STATS_BY_CATEGORIES`

Tool 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.

### Get Sending Stats by Date

**Slug:** `MAILTRAP_GET_SENDING_STATS_BY_DATE`

Tool 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.

### Get Sending Stats by Domains

**Slug:** `MAILTRAP_GET_SENDING_STATS_BY_DOMAINS`

Tool 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, categories, and email service providers.

### Get Sending Stats by ESP

**Slug:** `MAILTRAP_GET_SENDING_STATS_BY_ESP`

Tool 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 providers like Google, Yahoo, Microsoft, etc.

### Import Contacts

**Slug:** `MAILTRAP_IMPORT_CONTACTS`

Tool 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.

### List Accounts

**Slug:** `MAILTRAP_LIST_ACCOUNTS`

Tool 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).

### List Contact Fields

**Slug:** `MAILTRAP_LIST_CONTACT_FIELDS`

Tool to get all contact fields for a Mailtrap account. Use when you need to retrieve custom field definitions for contacts.

### List Contact Lists

**Slug:** `MAILTRAP_LIST_CONTACT_LISTS`

Tool 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.

### List Email Templates

**Slug:** `MAILTRAP_LIST_EMAIL_TEMPLATES`

Tool 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.

### List Inboxes

**Slug:** `MAILTRAP_LIST_INBOXES`

Tool 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.

### List Messages in Inbox

**Slug:** `MAILTRAP_LIST_MESSAGES`

Tool 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.

### List Projects

**Slug:** `MAILTRAP_LIST_PROJECTS`

Tool 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.

### List Sending Domains

**Slug:** `MAILTRAP_LIST_SENDING_DOMAINS`

Tool to list all sending domains for a Mailtrap account. Use when you need to retrieve configured domains for email sending.

### List Email Suppressions

**Slug:** `MAILTRAP_LIST_SUPPRESSIONS`

Tool 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.

### Mark Inbox as Read

**Slug:** `MAILTRAP_MARK_INBOX_AS_READ`

Tool 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.

### Reset Inbox Credentials

**Slug:** `MAILTRAP_RESET_INBOX_CREDENTIALS`

Tool to reset SMTP credentials for a Mailtrap inbox. Use when you need to regenerate the username and password for inbox access.

### Update contact

**Slug:** `MAILTRAP_UPDATE_CONTACT`

Tool 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.

### Update Contact Field

**Slug:** `MAILTRAP_UPDATE_CONTACT_FIELD`

Tool to update a contact field in Mailtrap. Use when you need to modify the name or merge tag of an existing contact field.

### Update Contact List

**Slug:** `MAILTRAP_UPDATE_CONTACT_LIST`

Tool to update a contact list's name in Mailtrap. Use when you need to rename an existing contact list.

### Update Email Template

**Slug:** `MAILTRAP_UPDATE_EMAIL_TEMPLATE`

Tool 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 want to update.

### Update inbox

**Slug:** `MAILTRAP_UPDATE_INBOX`

Tool to update an inbox's settings in Mailtrap. Use when you need to change the inbox name or email username.

### Update project

**Slug:** `MAILTRAP_UPDATE_PROJECT`

Tool to update a project's name in Mailtrap. Use when you need to rename an existing project.
