canonical: https://jentic.com/apis/mailslurp.com/mailslurp

# MailSlurp API

The MailSlurp API creates email inboxes and phone numbers on demand and sends and receives email and SMS. It creates inboxes, sends emails, waits for and reads incoming messages and their attachments, and manages templates, contacts, webhooks, forwarders, and rulesets. Phone numbers can be allocated to receive SMS. Responses are JSON, so an agent can spin up a test inbox, send a message, and read the reply without running its own mail server.

## For AI agents

Create email inboxes and phone numbers, send email and SMS, and wait for, read, and process received messages.

## Scope

Creates inboxes and phone numbers and sends and reads messages through MailSlurp; it does not manage your DNS, sending domains, or deliverability settings, which are configured in the MailSlurp dashboard.

## Capabilities

- Create and list email inboxes
- Send emails from an inbox
- Wait for and read received emails
- Read email attachments and content
- Manage templates, contacts, and forwarders
- Allocate phone numbers and receive SMS

## Use cases

### Create a disposable inbox

Testing signup and email flows needs a fresh mailbox. The MailSlurp API creates an inbox on demand and lists existing inboxes, so an application can generate a real address to receive mail. Each inbox can send and receive without manual mailbox setup.

Example prompt: Create a new inbox and return its email address.

### Send and receive email

Automated flows send messages and check for replies. The MailSlurp API sends an email from an inbox and waits for the latest incoming email, so an application can verify that a message arrived and read its content. This supports confirmation-code and notification testing end to end.

Example prompt: Send an email, then wait for and read the reply.

### Process inbound mail

Applications often act on email as it arrives. The MailSlurp API reads incoming emails and their attachments and manages webhooks, forwarders, and rulesets, so an application can route or react to inbound mail. Webhooks push new-email events to a configured endpoint.

Example prompt: Read a received email and its attachments for processing.

### Agent-driven email flows

An AI agent can create an inbox and check for a message without a developer wiring each call. Through Jentic the agent matches an intent such as 'wait for the verification email' to the MailSlurp wait operation, runs it, and reads the result. The API key stays in the user's Jentic One instance and never reaches the agent's prompt.

Example prompt: Create an inbox, wait for the incoming email, and return its content.

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/inboxes` | Create a new email inbox. |
| GET | `/inboxes` | List email inboxes. |
| POST | `/sendEmail` | Send an email from an inbox. |
| GET | `/waitForLatestEmail` | Wait for and return the latest email. |
| GET | `/emails` | List emails. |
| GET | `/emails/{emailId}` | Get an email's content including headers and body. |

## Key resources

- **Inboxes** — Create and list email inboxes.
- **Emails** — Send, wait for, list, and read emails.
- **Attachments and templates** — Email attachments, templates, and contacts.
- **Phone numbers** — Allocate numbers and receive SMS.

## Why Jentic

- **Setup:** Wiring MailSlurp yourself means managing an API key, creating inboxes, and polling or waiting for incoming mail. With Jentic you install once, import MailSlurp from the API Directory, and store the key a single time.
- **Permission scoping:** Jentic lets you grant your agent only the operations it needs, such as creating inboxes and reading email without inbox deletion, and enforces that on every call.
- **Credential handling:** Your MailSlurp API key is stored once, encrypted, by your own Jentic One instance. It is injected when a call runs and never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents find MailSlurp through Jentic's intent search, matching a request like 'wait for the verification email' to the right operation without hardcoded endpoints.

## Related APIs

- **Mailjet** — Transactional and marketing email delivery.
- **SparkPost** — Email delivery with analytics.
- **Resend** — Developer-focused transactional email.

## FAQ

### What can an AI agent do with the MailSlurp API through Jentic?

An agent can create inboxes and phone numbers, send email and SMS, and wait for, read, and process incoming messages. Through Jentic the agent matches an intent to the right operation and runs it with your API key injected at execution time.

### How do I authenticate with the MailSlurp API?

MailSlurp authenticates requests with an API key sent in the x-api-key header. You store the key once in your Jentic One instance, and it is added to each call at run time rather than exposed to the agent.

### Can MailSlurp receive email as well as send it?

Yes. An inbox can send messages and receive them, and the API can wait for the latest email, read its content and attachments, and push new-email events to a webhook. This supports end-to-end email testing and inbound processing.

### Does the MailSlurp API document rate limits?

The OpenAPI specification does not state rate limits; request allowances depend on your MailSlurp plan. Check the current limits for your account in MailSlurp's documentation.

### Can I control which MailSlurp operations my agent can call?

Yes. Jentic lets you allow only the operations your agent needs, for example creating inboxes and reading email while withholding inbox deletion. Your Jentic One instance enforces that boundary on every call and keeps the API key outside the agent's context.
