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

# Get Attachment Protection Logs

Retrieve logs related to attachment protection events.

Required application permissions: `Monitoring | Attachment Protection | Read`.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Mimecast documentation](https://developer.services.mimecast.com/docs/securityevents/1/routes/api/ttp/attachment/get-logs/post).

## Parameters

| Parameter | Description |
| - | - |
| Logs End Date | The end date of logs to return. The default is the execution time. |
| Logs Start Date | The start date of logs to return. The default is the start of the current day. |
| Search By Result | Search logs by the scan result. |
| Search By Route | Search logs by the route. |
| Sort Descending | Determines whether to order results with the most recent first. |

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"attachmentLogs": [
				{
					"actionTriggered": "string",
					"date": "yyyy-MM-dd'T'HH:mm:ssZ",
					"definition": "string",
					"details": "string",
					"fileHash": "string",
					"fileName": "string",
					"fileType": "string",
					"messageId": "string",
					"recipientAddress": "string",
					"result": "string",
					"route": "string",
					"senderAddress": "string",
					"subject": "string"
				}
			],
			"fail": [
				{
					"errors": [
						{
							"code": "string",
							"message": "string",
							"retryable": true
						}
					],
					"key": {
						"from": "yyyy-MM-dd'T'HH:mm:ssZ",
						"oldestFirst": true,
						"result": "string",
						"route": "string",
						"to": "yyyy-MM-dd'T'HH:mm:ssZ"
					}
				}
			]
		}
	]
}
```
