# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rest-api.symphony.com/main/dlp-dictionary-and-policy-management/v3-violations-endpoints/v3-violation-attachment-download.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
