Class EmailControllerApi

Hierarchy

Constructors

Properties

Methods

applyImapFlagOperation applyImapFlagOperationRaw canSend canSendRaw checkEmailBody checkEmailBodyFeatureSupport checkEmailBodyFeatureSupportRaw checkEmailBodyRaw checkEmailClientSupport checkEmailClientSupportRaw deleteAllEmails deleteAllEmailsRaw deleteEmail deleteEmailRaw downloadAttachment downloadAttachmentBase64 downloadAttachmentBase64Raw downloadAttachmentRaw downloadBody downloadBodyBytes downloadBodyBytesRaw downloadBodyRaw forwardEmail forwardEmailRaw getAttachmentMetaData getAttachmentMetaDataRaw getEmail getEmailAttachments getEmailAttachmentsRaw getEmailCodes getEmailCodesRaw getEmailContentMatch getEmailContentMatchRaw getEmailContentPart getEmailContentPartContent getEmailContentPartContentRaw getEmailContentPartRaw getEmailCount getEmailCountRaw getEmailHTML getEmailHTMLJson getEmailHTMLJsonRaw getEmailHTMLQuery getEmailHTMLQueryRaw getEmailHTMLRaw getEmailLinks getEmailLinksRaw getEmailPreviewURLs getEmailPreviewURLsRaw getEmailRaw getEmailScreenshotAsBase64 getEmailScreenshotAsBase64Raw getEmailScreenshotAsBinary getEmailScreenshotAsBinaryRaw getEmailSignature getEmailSignatureRaw getEmailSummary getEmailSummaryRaw getEmailTextLines getEmailTextLinesRaw getEmailThread getEmailThreadItems getEmailThreadItemsRaw getEmailThreadRaw getEmailThreads getEmailThreadsRaw getEmailsOffsetPaginated getEmailsOffsetPaginatedRaw getEmailsPaginated getEmailsPaginatedRaw getGravatarUrlForEmailAddress getGravatarUrlForEmailAddressRaw getLatestEmail getLatestEmailInInbox1 getLatestEmailInInbox1Raw getLatestEmailRaw getOrganizationEmailsPaginated getOrganizationEmailsPaginatedRaw getRawEmailContents getRawEmailContentsRaw getRawEmailJson getRawEmailJsonRaw getUnreadEmailCount getUnreadEmailCountRaw markAllAsRead markAllAsReadRaw markAsRead markAsReadRaw replyToEmail replyToEmailRaw request searchEmails searchEmailsRaw sendEmailSourceOptional sendEmailSourceOptionalRaw setEmailFavourited setEmailFavouritedRaw validateEmail validateEmailRaw withMiddleware withPostMiddleware withPreMiddleware

Constructors

Properties

configuration: Configuration = ...

Methods

  • Validates sender/inbox context and recipient eligibility before attempting a send. Useful for preflight checks in UI or test workflows. Check whether an email send would be accepted

    Parameters

    • requestParameters: CanSendRequest
    • Optional initOverrides: RequestInit

    Returns Promise<CanSendEmailResults>

  • Deletes all emails for the authenticated account context. This operation is destructive and cannot be undone. Delete all emails in all inboxes.

    Parameters

    • Optional initOverrides: RequestInit

    Returns Promise<void>

  • Deletes all emails for the authenticated account context. This operation is destructive and cannot be undone. Delete all emails in all inboxes.

    Parameters

    • Optional initOverrides: RequestInit

    Returns Promise<ApiResponse<void>>

  • Deletes a single email from account scope. Operation is destructive and not reversible. Delete an email

    Parameters

    Returns Promise<void>

  • Returns attachment bytes by attachment ID. Use attachment IDs from email payloads or attachment listing endpoints. Get email attachment bytes. Returned as octet-stream with content type header. If you have trouble with byte responses try the downloadAttachmentBase64 response endpoints and convert the base 64 encoded content to a file or string.

    Parameters

    Returns Promise<string>

  • Returns attachment bytes by attachment ID. Use attachment IDs from email payloads or attachment listing endpoints. Get email attachment bytes. Returned as octet-stream with content type header. If you have trouble with byte responses try the downloadAttachmentBase64 response endpoints and convert the base 64 encoded content to a file or string.

    Parameters

    Returns Promise<ApiResponse<string>>

  • Returns hydrated email body text as a string with content type aligned to the underlying body format. Get email body as string. Returned as plain/text with content type header.

    Parameters

    Returns Promise<string>

  • Streams hydrated email body bytes with content type derived from the message body format. Get email body in bytes. Returned as octet-stream with content type header.

    Parameters

    Returns Promise<string>

  • Returns hydrated email body text as a string with content type aligned to the underlying body format. Get email body as string. Returned as plain/text with content type header.

    Parameters

    Returns Promise<ApiResponse<string>>

  • Returns parsed email content including headers and body fields. Accessing hydrated content may mark the email as read depending on read-state rules. Get hydrated email (headers and body)

    Parameters

    Returns Promise<Email>

  • Extracts one-time passcodes and similar tokens from email content. Supports deterministic extraction now with method/fallback flags (AUTO, PATTERN, LLM, OCR, OCR_THEN_LLM) for QA and future advanced pipelines. Extract verification codes from an email

    Parameters

    Returns Promise<ExtractCodesResult>

  • Extracts one MIME body part by contentType and optional index, and returns raw content with matching response content type when valid. Get multipart content part as raw response

    Parameters

    Returns Promise<string>

  • Returns hydrated HTML body directly with text/html content type. Supports temporary access/browser usage and optional CID replacement for inline asset rendering. Get hydrated email HTML for browser rendering

    Parameters

    Returns Promise<string>

  • Returns hydrated HTML body and subject in a JSON DTO. Useful for API clients that need structured response payloads instead of raw HTML responses. Get hydrated email HTML wrapped in JSON

    Parameters

    Returns Promise<EmailHtmlDto>

  • Returns hydrated HTML body directly with text/html content type. Supports temporary access/browser usage and optional CID replacement for inline asset rendering. Get hydrated email HTML for browser rendering

    Parameters

    Returns Promise<ApiResponse<string>>

  • Returns parsed email content including headers and body fields. Accessing hydrated content may mark the email as read depending on read-state rules. Get hydrated email (headers and body)

    Parameters

    Returns Promise<ApiResponse<Email>>

  • Renders the email in a browser engine and returns PNG bytes. Intended for visual QA and rendering regression checks. Take a screenshot of an email in a browser

    Parameters

    Returns Promise<void>

  • Primary paginated email listing endpoint. Returns emails across inboxes with support for inbox filters, unread-only, search, date boundaries, favourites, connector sync, and plus-address filtering. Get all emails in all inboxes in paginated form. Email API list all.

    Parameters

    Returns Promise<PageEmailProjection>

  • Returns the most recently received email across all inboxes or an optional subset of inbox IDs. Get latest email in all inboxes. Most recently received.

    Parameters

    Returns Promise<Email>

  • Returns the newest email for the specified inbox ID. For polling/wait semantics use wait endpoints. Get latest email in an inbox. Use WaitForController to get emails that may not have arrived yet.

    Parameters

    Returns Promise<Email>

  • Returns the original unparsed SMTP/MIME message as text/plain. Use JSON variant if your client expects JSON transport. Get raw email string. Returns unparsed raw SMTP message with headers and body.

    Parameters

    Returns Promise<void>

  • Returns the original unparsed SMTP/MIME message as text/plain. Use JSON variant if your client expects JSON transport. Get raw email string. Returns unparsed raw SMTP message with headers and body.

    Parameters

    Returns Promise<ApiResponse<void>>

  • Returns the original unparsed SMTP/MIME message wrapped in a JSON DTO for API clients that avoid plain-text stream responses. Get raw email in JSON. Unparsed SMTP message in JSON wrapper format.

    Parameters

    Returns Promise<RawEmailJson>

  • Sets read state for all emails, optionally scoped to one inbox. Use read=false to reset unread state in bulk. Mark all emails as read or unread

    Parameters

    Returns Promise<void>

  • Sets read state for all emails, optionally scoped to one inbox. Use read=false to reset unread state in bulk. Mark all emails as read or unread

    Parameters

    Returns Promise<ApiResponse<void>>

  • Sets read state for one email. Useful when implementing custom mailbox workflows that treat viewed messages as unread. Mark an email as read or unread

    Parameters

    Returns Promise<EmailPreview>

  • Sends an email from an existing inbox, or creates a temporary inbox when inboxId is not provided. Supports useDomainPool and virtualSend inbox creation behavior for convenience sends. Send email

    Parameters

    Returns Promise<void>