# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand. overlay: 1.0.0 info: title: API Evangelist conversational phrasing for Nylas Attachments API version: 1.0.0 extends: openapi/nylas-attachments-api-openapi.yml actions: - target: $.info update: x-apievangelist-phrasing: method: generated generated: '2026-09-26' generator: build-phrasing.py label: Generated by API Evangelist operations: 4 - target: $.paths['/v3/grants/{grant_id}/attachments/{attachment_id}'].get update: x-apievangelist-phrasing: intent: Get an attachment's metadata effect: read questions: - What's the filename, size and type of an email attachment? - Can I check attachment details without downloading the file? instructions: - text: Show metadata for attachment {attachment} on message {message} for grant {grant}. slots: attachment: path.attachment_id grant: path.grant_id message: query.message_id - text: Get the file type and size of attachment {attachment} in message {message} via {grant}. slots: attachment: path.attachment_id grant: path.grant_id message: query.message_id method: generated generated: '2026-09-26' - target: $.paths['/v3/grants/{grant_id}/attachments/{attachment_id}/download'].get update: x-apievangelist-phrasing: intent: Download an attachment file effect: read questions: - How do I download the actual file attached to an email? - Can I pull an attachment directly from the IMAP server? instructions: - text: Download attachment {attachment} from message {message} for grant {grant}. slots: attachment: path.attachment_id grant: path.grant_id message: query.message_id - text: Save the file {attachment} attached to message {message} on {grant}. slots: attachment: path.attachment_id grant: path.grant_id message: query.message_id method: generated generated: '2026-09-26' - target: $.paths['/v3/grants/{grant_id}/attachment-uploads'].post update: x-apievangelist-phrasing: intent: Start an upload session for a large attachment effect: write questions: - How do I attach a file larger than the normal size limit to an email? - How long does an attachment upload URL stay valid? instructions: - text: Start an upload session for {filename} of type {content_type} on grant {grant}. slots: filename: requestBody.filename content_type: requestBody.content_type grant: path.grant_id - text: Get a pre-signed upload URL for {filename} ({content_type}, {size} bytes) for {grant}. slots: filename: requestBody.filename content_type: requestBody.content_type size: requestBody.size grant: path.grant_id method: generated generated: '2026-09-26' - target: $.paths['/v3/grants/{grant_id}/attachment-uploads/{attachment_id}/complete'].post update: x-apievangelist-phrasing: intent: Finish a large attachment upload effect: write questions: - What do I do after uploading file bytes to the pre-signed URL? - Does Nylas verify the uploaded size matches what I declared? instructions: - text: Complete upload session {attachment} for grant {grant}. slots: attachment: path.attachment_id grant: path.grant_id - text: Finalize the uploaded attachment {attachment} on {grant}. slots: attachment: path.attachment_id grant: path.grant_id method: generated generated: '2026-09-26'