> ## 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.

# List Audit Events

Return audit events that match the provided parameters.

Required application permissions: `Account | Logs | Read`.

<Note>
  External Documentation

  To learn more, visit the [Mimecast documentation](https://developer.services.mimecast.com/docs/auditevents/1/routes/api/audit/get-audit-events/post).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter            | Description                                                                                                                                                                 |
  | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Query Events         | Search audit events by providing a search query.                                                                                                                            |
  | Search By Categories | A comma separated or JSON list of audit category types to search by. Can be obtained using the `Get Categories` action, specifically from the `code` field in the response. |
  | Search By End Time   | The events' end date to search by.                                                                                                                                          |
  | Search By Start Date | The events' start date to search by. Historical lookup is restricted to last 60 days.                                                                                       |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"auditType": "string",
			"category": "string",
			"eventInfo": "string",
			"eventTime": "yyyy-MM-dd'T'HH:mm:ssZ",
			"id": "string"
		}
	],
	"fail": [
		{
			"errors": [
				{
					"code": "string",
					"message": "string",
					"retryable": true
				}
			],
			"key": {
				"categories": [
					{
						"endDateTime": "yyyy-MM-dd'T'HH:mm:ssZ",
						"query": "string",
						"startDateTime": "yyyy-MM-dd'T'HH:mm:ssZ"
					}
				]
			}
		}
	]
}
```

## Workflow Library Example

[List Audit Events with Mimecast and Send Results Via Email](https://library.blinkops.com/workflows/list-audit-events-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/list-audit-events-with-mimecast-and-send-results-via-email/canvas" />
</div>
