> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Messages

Search all messages.

Required application permissions: `Gateway | Tracking | Read`.

<Note>
  External Documentation

  To learn more, visit the [Mimecast documentation](https://developer.services.mimecast.com/docs/cloudgateway/1/routes/api/message-finder/search/post).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter     | Description                                             |
  | ------------- | ------------------------------------------------------- |
  | Message Route | Filter by the route of the message.                     |
  | Sender        | The Email address or domain of the sender of the Email. |
  | Status        | Filter by the status of the email.                      |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter            | Description                                               |
  | -------------------- | --------------------------------------------------------- |
  | End Time             | Time of the most recent message to be returned.           |
  | Includes Attachments | Search emails that include attachments.                   |
  | Message ID           | The ID of the message to return.                          |
  | Receiver             | The Email address or domain of the receiver of the Email. |
  | Search Reason        | Reason for the search, used mainly for tracking purposes. |
  | Sender IP            | The IP of the sender of the Email.                        |
  | Start Time           | Time of the earliest message to be returned.              |
  | Subject              | The Subject of the Email.                                 |
  | URL                  | A URL that is contained in the returned Emails.           |
</div>

## Example Output

```json theme={"dark"}
{
	"fail": [],
	"meta": {
		"status": 200
	},
	"data": [
		{
			"attachments": false,
			"detectionLevel": "string",
			"fromEnv": {},
			"fromHdr": {},
			"id": "string",
			"info": "string",
			"received": "string",
			"route": "string",
			"senderIP": "string",
			"sent": "string",
			"spamScore": "string",
			"spamScore": 1,
			"status": "string",
			"subject": "string",
			"to": [
				"string"
			]
		}
	]
}
```

## Workflow Library Example

[Search Messages with Mimecast and Send Results Via Email](https://library.blinkops.com/workflows/search-messages-with-mimecast-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/search-messages-with-mimecast-and-send-results-via-email/canvas" />
</div>
