> For the complete documentation index, see [llms.txt](https://docs.mailtrap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mailtrap.io/inbound-email/overview.md).

# Overview

Overview of Mailtrap Inbound Email: receive incoming emails, access messages via API, and get webhook notifications for new messages.

Inbound Email lets you receive incoming emails, read them via API, and get webhook notifications when new messages arrive. Mailtrap accepts messages on your behalf, parses them into structured JSON.

Inbound email is most commonly used for:

* **Internal system automations** – Receive and process/categorize emails (support tickets, invoices, notifications) without running a mail server
* **Admin panels** – Display incoming emails in your own web app or admin panel
* **AI agents** – Give your AI agent its own email address to receive and process messages
* **Agent frameworks** – You're building with OpenClaw, LangChain, CrewAI, or other agent frameworks and need email as a tool via MCP

**Note**: We also support custom receiving domains.

{% embed url="<https://docs.mailtrap.io/developers/inbound/>" %}
Link to official API documentation
{% endembed %}

{% hint style="info" %}
The UI is coming soon.
{% endhint %}

### How it works

First, you need to create an inbox via the API and get an address like **<app1@inbound-mailtrap.io>** (for Mailtrap-hosted inbound inboxes). From there you have two options: configure a webhook to get notified on every new message, or poll the Messages API on your own schedule. Or both.

{% content-ref url="/pages/yiNDG25FvjgIQf7d2rNR" %}
[Receiving emails](/inbound-email/receiving-emails.md)
{% endcontent-ref %}

{% content-ref url="/pages/dyFkrEzKFgqJnhIDMz6u" %}
[Webhooks](/inbound-email/webhooks.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mailtrap.io/inbound-email/overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
