Method: spaces.messages.attachments.get

Gets the metadata of a message attachment. The attachment data is fetched using the media API.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Resource name of the attachment, in the form "spaces/*/messages/*/attachments/*".

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Attachment.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chat.bot

For more information, see the OAuth 2.0 Overview.