> ## 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 TTP URL Logs

Retrieve TTP URL logs.

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

<Note>
  External Documentation

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

## Parameters

<div className="integrations-table">
  | Parameter              | Description                                                                    |
  | ---------------------- | ------------------------------------------------------------------------------ |
  | Logs End Date          | The end date of logs to return. The default is the execution time.             |
  | Search By Route        | Search logs by the route.                                                      |
  | Search By Scan Results | Search logs by scan result.                                                    |
  | Search By Start Date   | The start date of logs to return. The default is the start of the current day. |
  | Sort Descending        | Determines whether to order results with the most recent first.                |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"clickLogs": [
				{
					"action": "string",
					"actions": "string",
					"adminOverride": "string",
					"advancedPhishingResult": {
						"category": "string",
						"creationMethod": "string"
					},
					"date": "yyyy-MM-dd'T'HH:mm:ssZ",
					"emailPartsDescription": [
						"string"
					],
					"fromUserEmailAddress": "string",
					"heuristicDomainSource": "string",
					"messageId": "string",
					"route": "string",
					"scanResult": "string",
					"sendingIp": "string",
					"similarDomain": "string",
					"subject": "string",
					"tagMap": {
						"key": "value"
					},
					"ttpDefinition": "string",
					"url": "string",
					"userAwarenessAction": "string",
					"userEmailAddress": "string",
					"userOverride": "string"
				}
			]
		}
	],
	"fail": [
		{
			"errors": [
				{
					"code": "string",
					"message": "string",
					"retryable": true
				}
			],
			"key": {
				"from": "yyyy-MM-dd'T'HH:mm:ssZ",
				"oldestFirst": true,
				"route": "all",
				"scanResult": "clean",
				"to": "yyyy-MM-dd'T'HH:mm:ssZ"
			}
		}
	]
}
```

## Workflow Library Example

[Get Ttp Url Logs with Mimecast and Send Results Via Email](https://library.blinkops.com/workflows/get-ttp-url-logs-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/get-ttp-url-logs-with-mimecast-and-send-results-via-email/canvas" />
</div>
