# Mailtrap AI integration on Definable

> Email Delivery Platform for testing and sending transactional emails

## What this connects

Email Delivery Platform for testing and sending transactional emails

Vendor: https://mailtrap.io/

## Tools available

**49** tools available. First 12:

- `MAILTRAP_CLEAN_INBOX` — 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.
- `MAILTRAP_CREATE_CONTACT` — 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.
- `MAILTRAP_CREATE_CONTACT_EVENT` — 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.
- `MAILTRAP_CREATE_CONTACT_EXPORT` — 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).
- `MAILTRAP_CREATE_CONTACT_FIELD` — 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.
- `MAILTRAP_CREATE_CONTACT_LIST` — 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.
- `MAILTRAP_CREATE_EMAIL_TEMPLATE` — 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.
- `MAILTRAP_CREATE_SENDING_DOMAIN` — 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.
- `MAILTRAP_DELETE_CONTACT` — 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.
- `MAILTRAP_DELETE_CONTACT_FIELD` — 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.
- `MAILTRAP_DELETE_CONTACT_LIST` — Delete Contact List — Tool to delete a contact list by its ID. Use when you need to remove a contact list from an account.
- `MAILTRAP_DELETE_EMAIL_TEMPLATE` — Delete Email Template — Tool to delete an email template from a Mailtrap account. Use when you need to remove an existing email template.

## Auth

Auth schemes: `API_KEY`, `API_KEY`.

## How agents use Mailtrap

Inside a Definable workflow, Mailtrap is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → Mailtrap** — the Researcher (GPT-5.5) pulls context from Mailtrap (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → Mailtrap** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into Mailtrap (create record, post message, draft email).
- **Designer / Engineer → Distributor → Mailtrap** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via Mailtrap (attach file, open PR comment, post status).

The Verifier checks every Mailtrap call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- developer tools — https://definable.ai/apps/category/developer-tools/
- transactional email — https://definable.ai/apps/category/transactional-email/

## Related

- HTML page: https://definable.ai/apps/mailtrap/
- Same category (developer tools): https://definable.ai/apps/category/developer-tools/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
