Protected
configurationOptional
initOverrides: RequestInitApply RFC3501 section-2.3.2 IMAP flag operations on an email Set IMAP flags associated with a message. Only supports '\Seen' flag.
Optional
initOverrides: RequestInitDeletes all emails in your account. Be careful as emails cannot be recovered Delete all emails in all inboxes.
Optional
initOverrides: RequestInitDeletes an email and removes it from the inbox. Deleted emails cannot be recovered. Delete an email
Optional
initOverrides: RequestInitDeletes an email and removes it from the inbox. Deleted emails cannot be recovered. Delete an email
Optional
initOverrides: RequestInitReturns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
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.
Optional
initOverrides: RequestInitReturns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the downloadAttachment
method but allows some clients to get around issues with binary responses.
Get email attachment as base64 encoded string as an alternative to binary responses. Decode the base64FileContents
as a utf-8
encoded string or array of bytes depending on the contentType
.
Optional
initOverrides: RequestInitReturns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the downloadAttachment
method but allows some clients to get around issues with binary responses.
Get email attachment as base64 encoded string as an alternative to binary responses. Decode the base64FileContents
as a utf-8
encoded string or array of bytes depending on the contentType
.
Optional
initOverrides: RequestInitReturns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
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.
Optional
initOverrides: RequestInitReturns the specified email body for a given email as a string
Get email body as string. Returned as plain/text
with content type header.
Optional
initOverrides: RequestInitReturns the specified email body for a given email as a stream / array of bytes.
Get email body in bytes. Returned as octet-stream
with content type header.
Optional
initOverrides: RequestInitReturns the specified email body for a given email as a stream / array of bytes.
Get email body in bytes. Returned as octet-stream
with content type header.
Optional
initOverrides: RequestInitReturns the specified email body for a given email as a string
Get email body as string. Returned as plain/text
with content type header.
Optional
initOverrides: RequestInitForward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the from
option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints.
Forward email to recipients
Optional
initOverrides: RequestInitForward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the from
option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints.
Forward email to recipients
Optional
initOverrides: RequestInitReturns the metadata such as name and content-type for a given attachment and email.
Get email attachment metadata. This is the contentType
and contentLength
of an attachment. To get the individual attachments use the downloadAttachment
methods.
Optional
initOverrides: RequestInitReturns the metadata such as name and content-type for a given attachment and email.
Get email attachment metadata. This is the contentType
and contentLength
of an attachment. To get the individual attachments use the downloadAttachment
methods.
Optional
initOverrides: RequestInitReturns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController.
Optional
initOverrides: RequestInitReturns an array of attachment metadata such as name and content-type for a given email if present. Get all email attachment metadata. Metadata includes name and size of attachments.
Optional
initOverrides: RequestInitReturns an array of attachment metadata such as name and content-type for a given email if present. Get all email attachment metadata. Metadata includes name and size of attachments.
Optional
initOverrides: RequestInitReturn the matches for a given Java style regex pattern. Do not include the typical /
at start or end of regex in some languages. Given an example your code is: 12345
the pattern to extract match looks like code is: (\\d{6})
. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: [\'code is: 123456\', \'123456\']
See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns.
Get email content regex pattern match results. Runs regex against email body and returns match groups.
Optional
initOverrides: RequestInitReturn the matches for a given Java style regex pattern. Do not include the typical /
at start or end of regex in some languages. Given an example your code is: 12345
the pattern to extract match looks like code is: (\\d{6})
. This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: [\'code is: 123456\', \'123456\']
See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns.
Get email content regex pattern match results. Runs regex against email body and returns match groups.
Optional
initOverrides: RequestInitGet email count
Optional
initOverrides: RequestInitRetrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: ?apiKey=xxx
. Returns content-type text/html;charset=utf-8
so you must call expecting that content response not JSON. For JSON response see the getEmailHTMLJson
method.
Get email content as HTML. For displaying emails in browser context.
Optional
initOverrides: RequestInitRetrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type application/json;charset=utf-8
so you must call expecting that content response not JSON.
Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content
Optional
initOverrides: RequestInitRetrieve email content as HTML response. Decodes quoted-printable entities and converts charset to UTF-8. Returns content-type application/json;charset=utf-8
so you must call expecting that content response not JSON.
Get email content as HTML in JSON wrapper. For fetching entity decoded HTML content
Optional
initOverrides: RequestInitParse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors Parse and return text from an email, stripping HTML and decoding encoded characters
Optional
initOverrides: RequestInitParse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors Parse and return text from an email, stripping HTML and decoding encoded characters
Optional
initOverrides: RequestInitRetrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: ?apiKey=xxx
. Returns content-type text/html;charset=utf-8
so you must call expecting that content response not JSON. For JSON response see the getEmailHTMLJson
method.
Get email content as HTML. For displaying emails in browser context.
Optional
initOverrides: RequestInitHTML parsing uses JSoup and UNIX line separators. Searches content for href attributes Parse and return list of links found in an email (only works for HTML content)
Optional
initOverrides: RequestInitHTML parsing uses JSoup and UNIX line separators. Searches content for href attributes Parse and return list of links found in an email (only works for HTML content)
Optional
initOverrides: RequestInitGet a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. Get email URLs for viewing in browser or downloading
Optional
initOverrides: RequestInitGet a list of URLs for email content as text/html or raw SMTP message for viewing the message in a browser. Get email URLs for viewing in browser or downloading
Optional
initOverrides: RequestInitReturns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController.
Optional
initOverrides: RequestInitParse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. Parse and return text from an email, stripping HTML and decoding encoded characters
Optional
initOverrides: RequestInitParse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators. Parse and return text from an email, stripping HTML and decoding encoded characters
Optional
initOverrides: RequestInitBy default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages Get all emails in all inboxes in paginated form. Email API list all.
Optional
initOverrides: RequestInitBy default returns all emails across all inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages Get all emails in all inboxes in paginated form. Email API list all.
Optional
initOverrides: RequestInitGet gravatar url for email address
Optional
initOverrides: RequestInitGet gravatar url for email address
Optional
initOverrides: RequestInitGet the newest email in all inboxes or in a passed set of inbox IDs Get latest email in all inboxes. Most recently received.
Optional
initOverrides: RequestInitGet the newest email in all inboxes or in a passed set of inbox IDs
Get latest email in an inbox. Use WaitForController
to get emails that may not have arrived yet.
Optional
initOverrides: RequestInitGet the newest email in all inboxes or in a passed set of inbox IDs
Get latest email in an inbox. Use WaitForController
to get emails that may not have arrived yet.
Optional
initOverrides: RequestInitGet the newest email in all inboxes or in a passed set of inbox IDs Get latest email in all inboxes. Most recently received.
Optional
initOverrides: RequestInitBy default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages Get all organization emails. List team or shared test email accounts
Optional
initOverrides: RequestInitBy default returns all emails across all team inboxes sorted by ascending created at date. Responses are paginated. You can restrict results to a list of inbox IDs. You can also filter out read messages Get all organization emails. List team or shared test email accounts
Optional
initOverrides: RequestInitReturns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint Get raw email string. Returns unparsed raw SMTP message with headers and body.
Optional
initOverrides: RequestInitReturns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint Get raw email string. Returns unparsed raw SMTP message with headers and body.
Optional
initOverrides: RequestInitReturns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response Get raw email in JSON. Unparsed SMTP message in JSON wrapper format.
Optional
initOverrides: RequestInitReturns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response Get raw email in JSON. Unparsed SMTP message in JSON wrapper format.
Optional
initOverrides: RequestInitGet number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response Get unread email count
Optional
initOverrides: RequestInitGet number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response Get unread email count
Optional
initOverrides: RequestInitMarks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread Mark an email as read on unread
Optional
initOverrides: RequestInitMarks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread Mark an email as read on unread
Optional
initOverrides: RequestInitSend the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails to
, cc
, and bcc
.
Reply to an email
Optional
initOverrides: RequestInitSend the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails to
, cc
, and bcc
.
Reply to an email
Optional
initOverrides: RequestInitProtected
requestOptional
initOverrides: RequestInitAlias for InboxController.sendEmail
method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email.
Send email
Optional
initOverrides: RequestInitAlias for InboxController.sendEmail
method - see original method for full details. Sends an email from a given inbox that you have created. If no inbox is supplied a random inbox will be created for you and used to send the email.
Send email
Optional
initOverrides: RequestInitValidate the HTML content of email if HTML is found. Considered valid if no HTML is present. Validate email HTML contents
Optional
initOverrides: RequestInitValidate the HTML content of email if HTML is found. Considered valid if no HTML is present. Validate email HTML contents
Optional
initOverrides: RequestInitRest
...middlewares: Middleware[]Rest
...postMiddlewares: ((context: ResponseContext) => Promise<void | Response>)[]Rest
...preMiddlewares: ((context: RequestContext) => Promise<void | FetchParams>)[]
Apply RFC3501 section-2.3.2 IMAP flag operations on an email Set IMAP flags associated with a message. Only supports '\Seen' flag.