Method: spaces.messages.attachments.get  |  Google Chat  |  Google for Developers (original) (raw)

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:

HTTP request

GET https://chat.googleapis.com/v1/{name=spaces/*/messages/*/attachments/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name string Required. Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of [Attachment](/workspace/chat/api/reference/rest/v1/spaces.messages.attachments#Attachment).

Requires the following OAuth scope:

For more information, see the Authorization guide.