> 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/api-docs/email-sandbox.md).

# Email Sandbox

- [Send Test Emails](https://docs.mailtrap.io/api-docs/email-sandbox/send-test-emails.md): Send emails to sandbox
- [Send email (including templates)](https://docs.mailtrap.io/api-docs/email-sandbox/send-test-emails/send-email-including-templates.md)
- [Batch send email (including templates)](https://docs.mailtrap.io/api-docs/email-sandbox/send-test-emails/batch-send-email-including-templates.md)
- [Projects](https://docs.mailtrap.io/api-docs/email-sandbox/projects.md): Organize test environments
- [Get a list of projects](https://docs.mailtrap.io/api-docs/email-sandbox/projects/get-a-list-of-projects.md)
- [Create project](https://docs.mailtrap.io/api-docs/email-sandbox/projects/create-project.md)
- [Get project by ID](https://docs.mailtrap.io/api-docs/email-sandbox/projects/get-project-by-id.md)
- [Delete project](https://docs.mailtrap.io/api-docs/email-sandbox/projects/delete-project.md)
- [Update project](https://docs.mailtrap.io/api-docs/email-sandbox/projects/update-project.md)
- [Sandboxes](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes.md): Manage test sandboxes
- [Get a list of sandboxes](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/get-a-list-of-sandboxes.md)
- [Create a sandbox](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/create-a-sandbox.md)
- [Get sandbox attributes](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/get-sandbox-attributes.md)
- [Delete a sandbox](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/delete-a-sandbox.md)
- [Update a sandbox](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/update-a-sandbox.md)
- [Clean sandbox](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/clean-sandbox.md)
- [Mark as read](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/mark-as-read.md)
- [Reset credentials](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/reset-credentials.md)
- [Enable email address](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/enable-email-address.md)
- [Reset email address](https://docs.mailtrap.io/api-docs/email-sandbox/sandboxes/reset-email-address.md)
- [Messages](https://docs.mailtrap.io/api-docs/email-sandbox/messages.md): Inspect captured emails
- [Show email message](https://docs.mailtrap.io/api-docs/email-sandbox/messages/show-email-message.md)
- [Delete message](https://docs.mailtrap.io/api-docs/email-sandbox/messages/delete-message.md)
- [Update message](https://docs.mailtrap.io/api-docs/email-sandbox/messages/update-message.md)
- [Get messages](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-messages.md)
- [Forward message](https://docs.mailtrap.io/api-docs/email-sandbox/messages/forward-message.md)
- [Get message spam score](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-message-spam-score.md)
- [Get message HTML analysis](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-message-html-analysis.md)
- [Get text message](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-text-message.md)
- [Get raw message](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-raw-message.md)
- [Get message source](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-message-source.md)
- [Get HTML message](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-html-message.md)
- [Get message as .eml](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-message-as-eml.md)
- [Get mail headers](https://docs.mailtrap.io/api-docs/email-sandbox/messages/get-mail-headers.md)
- [Attachments](https://docs.mailtrap.io/api-docs/email-sandbox/attachments.md): Handle email attachments
- [Get attachments](https://docs.mailtrap.io/api-docs/email-sandbox/attachments/get-attachments.md)
- [Get single attachment](https://docs.mailtrap.io/api-docs/email-sandbox/attachments/get-single-attachment.md)


---

# 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/api-docs/email-sandbox.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.
