> ## 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 Gmail Attachment

Gets the specified message attachment.

<Note>
  External Documentation

  To learn more, visit the [Gmail documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.messages.attachments/get).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter     | Description                                                                                      |
  | ------------- | ------------------------------------------------------------------------------------------------ |
  | Attachment ID | The ID of the attachment.                                                                        |
  | Message ID    | The ID of the message containing the attachment.                                                 |
  | User ID       | The user's email address. The special value `me` can be used to indicate the authenticated user. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection.<br /><br />If not specified, the delegated user is the one provided in the connection.<br /><br />Has no effect when using an OAuth connection.<br /><br />NOTE: the connection details are not edited by this input. |
</div>

## Example Output

```json theme={"dark"}
{
	"size": 1103,
	"data": "dGhpcyBpcyBhIHRlc3QgaGVsbG8gd29ybGQ="
}
```

## Workflow Library Example

[Detect and Respond to Gmail Email Phishing](https://library.blinkops.com/workflows/detect-and-respond-to-gmail-email-phishing)

<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/detect-and-respond-to-gmail-email-phishing/canvas" />
</div>
