chat.spaces.messages.attachments.get
Retrieve metadata for a Google Chat message attachment so you can inspect its details before fetching the attachment data via the media API.
Instructions
Gets the metadata of a message attachment. The attachment data is fetched using the media API. For an example, see Get metadata about a message attachment. Requires app authentication with the authorization scope: - https://www.googleapis.com/auth/chat.bot [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 |
|---|---|---|---|
| name | Yes | [URL path segment] Required. Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{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. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| source | No | ||
| contentName | No | ||
| contentType | No | ||
| downloadUri | No | ||
| driveDataRef | No | ||
| thumbnailUri | No | ||
| attachmentDataRef | No |