Connect Mailtrap to Your AI Agent

Choose a test inbox and ask AI to check a captured email against your expected wording.

50 tools API key

Try a Mailtrap Task

Copy a prompt into your agent with the oo Skill installed. Add your page links and source notes before running it.

oo Skill Mailtrap

Check captured email HTML

Find a captured message and inspect its raw HTML against expected content.

/oo Mailtrap: In Mailtrap account [ID], list messages in inbox [ID] matching [search]. Read message [ID] and its HTML source, then check the expected text and links [values].

Start Working with Mailtrap

  1. Install OOMOL

    Set up oo CLI and the oo Skill in your agent.

    Install OOMOL →
  2. Connect Mailtrap

    Connect a Mailtrap API token; optionally save a default Account ID.

    Connect Mailtrap →
  3. Give Your Agent a Task

    Use /oo with the pages to read, the changes to make, and where to save the result.

    Connection Guide →

Choose Your Agent

  • A Mailtrap API token with access to the selected account and inbox.

Mailtrap Tools

The integration manages test inbox resources, contacts, templates, sending domains, and reporting. It reads captured messages and their HTML source without a direct email-send action.

Test messages

Find inboxes and messages and inspect message details and HTML source.

50 tools

List Accounts

List Mailtrap accounts accessible with the current API token.

mailtrap.list_accounts

List Projects

List Mailtrap projects under one account.

mailtrap.list_projects

Get Project

Get one Mailtrap project by ID.

mailtrap.get_project

Update Project

Update one Mailtrap project.

mailtrap.update_project

Delete Project

Delete one Mailtrap project.

mailtrap.delete_project

List Inboxes

List Mailtrap inboxes under one account.

mailtrap.list_inboxes

Get Inbox

Get one Mailtrap inbox by ID.

mailtrap.get_inbox

Update Inbox

Update one Mailtrap inbox.

mailtrap.update_inbox

Clean Inbox

Delete all messages from one Mailtrap inbox.

mailtrap.clean_inbox

Mark Inbox As Read

Mark all messages in one Mailtrap inbox as read.

mailtrap.mark_inbox_as_read

Reset Inbox Credentials

Reset SMTP credentials for one Mailtrap inbox.

mailtrap.reset_inbox_credentials

List Messages

List messages captured in one Mailtrap inbox.

mailtrap.list_messages

Get Message

Get one Mailtrap inbox message by ID.

mailtrap.get_message

Get Message Html Source

Get the raw HTML source of one Mailtrap inbox message.

mailtrap.get_message_html_source

Create Contact

Create one Mailtrap contact.

mailtrap.create_contact

Get Contact

Get one Mailtrap contact by UUID or email.

mailtrap.get_contact

Update Contact

Update one Mailtrap contact by UUID or email.

mailtrap.update_contact

Delete Contact

Delete one Mailtrap contact by UUID or email.

mailtrap.delete_contact

List Contact Lists

List Mailtrap contact lists.

mailtrap.list_contact_lists

Get Contact List

Get one Mailtrap contact list by ID.

mailtrap.get_contact_list

Create Contact List

Create one Mailtrap contact list.

mailtrap.create_contact_list

Update Contact List

Update one Mailtrap contact list.

mailtrap.update_contact_list

Delete Contact List

Delete one Mailtrap contact list.

mailtrap.delete_contact_list

List Contact Fields

List Mailtrap contact fields.

mailtrap.list_contact_fields

Get Contact Field

Get one Mailtrap contact field by ID.

mailtrap.get_contact_field

Create Contact Field

Create one Mailtrap contact field.

mailtrap.create_contact_field

Update Contact Field

Update one Mailtrap contact field.

mailtrap.update_contact_field

Delete Contact Field

Delete one Mailtrap contact field.

mailtrap.delete_contact_field

Import Contacts

Create one Mailtrap contact import job.

mailtrap.import_contacts

Get Contact Import

Get one Mailtrap contact import job by ID.

mailtrap.get_contact_import

Create Contact Export

Create one Mailtrap contact export job.

mailtrap.create_contact_export

Get Contact Export

Get one Mailtrap contact export job by ID.

mailtrap.get_contact_export

Create Contact Event

Create one custom Mailtrap contact event.

mailtrap.create_contact_event

List Email Templates

List Mailtrap email templates.

mailtrap.list_email_templates

Get Email Template

Get one Mailtrap email template by ID.

mailtrap.get_email_template

Create Email Template

Create one Mailtrap email template.

mailtrap.create_email_template

Update Email Template

Update one Mailtrap email template.

mailtrap.update_email_template

Delete Email Template

Delete one Mailtrap email template.

mailtrap.delete_email_template

List Sending Domains

List Mailtrap sending domains.

mailtrap.list_sending_domains

Get Sending Domain

Get one Mailtrap sending domain by ID.

mailtrap.get_sending_domain

Create Sending Domain

Create one Mailtrap sending domain.

mailtrap.create_sending_domain

Delete Sending Domain

Delete one Mailtrap sending domain.

mailtrap.delete_sending_domain

List Suppressions

List Mailtrap suppressions.

mailtrap.list_suppressions

Get Sending Stats

Get Mailtrap sending stats for one account.

mailtrap.get_sending_stats

Get Sending Stats By Date

Get Mailtrap sending stats grouped by date.

mailtrap.get_sending_stats_by_date

Get Sending Stats By Domains

Get Mailtrap sending stats grouped by sending domain.

mailtrap.get_sending_stats_by_domains

Get Sending Stats By Categories

Get Mailtrap sending stats grouped by category.

mailtrap.get_sending_stats_by_categories

Get Sending Stats By Esp

Get Mailtrap sending stats grouped by email service provider.

mailtrap.get_sending_stats_by_esp

Get Permission Resources

Get Mailtrap permission resources accessible to the token.

mailtrap.get_permission_resources

Get Billing Usage

Get current Mailtrap billing cycle usage.

mailtrap.get_billing_usage

Frequently Asked Questions

How do I choose the account?

Supply an Account ID for the task or use the default stored on the connection.

Can I retrieve the original HTML?

Yes. Provide the inbox and message IDs to retrieve its HTML source separately.

Does cleaning an inbox preserve messages?

No. Cleaning an inbox deletes all messages in that inbox. Marking it as read is a separate operation.

Connect Mailtrap

About Mailtrap ↗