# Mailtrap integration

> Email API for sending transactional and bulk email, Email Sandbox testing, email marketing campaigns and contacts, templates, and inbound email.

- Authentication: apiKey

## Tools (136)

- **Bulk stream: Batch send emails**: Send up to 500 marketing emails in a single API call through the bulk stream.
- **Bulk stream: Send bulk email**: Send marketing emails and newsletters through the bulk stream optimized for high-volume sending.
- **Cancel a scheduled email campaign**: Cancels a scheduled campaign and returns it to draft.
- **Clean sandbox**: Delete all messages (emails) from a sandbox.
- **Create a folder**: Create a new inbound folder.
- **Create an email campaign**: Creates a new email campaign in the draft state.
- **Create a new Contact**: Create a new contact.
- **Create an inbox**: Create a new inbound inbox in a folder.
- **Create API token**: Creates a new API token for the account with the given name and resource permissions.
- **Create a sandbox**: Create a sandbox in a project.
- **Create a webhook**: Create a new webhook for the account; the response includes the signing secret.
- **Create company info**: Create company information for a domain / account (required for compliance verification).
- **Create contact event**: Submit custom event for contact.
- **Create Contact Export**: Create a new Contact Export.
- **Create Contact Field**: Create new Contact Fields (up to 40 fields).
- **Create Contact List**: Create new Contact Lists.
- **Create domain**: Create a sending domain for email authentication.
- **Create Email Template**: Create a new email template.
- **Create Email Template (Experimental)**: Experimental: create an email template with a flat body, returned in a data envelope.
- **Create organization sub account**: Create a new sub account under the specified organization.
- **Create project**: Create a sandbox project (name 2 to 100 characters).
- **Create suppression**: Add an email address to the suppression list.
- **Create tracking opt-out**: Add an email address to the tracking opt-out list for a sending domain.
- **Delete a folder**: Permanently delete an inbound folder along with all of its inboxes.
- **Delete a message**: Permanently delete an inbound message and its stored body and attachments.
- **Delete an email campaign**: Soft-deletes a draft email campaign.
- **Delete an inbox**: Permanently delete an inbox and all its received messages.
- **Delete API token**: Permanently deletes an API token.
- **Delete a sandbox**: Delete a sandbox with all its emails.
- **Delete a thread**: Delete a thread; inbound messages are removed, sent messages preserved.
- **Delete a webhook**: Permanently delete a webhook.
- **Delete contact**: Delete contact using UUID or email (URL encoded).
- **Delete Contact Field**: Delete existing Contact Field (not allowed when used in automations, started/scheduled campaigns or segment conditions).
- **Delete Contact List**: Delete existing Contact List.
- **Delete domain**: Remove a domain from your account.
- **Delete Email Template**: Delete an email template.
- **Delete Email Template (Experimental)**: Experimental: delete an email template.
- **Delete message**: Delete a message from a sandbox.
- **Delete project**: Delete project and its sandboxes.
- **Delete suppression**: Remove an email from the suppression list to allow sending again.
- **Delete tracking opt-out**: Remove an email address from the tracking opt-out list.
- **Enable email address**: Turn the email address of the sandbox on/off.
- **Forward a message**: Forward an inbound message to new recipients.
- **Forward message**: Forward a sandbox message to a confirmed email address.
- **Get a folder**: Returns a single inbound folder.
- **Get a list of contacts**: Returns a paginated list of the account's contacts.
- **Get a list of email campaigns**: Returns a paginated list of the account's email campaigns, newest first.
- **Get a list of projects**: List projects and their sandboxes to which the API token has access.
- **Get a list of sandboxes**: Get a list of sandboxes.
- **Get all Contact Fields**: Get all Contact Fields existing in your account.
- **Get all Contact Lists**: Get all contact lists existing in your account.
- **Get all Email Templates**: Get all email templates in your account as a single unpaginated array.
- **Get a message**: Returns a single inbound message with raw .eml and attachment URLs and decoded bodies.
- **Get an email campaign by ID**: Returns a single email campaign.
- **Get an email log message by ID**: Returns a single email log message by message UUID.
- **Get an inbox**: Returns a single inbound inbox.
- **Get a paginated list of Email Templates (Experimental)**: Experimental: paginated list of email templates in a data envelope.
- **Get API token**: Returns a single API token by id.
- **Get a thread**: Returns a single thread with its messages embedded, oldest first.
- **Get attachments**: Get message attachments by sandbox_id and message_id.
- **Get a webhook**: Returns a single webhook by ID.
- **Get company info**: Get company information associated with a domain / account.
- **Get contact**: Get contact using UUID or email (URL encoded).
- **Get Contact Export**: Get Contact Export status and file URL.
- **Get Contact Field**: Get a contact Field by ID.
- **Get Contact Import**: Get Contact Import status and counts.
- **Get Contact List**: Get a contact list by ID.
- **Get current billing cycle usage**: Get current billing cycle usage for Email Sandbox, Email Sending (Email API/SMTP), and Email Marketing.
- **Get domain**: Get details and verification status of a specific domain.
- **Get email campaign statistics**: Returns aggregated performance metrics for a single campaign.
- **Get Email Template**: Get an email template by ID.
- **Get Email Template (Experimental)**: Experimental: get a single email template in a data envelope.
- **Get HTML message**: Get the formatted HTML email body of a sandbox message.
- **Get mail headers**: Get mail headers of a sandbox message.
- **Get message as .eml**: Get a sandbox email message in .eml format.
- **Get message HTML analysis**: Get a brief HTML report by message ID.
- **Get messages**: Get all messages in a sandbox (up to 30 per request).
- **Get message source**: Get the HTML source of a sandbox email.
- **Get message spam score**: Get a brief spam report by message ID.
- **Get organization sub accounts**: Get a list of sub accounts for the specified organization.
- **Get project by ID**: Get the project and its sandboxes.
- **Get raw message**: Get the raw email body of a sandbox message.
- **Get resources**: Get all resources in your account to which the token has admin access.
- **Get sandbox attributes**: Get sandbox attributes by sandbox id.
- **Get Sending Stats**: Get account sending stats.
- **Get Sending Stats by Categories**: Get account sending stats grouped by category.
- **Get Sending Stats by Date**: Get account sending stats grouped by date.
- **Get Sending Stats by Domains**: Get account sending stats grouped by domain.
- **Get Sending Stats by Email Service Providers**: Get account sending stats grouped by recipient email service provider.
- **Get single attachment**: Get a single message attachment by id.
- **Get text message**: Get the text email body of a sandbox message, if it exists.
- **Import contacts**: Import contacts in bulk with support for custom fields and list management.
- **List account(s) you have access to**: This endpoint returns account details for the authenticated user.
- **List API tokens**: Returns all API tokens visible to the current API token.
- **List domains**: Get all domains and their verification status.
- **List email logs**: Returns a paginated list of email logs (messages) for the account.
- **List folders**: Returns all inbound folders in the account.
- **List inboxes**: Returns all inboxes in an inbound folder.
- **List messages**: Returns inbound messages received by an inbox, newest first.
- **List suppressions**: List and search suppressed email addresses.
- **List threads**: Returns the inbox's conversation threads, most recent activity first.
- **List tracking opt-outs**: List email addresses that have opted out of open and click tracking.
- **List User & Invite account accesses**: Get list of account accesses for which `specifier_type` is `User` or `Invite`.
- **List webhooks**: Returns all webhooks for the account.
- **Manage user or token permissions**: Create, update or destroy permissions of a user or API token on resources, in bulk.
- **Mark as read**: Mark all messages in the sandbox as read.
- **Remove account access**: If specifier type is User, it removes user permissions.
- **Reply all to a message**: Reply to an inbound message and copy the original's other recipients.
- **Reply to a message**: Send a threaded reply to an inbound message.
- **Reset an email campaign to draft**: Resets a scheduled campaign back to the draft state.
- **Reset API token**: Expires the requested token and creates a new token with the same permissions.
- **Reset credentials**: Reset SMTP credentials of the sandbox.
- **Reset email address**: Reset the username of the email address of a sandbox.
- **Sandbox: Batch send email (including templates)**: Send up to 500 emails to the specified sandbox in one call.
- **Sandbox: Send email (including templates)**: Send an email message to the specified sandbox (text, HTML, text and HTML, or template).
- **Schedule an email campaign**: Schedules a draft campaign to start sending at a future time.
- **Send setup instructions**: Email DNS configuration instructions for the domain.
- **Show email message**: Get a sandbox email message by ID.
- **Start an email campaign**: Starts sending a draft campaign immediately.
- **Terminate a sending email campaign**: Terminates a campaign that is currently sending, aborting the in-flight send.
- **Transactional stream: Batch send emails**: Send up to 500 transactional emails in a single API call.
- **Transactional stream: Send transactional email**: Send a single transactional email with text, HTML, or template content.
- **Update a folder**: Update an inbound folder.
- **Update an email campaign**: Updates an existing draft campaign; only provided attributes change.
- **Update an inbox**: Rename an inbound inbox.
- **Update a sandbox**: Update sandbox name and sandbox email username.
- **Update a webhook**: Update an existing webhook.
- **Update company info**: Update company information for a domain / account; only provided fields change.
- **Update contact**: Update contact using UUID or email (URL encoded).
- **Update Contact Field**: Update existing Contact Field (data_type cannot be changed).
- **Update Contact List**: Update existing Contact List.
- **Update domain**: Update configuration settings for a domain.
- **Update Email Template**: Update an email template.
- **Update Email Template (Experimental)**: Experimental: update an email template with a flat body, returned in a data envelope.
- **Update message**: Update message attributes (currently only is_read).
- **Update project**: Update project name.

Connect Mailtrap in General Input: https://www.generalinput.com/apps/mailtrap