gmail.users.messages.attachments.get
Fetches a specific Gmail message attachment using user, message, and attachment IDs, returning its data as JSON.
Instructions
Gets the specified message attachment [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | [URL path segment] The ID of the attachment. | |
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| userId | Yes | [URL path segment] The user's email address. The special value `me` can be used to indicate the authenticated user. | me |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. | |
| messageId | Yes | [URL path segment] The ID of the message containing the attachment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| size | No | ||
| attachmentId | No |