nylas
    Preparing search index...

    Interface CreateAttachmentUploadSessionRequest

    Request body for creating a large-attachment upload session. Sent to the API as snake_case (content_type, etc.).

    interface CreateAttachmentUploadSessionRequest {
        contentType: string;
        filename: string;
        size?: number;
    }
    Index

    Properties

    contentType: string

    MIME type of the file (for example, application/pdf).

    filename: string

    The name of the file as it will appear in the email.

    size?: number

    Expected file size in bytes. Recommended — Nylas validates the upload matches at completion. Maximum: 157286400 (150 MB).