Interface EmailGetRequest

interface EmailGetRequest {
    accountId: string;
    bodyProperties?: (keyof EmailBodyPartFields)[];
    fetchAllBodyValues?: boolean;
    fetchHTMLBodyValues?: boolean;
    fetchTextBodyValues?: boolean;
    ids?: null | string[];
    maxBodyValueBytes?: number;
    properties?:
        | null
        | (
            | (keyof EmailMetadataFields)
            | (keyof EmailHeaderFields)
            | (keyof EmailBodyPart)
        )[];
}

Hierarchy (View Summary)

Properties

accountId: string
bodyProperties?: (keyof EmailBodyPartFields)[]

Props in textBody and etc. default: [ "partId", "blobId", "size", "name", "type", "charset", "disposition", "cid", "language", "location" ]

fetchAllBodyValues?: boolean

default: false

fetchHTMLBodyValues?: boolean

default: false

fetchTextBodyValues?: boolean

default: false

ids?: null | string[]

If null, then all records of the data type are returned, if this is supported for that data type and the number of records does not exceed the "maxObjectsInGet" limit.

maxBodyValueBytes?: number

uint default: 0

properties?:
    | null
    | (
        | (keyof EmailMetadataFields)
        | (keyof EmailHeaderFields)
        | (keyof EmailBodyPart)
    )[]

[ "id", "blobId", "threadId", "mailboxIds", "keywords", "size", "receivedAt", "messageId", "inReplyTo", "references", "sender", "from", "to", "cc", "bcc", "replyTo", "subject", "sentAt", "hasAttachment", "preview", "bodyValues", "textBody", "htmlBody", "attachments" ]