Capability Sources
Download a Gmail attachment's bytes as the calling member
Changed onDownloads one Gmail attachment (file) as base64-encoded bytes, using the messageId and the attachmentId from the gmail-message capability's attachments metadata. Decode dataBase64 locally to reconstruct the file, e.g. a PDF or spreadsheet, then extract its contents.
get/v1/capabilities/google-workspace/gmail-attachment/{messageId}/{attachmentId}
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
messageId, string required
Gmail message id that contains the attachment.
attachmentId, string required
Attachment id from the gmail-message capability's attachments metadata.
Response
Gmail attachment returned.
Google Workspace Gmail Attachment Response required
ok, true 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.
Changes
- info
the endpoint scheme security
bearerAuthwas added to the API - info
the endpoint scheme security
denApiKeywas added to the API
- info