> For the complete documentation index, see [llms.txt](https://rest-api.symphony.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rest-api.symphony.com/main/dlp-dictionary-and-policy-management/v3-violations-endpoints/v3-violation-attachment-download.md).

# V3 Violation Attachment Download

## Get attachments that were sent as part of messages that were flagged by the DLP System.

> Retrieves attachments from related message violations as a base64 encoded String.

```json
{"openapi":"3.0.1","info":{"title":"Agent API","version":"25.8.1"},"servers":[{"url":"youragentURL.symphony.com/agent"}],"paths":{"/v3/dlp/violation/attachment":{"get":{"tags":["Violations"],"summary":"Get attachments that were sent as part of messages that were flagged by the DLP System.","description":"Retrieves attachments from related message violations as a base64 encoded String.","parameters":[{"name":"fileId","in":"query","description":"ID of attachment that will be downloaded.","required":true,"schema":{"type":"string"}},{"name":"violationId","in":"query","description":"ID of violation that corresponds to the flagged message that contains the attachment","required":true,"schema":{"type":"string"}},{"name":"sessionToken","in":"header","description":"Session authentication token.","required":true,"schema":{"type":"string"}},{"name":"keyManagerToken","in":"header","description":"Key Manager authentication token.","schema":{"type":"string"}}],"responses":{"200":{"description":"Attachment body as Base64 encoded string.","content":{"application/octet-stream":{"schema":{"type":"string","format":"byte"}}}},"400":{"description":"Client error, see response body for further details.","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized: Session tokens invalid.","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden: Caller lacks necessary entitlement.","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found.","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error, see response body for further details.","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}}}}}}
```

{% hint style="warning" %}
A successful call returns the attachment body encoded in Base64. Be sure to decode the downloaded attachment.\
The Content Export service user must be used to download attachments. No other service accounts are able to perform this operation.
{% endhint %}
