Skip to content

Class: InboxControllerApi

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new InboxControllerApi(configuration?)

Parameters

Name Type
configuration Configuration

Inherited from

BaseAPI.constructor

Properties

configuration

Protected configuration: Configuration

Inherited from

BaseAPI.configuration

Methods

createInbox

createInbox(requestParameters, initOverrides?): Promise<InboxDto>

Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either SMTP or HTTP inboxes.

Parameters

Name Type
requestParameters CreateInboxRequest
initOverrides? RequestInit

Returns

Promise<InboxDto>


createInboxRaw

createInboxRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxDto>>

Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty. Create an inbox email address. An inbox has a real email address and can send and receive emails. Inboxes can be either SMTP or HTTP inboxes.

Parameters

Name Type
requestParameters CreateInboxRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxDto>>


createInboxRuleset

createInboxRuleset(requestParameters, initOverrides?): Promise<InboxRulesetDto>

Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving Create an inbox ruleset

Parameters

Name Type
requestParameters CreateInboxRulesetRequest
initOverrides? RequestInit

Returns

Promise<InboxRulesetDto>


createInboxRulesetRaw

createInboxRulesetRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxRulesetDto>>

Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving Create an inbox ruleset

Parameters

Name Type
requestParameters CreateInboxRulesetRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxRulesetDto>>


createInboxWithDefaults

createInboxWithDefaults(initOverrides?): Promise<InboxDto>

Create an inbox with default options. Uses MailSlurp domain pool address and is private.

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<InboxDto>


createInboxWithDefaultsRaw

createInboxWithDefaultsRaw(initOverrides?): Promise<ApiResponse<InboxDto>>

Create an inbox with default options. Uses MailSlurp domain pool address and is private.

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxDto>>


createInboxWithOptions

createInboxWithOptions(requestParameters, initOverrides?): Promise<InboxDto>

Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. Create an inbox with options. Extended options for inbox creation.

Parameters

Name Type
requestParameters CreateInboxWithOptionsRequest
initOverrides? RequestInit

Returns

Promise<InboxDto>


createInboxWithOptionsRaw

createInboxWithOptionsRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxDto>>

Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients. Create an inbox with options. Extended options for inbox creation.

Parameters

Name Type
requestParameters CreateInboxWithOptionsRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxDto>>


deleteAllInboxEmails

deleteAllInboxEmails(requestParameters, initOverrides?): Promise<void>

Deletes all emails in an inbox. Be careful as emails cannot be recovered Delete all emails in a given inboxes.

Parameters

Name Type
requestParameters DeleteAllInboxEmailsRequest
initOverrides? RequestInit

Returns

Promise<void>


deleteAllInboxEmailsRaw

deleteAllInboxEmailsRaw(requestParameters, initOverrides?): Promise<ApiResponse<void>>

Deletes all emails in an inbox. Be careful as emails cannot be recovered Delete all emails in a given inboxes.

Parameters

Name Type
requestParameters DeleteAllInboxEmailsRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<void>>


deleteAllInboxes

deleteAllInboxes(initOverrides?): Promise<void>

Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. Delete all inboxes

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<void>


deleteAllInboxesRaw

deleteAllInboxesRaw(initOverrides?): Promise<ApiResponse<void>>

Permanently delete all inboxes and associated email addresses. This will also delete all emails within the inboxes. Be careful as inboxes cannot be recovered once deleted. Note: deleting inboxes will not impact your usage limits. Monthly inbox creation limits are based on how many inboxes were created in the last 30 days, not how many inboxes you currently have. Delete all inboxes

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<ApiResponse<void>>


deleteInbox

deleteInbox(requestParameters, initOverrides?): Promise<void>

Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. Delete inbox

Parameters

Name Type
requestParameters DeleteInboxRequest
initOverrides? RequestInit

Returns

Promise<void>


deleteInboxRaw

deleteInboxRaw(requestParameters, initOverrides?): Promise<ApiResponse<void>>

Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request. Delete inbox

Parameters

Name Type
requestParameters DeleteInboxRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<void>>


doesInboxExist

doesInboxExist(requestParameters, initOverrides?): Promise<InboxExistsDto>

Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses Does inbox exist

Parameters

Name Type
requestParameters DoesInboxExistRequest
initOverrides? RequestInit

Returns

Promise<InboxExistsDto>


doesInboxExistRaw

doesInboxExistRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxExistsDto>>

Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses Does inbox exist

Parameters

Name Type
requestParameters DoesInboxExistRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxExistsDto>>


flushExpired

flushExpired(requestParameters, initOverrides?): Promise<FlushExpiredInboxesResult>

Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) Remove expired inboxes

Parameters

Name Type
requestParameters FlushExpiredRequest
initOverrides? RequestInit

Returns

Promise<FlushExpiredInboxesResult>


flushExpiredRaw

flushExpiredRaw(requestParameters, initOverrides?): Promise<ApiResponse<FlushExpiredInboxesResult>>

Remove any expired inboxes for your account (instead of waiting for scheduled removal on server) Remove expired inboxes

Parameters

Name Type
requestParameters FlushExpiredRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<FlushExpiredInboxesResult>>


getAllInboxes

getAllInboxes(requestParameters, initOverrides?): Promise<PageInboxProjection>

List inboxes in paginated form. The results are available on the content property of the returned object. This method allows for page (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative getInboxes method returns a full list of inboxes but is limited to 100 results. List All Inboxes Paginated

Parameters

Name Type
requestParameters GetAllInboxesRequest
initOverrides? RequestInit

Returns

Promise<PageInboxProjection>


getAllInboxesRaw

getAllInboxesRaw(requestParameters, initOverrides?): Promise<ApiResponse<PageInboxProjection>>

List inboxes in paginated form. The results are available on the content property of the returned object. This method allows for page (zero based), page size (how many results to return), and a sort direction (based on createdAt time). You Can also filter by whether an inbox is favorited or use email address pattern. This method is the recommended way to query inboxes. The alternative getInboxes method returns a full list of inboxes but is limited to 100 results. List All Inboxes Paginated

Parameters

Name Type
requestParameters GetAllInboxesRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<PageInboxProjection>>


getEmails

getEmails(requestParameters, initOverrides?): Promise<EmailPreview[]>

List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the minCount parameter. The server will retry the inbox database until the minCount is satisfied or the retryTimeout is reached Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead.

Parameters

Name Type
requestParameters GetEmailsRequest
initOverrides? RequestInit

Returns

Promise<EmailPreview[]>


getEmailsRaw

getEmailsRaw(requestParameters, initOverrides?): Promise<ApiResponse<EmailPreview[]>>

List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the minCount parameter. The server will retry the inbox database until the minCount is satisfied or the retryTimeout is reached Get emails in an Inbox. This method is not idempotent as it allows retries and waits if you want certain conditions to be met before returning. For simple listing and sorting of known emails use the email controller instead.

Parameters

Name Type
requestParameters GetEmailsRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<EmailPreview[]>>


getImapSmtpAccess

getImapSmtpAccess(requestParameters, initOverrides?): Promise<ImapSmtpAccessDetails>

Get IMAP and SMTP access usernames and passwords

Parameters

Name Type
requestParameters GetImapSmtpAccessRequest
initOverrides? RequestInit

Returns

Promise<ImapSmtpAccessDetails>


getImapSmtpAccessRaw

getImapSmtpAccessRaw(requestParameters, initOverrides?): Promise<ApiResponse<ImapSmtpAccessDetails>>

Get IMAP and SMTP access usernames and passwords

Parameters

Name Type
requestParameters GetImapSmtpAccessRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<ImapSmtpAccessDetails>>


getInbox

getInbox(requestParameters, initOverrides?): Promise<InboxDto>

Returns an inbox's properties, including its email address and ID. Get Inbox. Returns properties of an inbox.

Parameters

Name Type
requestParameters GetInboxRequest
initOverrides? RequestInit

Returns

Promise<InboxDto>


getInboxByEmailAddress

getInboxByEmailAddress(requestParameters, initOverrides?): Promise<InboxByEmailAddressResult>

Get a inbox result by email address Search for an inbox with the provided email address

Parameters

Name Type
requestParameters GetInboxByEmailAddressRequest
initOverrides? RequestInit

Returns

Promise<InboxByEmailAddressResult>


getInboxByEmailAddressRaw

getInboxByEmailAddressRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxByEmailAddressResult>>

Get a inbox result by email address Search for an inbox with the provided email address

Parameters

Name Type
requestParameters GetInboxByEmailAddressRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxByEmailAddressResult>>


getInboxCount

getInboxCount(initOverrides?): Promise<CountDto>

Get total inbox count

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<CountDto>


getInboxCountRaw

getInboxCountRaw(initOverrides?): Promise<ApiResponse<CountDto>>

Get total inbox count

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<ApiResponse<CountDto>>


getInboxEmailCount

getInboxEmailCount(requestParameters, initOverrides?): Promise<CountDto>

Get email count in inbox

Parameters

Name Type
requestParameters GetInboxEmailCountRequest
initOverrides? RequestInit

Returns

Promise<CountDto>


getInboxEmailCountRaw

getInboxEmailCountRaw(requestParameters, initOverrides?): Promise<ApiResponse<CountDto>>

Get email count in inbox

Parameters

Name Type
requestParameters GetInboxEmailCountRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<CountDto>>


getInboxEmailsPaginated

getInboxEmailsPaginated(requestParameters, initOverrides?): Promise<PageEmailPreview>

Get a paginated list of emails in an inbox. Does not hold connections open. Get inbox emails paginated

Parameters

Name Type
requestParameters GetInboxEmailsPaginatedRequest
initOverrides? RequestInit

Returns

Promise<PageEmailPreview>


getInboxEmailsPaginatedRaw

getInboxEmailsPaginatedRaw(requestParameters, initOverrides?): Promise<ApiResponse<PageEmailPreview>>

Get a paginated list of emails in an inbox. Does not hold connections open. Get inbox emails paginated

Parameters

Name Type
requestParameters GetInboxEmailsPaginatedRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<PageEmailPreview>>


getInboxIds

getInboxIds(initOverrides?): Promise<InboxIdsResult>

Get list of inbox IDs Get all inbox IDs

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<InboxIdsResult>


getInboxIdsRaw

getInboxIdsRaw(initOverrides?): Promise<ApiResponse<InboxIdsResult>>

Get list of inbox IDs Get all inbox IDs

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxIdsResult>>


getInboxRaw

getInboxRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxDto>>

Returns an inbox's properties, including its email address and ID. Get Inbox. Returns properties of an inbox.

Parameters

Name Type
requestParameters GetInboxRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxDto>>


getInboxSentEmails

getInboxSentEmails(requestParameters, initOverrides?): Promise<PageSentEmailProjection>

Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. Get Inbox Sent Emails

Parameters

Name Type
requestParameters GetInboxSentEmailsRequest
initOverrides? RequestInit

Returns

Promise<PageSentEmailProjection>


getInboxSentEmailsRaw

getInboxSentEmailsRaw(requestParameters, initOverrides?): Promise<ApiResponse<PageSentEmailProjection>>

Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead. Get Inbox Sent Emails

Parameters

Name Type
requestParameters GetInboxSentEmailsRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<PageSentEmailProjection>>


getInboxTags

getInboxTags(initOverrides?): Promise<string[]>

Get all inbox tags Get inbox tags

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<string[]>


getInboxTagsRaw

getInboxTagsRaw(initOverrides?): Promise<ApiResponse<string[]>>

Get all inbox tags Get inbox tags

Parameters

Name Type
initOverrides? RequestInit

Returns

Promise<ApiResponse<string[]>>


getInboxes

getInboxes(requestParameters, initOverrides?): Promise<InboxDto[]>

List the inboxes you have created. Note use of the more advanced getAllEmails is recommended and allows paginated access using a limit and sort parameter. List Inboxes and email addresses

Parameters

Name Type
requestParameters GetInboxesRequest
initOverrides? RequestInit

Returns

Promise<InboxDto[]>


getInboxesRaw

getInboxesRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxDto[]>>

List the inboxes you have created. Note use of the more advanced getAllEmails is recommended and allows paginated access using a limit and sort parameter. List Inboxes and email addresses

Parameters

Name Type
requestParameters GetInboxesRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxDto[]>>


getLatestEmailInInbox

getLatestEmailInInbox(requestParameters, initOverrides?): Promise<Email>

Get the newest email in an inbox or wait for one to arrive Get latest email in an inbox. Use WaitForController to get emails that may not have arrived yet.

Parameters

Name Type
requestParameters GetLatestEmailInInboxRequest
initOverrides? RequestInit

Returns

Promise<Email>


getLatestEmailInInboxRaw

getLatestEmailInInboxRaw(requestParameters, initOverrides?): Promise<ApiResponse<Email>>

Get the newest email in an inbox or wait for one to arrive Get latest email in an inbox. Use WaitForController to get emails that may not have arrived yet.

Parameters

Name Type
requestParameters GetLatestEmailInInboxRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<Email>>


getOrganizationInboxes

getOrganizationInboxes(requestParameters, initOverrides?): Promise<PageOrganizationInboxProjection>

List organization inboxes in paginated form. These are inboxes created with allowTeamAccess flag enabled. Organization inboxes are readOnly for non-admin users. The results are available on the content property of the returned object. This method allows for page (zero based), page size (how many results to return), and a sort direction (based on createdAt time). List Organization Inboxes Paginated

Parameters

Name Type
requestParameters GetOrganizationInboxesRequest
initOverrides? RequestInit

Returns

Promise<PageOrganizationInboxProjection>


getOrganizationInboxesRaw

getOrganizationInboxesRaw(requestParameters, initOverrides?): Promise<ApiResponse<PageOrganizationInboxProjection>>

List organization inboxes in paginated form. These are inboxes created with allowTeamAccess flag enabled. Organization inboxes are readOnly for non-admin users. The results are available on the content property of the returned object. This method allows for page (zero based), page size (how many results to return), and a sort direction (based on createdAt time). List Organization Inboxes Paginated

Parameters

Name Type
requestParameters GetOrganizationInboxesRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<PageOrganizationInboxProjection>>


listInboxRulesets

listInboxRulesets(requestParameters, initOverrides?): Promise<PageInboxRulesetDto>

List all rulesets attached to an inbox List inbox rulesets

Parameters

Name Type
requestParameters ListInboxRulesetsRequest
initOverrides? RequestInit

Returns

Promise<PageInboxRulesetDto>


listInboxRulesetsRaw

listInboxRulesetsRaw(requestParameters, initOverrides?): Promise<ApiResponse<PageInboxRulesetDto>>

List all rulesets attached to an inbox List inbox rulesets

Parameters

Name Type
requestParameters ListInboxRulesetsRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<PageInboxRulesetDto>>


listInboxTrackingPixels

listInboxTrackingPixels(requestParameters, initOverrides?): Promise<PageTrackingPixelProjection>

List all tracking pixels sent from an inbox List inbox tracking pixels

Parameters

Name Type
requestParameters ListInboxTrackingPixelsRequest
initOverrides? RequestInit

Returns

Promise<PageTrackingPixelProjection>


listInboxTrackingPixelsRaw

listInboxTrackingPixelsRaw(requestParameters, initOverrides?): Promise<ApiResponse<PageTrackingPixelProjection>>

List all tracking pixels sent from an inbox List inbox tracking pixels

Parameters

Name Type
requestParameters ListInboxTrackingPixelsRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<PageTrackingPixelProjection>>


request

Protected request(context, initOverrides?): Promise<Response>

Parameters

Name Type
context RequestOpts
initOverrides? RequestInit

Returns

Promise<Response>

Inherited from

BaseAPI.request


sendEmail

sendEmail(requestParameters, initOverrides?): Promise<void>

Send an email from an inbox's email address. The request body should contain the SendEmailOptions that include recipients, attachments, body etc. See SendEmailOptions for all available properties. Note the inboxId refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method sendEmailAndConfirm. Send Email

Parameters

Name Type
requestParameters SendEmailRequest
initOverrides? RequestInit

Returns

Promise<void>


sendEmailAndConfirm

sendEmailAndConfirm(requestParameters, initOverrides?): Promise<SentEmailDto>

Sister method for standard sendEmail method with the benefit of returning a SentEmail entity confirming the successful sending of the email with a link to the sent object created for it. Send email and return sent confirmation

Parameters

Name Type
requestParameters SendEmailAndConfirmRequest
initOverrides? RequestInit

Returns

Promise<SentEmailDto>


sendEmailAndConfirmRaw

sendEmailAndConfirmRaw(requestParameters, initOverrides?): Promise<ApiResponse<SentEmailDto>>

Sister method for standard sendEmail method with the benefit of returning a SentEmail entity confirming the successful sending of the email with a link to the sent object created for it. Send email and return sent confirmation

Parameters

Name Type
requestParameters SendEmailAndConfirmRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<SentEmailDto>>


sendEmailRaw

sendEmailRaw(requestParameters, initOverrides?): Promise<ApiResponse<void>>

Send an email from an inbox's email address. The request body should contain the SendEmailOptions that include recipients, attachments, body etc. See SendEmailOptions for all available properties. Note the inboxId refers to the inbox's id not the inbox's email address. See https://www.mailslurp.com/guides/ for more information on how to send emails. This method does not return a sent email entity due to legacy reasons. To send and get a sent email as returned response use the sister method sendEmailAndConfirm. Send Email

Parameters

Name Type
requestParameters SendEmailRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<void>>


sendSmtpEnvelope

sendSmtpEnvelope(requestParameters, initOverrides?): Promise<SentEmailDto>

Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. Send email using an SMTP mail envelope and message body and return sent confirmation

Parameters

Name Type
requestParameters SendSmtpEnvelopeRequest
initOverrides? RequestInit

Returns

Promise<SentEmailDto>


sendSmtpEnvelopeRaw

sendSmtpEnvelopeRaw(requestParameters, initOverrides?): Promise<ApiResponse<SentEmailDto>>

Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY. Send email using an SMTP mail envelope and message body and return sent confirmation

Parameters

Name Type
requestParameters SendSmtpEnvelopeRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<SentEmailDto>>


sendTestEmail

sendTestEmail(requestParameters, initOverrides?): Promise<void>

Send an inbox a test email to test email receiving is working Send a test email to inbox

Parameters

Name Type
requestParameters SendTestEmailRequest
initOverrides? RequestInit

Returns

Promise<void>


sendTestEmailRaw

sendTestEmailRaw(requestParameters, initOverrides?): Promise<ApiResponse<void>>

Send an inbox a test email to test email receiving is working Send a test email to inbox

Parameters

Name Type
requestParameters SendTestEmailRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<void>>


setInboxFavourited

setInboxFavourited(requestParameters, initOverrides?): Promise<InboxDto>

Set and return new favourite state for an inbox Set inbox favourited state

Parameters

Name Type
requestParameters SetInboxFavouritedRequest
initOverrides? RequestInit

Returns

Promise<InboxDto>


setInboxFavouritedRaw

setInboxFavouritedRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxDto>>

Set and return new favourite state for an inbox Set inbox favourited state

Parameters

Name Type
requestParameters SetInboxFavouritedRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxDto>>


updateInbox

updateInbox(requestParameters, initOverrides?): Promise<InboxDto>

Update editable fields on an inbox Update Inbox. Change name and description. Email address is not editable.

Parameters

Name Type
requestParameters UpdateInboxRequest
initOverrides? RequestInit

Returns

Promise<InboxDto>


updateInboxRaw

updateInboxRaw(requestParameters, initOverrides?): Promise<ApiResponse<InboxDto>>

Update editable fields on an inbox Update Inbox. Change name and description. Email address is not editable.

Parameters

Name Type
requestParameters UpdateInboxRequest
initOverrides? RequestInit

Returns

Promise<ApiResponse<InboxDto>>


withMiddleware

withMiddleware<T>(...middlewares): T

Type parameters

Name Type
T extends BaseAPI<T>

Parameters

Name Type
...middlewares Middleware[]

Returns

T

Inherited from

BaseAPI.withMiddleware


withPostMiddleware

withPostMiddleware<T>(...postMiddlewares): T

Type parameters

Name Type
T extends BaseAPI<T>

Parameters

Name Type
...postMiddlewares (context: ResponseContext) => Promise<void

Returns

T

Inherited from

BaseAPI.withPostMiddleware


withPreMiddleware

withPreMiddleware<T>(...preMiddlewares): T

Type parameters

Name Type
T extends BaseAPI<T>

Parameters

Name Type
...preMiddlewares (context: RequestContext) => Promise<void

Returns

T

Inherited from

BaseAPI.withPreMiddleware