Skip to main content
GET
Download a Gmail attachment's bytes as the calling member

Path Parameters

messageId
string
required

Gmail message id that contains the attachment.

Required string length: 1 - 512
attachmentId
string
required

Attachment id from the gmail-message capability's attachments metadata.

Required string length: 1 - 2048

Response

Gmail attachment returned.

ok
boolean
required
messageId
string
required
attachmentId
string
required
size
number
required

Attachment size in bytes.

dataBase64
string
required

Standard base64-encoded attachment bytes; decode locally to reconstruct the file.