client The configured Nylas API client
Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Complete an upload session after the file has been uploaded to the pre-signed URL.
Create a resumable upload session for a large attachment (up to 150 MB).
Upload bytes to the returned url, then call Attachments.completeUploadSession.
Session details including attachmentId and pre-signed url
Download the attachment data
This method returns a NodeJS.ReadableStream which can be used to stream the attachment data. This is particularly useful for handling large attachments efficiently, as it avoids loading the entire file into memory. The stream can be piped to a file stream or used in any other way that Node.js streams are typically used.
The ReadableStream containing the file data.
Returns an attachment by ID.
The Attachment metadata
Nylas Attachments API
The Nylas Attachments API allows you to retrieve metadata and download attachments.