Interface IInboxControllerApiAsync
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public interface IInboxControllerApiAsync : IApiAccessor
Methods
View SourceCancelScheduledJobAsync(Guid, int, CancellationToken)
Cancel a scheduled email job
Declaration
Task<ScheduledJobDto> CancelScheduledJobAsync(Guid jobId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | jobId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ScheduledJobDto> | Task of ScheduledJobDto |
Remarks
Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CancelScheduledJobWithHttpInfoAsync(Guid, int, CancellationToken)
Cancel a scheduled email job
Declaration
Task<ApiResponse<ScheduledJobDto>> CancelScheduledJobWithHttpInfoAsync(Guid jobId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | jobId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ScheduledJobDto>> | Task of ApiResponse (ScheduledJobDto) |
Remarks
Get a scheduled email job and cancel it. Will fail if status of job is already cancelled, failed, or complete.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateInboxAsync(string, List<string>, string, string, bool?, bool?, DateTime?, long?, bool?, string, bool?, bool?, Guid?, string, string, int, CancellationToken)
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.
Declaration
Task<InboxDto> CreateInboxAsync(string emailAddress = null, List<string> tags = null, string name = null, string description = null, bool? useDomainPool = null, bool? favourite = null, DateTime? expiresAt = null, long? expiresIn = null, bool? allowTeamAccess = null, string inboxType = null, bool? virtualInbox = null, bool? useShortAddress = null, Guid? domainId = null, string domainName = null, string prefix = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | emailAddress | A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as |
System.Collections.Generic.List<T><string> | tags | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) |
string | name | Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) |
string | description | Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) |
bool? | useDomainPool | Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default |
bool? | favourite | Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) |
DateTime? | expiresAt | Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) |
long? | expiresIn | Number of milliseconds that inbox should exist for (optional) |
bool? | allowTeamAccess | DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) |
string | inboxType | HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at |
bool? | virtualInbox | Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) |
bool? | useShortAddress | Use a shorter email address under 31 characters (optional) |
System.Guid? | domainId | ID of custom domain to use for email address. (optional) |
string | domainName | FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the |
string | prefix | Prefix to add before the email address for easier labelling or identification. (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxDto> | Task of InboxDto |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateInboxRulesetAsync(Guid, CreateInboxRulesetOptions, int, CancellationToken)
Create an inbox ruleset
Declaration
Task<InboxRulesetDto> CreateInboxRulesetAsync(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | inboxId |
CreateInboxRulesetOptions | createInboxRulesetOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxRulesetDto> | Task of InboxRulesetDto |
Remarks
Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateInboxRulesetWithHttpInfoAsync(Guid, CreateInboxRulesetOptions, int, CancellationToken)
Create an inbox ruleset
Declaration
Task<ApiResponse<InboxRulesetDto>> CreateInboxRulesetWithHttpInfoAsync(Guid inboxId, CreateInboxRulesetOptions createInboxRulesetOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | inboxId |
CreateInboxRulesetOptions | createInboxRulesetOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxRulesetDto>> | Task of ApiResponse (InboxRulesetDto) |
Remarks
Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateInboxWithDefaultsAsync(int, CancellationToken)
Create an inbox with default options. Uses MailSlurp domain pool address and is private.
Declaration
Task<InboxDto> CreateInboxWithDefaultsAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxDto> | Task of InboxDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateInboxWithDefaultsWithHttpInfoAsync(int, CancellationToken)
Create an inbox with default options. Uses MailSlurp domain pool address and is private.
Declaration
Task<ApiResponse<InboxDto>> CreateInboxWithDefaultsWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxDto>> | Task of ApiResponse (InboxDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateInboxWithHttpInfoAsync(string, List<string>, string, string, bool?, bool?, DateTime?, long?, bool?, string, bool?, bool?, Guid?, string, string, int, CancellationToken)
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.
Declaration
Task<ApiResponse<InboxDto>> CreateInboxWithHttpInfoAsync(string emailAddress = null, List<string> tags = null, string name = null, string description = null, bool? useDomainPool = null, bool? favourite = null, DateTime? expiresAt = null, long? expiresIn = null, bool? allowTeamAccess = null, string inboxType = null, bool? virtualInbox = null, bool? useShortAddress = null, Guid? domainId = null, string domainName = null, string prefix = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | emailAddress | A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as |
System.Collections.Generic.List<T><string> | tags | Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI. (optional) |
string | name | Optional name of the inbox. Displayed in the dashboard for easier search and used as the sender name when sending emails. (optional) |
string | description | Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with (optional) |
bool? | useDomainPool | Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default |
bool? | favourite | Is the inbox a favorite. Marking an inbox as a favorite is typically done in the dashboard for quick access or filtering (optional) |
DateTime? | expiresAt | Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional) |
long? | expiresIn | Number of milliseconds that inbox should exist for (optional) |
bool? | allowTeamAccess | DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization. (optional) |
string | inboxType | HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at |
bool? | virtualInbox | Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending. (optional) |
bool? | useShortAddress | Use a shorter email address under 31 characters (optional) |
System.Guid? | domainId | ID of custom domain to use for email address. (optional) |
string | domainName | FQDN domain name for the domain you have verified. Will be appended with a randomly assigned recipient name. Use the |
string | prefix | Prefix to add before the email address for easier labelling or identification. (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxDto>> | Task of ApiResponse (InboxDto) |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateInboxWithOptionsAsync(CreateInboxDto, int, CancellationToken)
Create an inbox with options. Extended options for inbox creation.
Declaration
Task<InboxDto> CreateInboxWithOptionsAsync(CreateInboxDto createInboxDto, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateInboxDto | createInboxDto | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxDto> | Task of InboxDto |
Remarks
Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateInboxWithOptionsWithHttpInfoAsync(CreateInboxDto, int, CancellationToken)
Create an inbox with options. Extended options for inbox creation.
Declaration
Task<ApiResponse<InboxDto>> CreateInboxWithOptionsWithHttpInfoAsync(CreateInboxDto createInboxDto, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateInboxDto | createInboxDto | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxDto>> | Task of ApiResponse (InboxDto) |
Remarks
Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxEmailsAsync(Guid, int, CancellationToken)
Delete all emails in a given inboxes.
Declaration
Task DeleteAllInboxEmailsAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Deletes all emails in an inbox. Be careful as emails cannot be recovered
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxEmailsWithHttpInfoAsync(Guid, int, CancellationToken)
Delete all emails in a given inboxes.
Declaration
Task<ApiResponse<object>> DeleteAllInboxEmailsWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Deletes all emails in an inbox. Be careful as emails cannot be recovered
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxesAsync(int, CancellationToken)
Delete all inboxes
Declaration
Task DeleteAllInboxesAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxesByDescriptionAsync(string, int, CancellationToken)
Delete inboxes by description
Declaration
Task DeleteAllInboxesByDescriptionAsync(string description, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | description | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Permanently delete all inboxes by description
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxesByDescriptionWithHttpInfoAsync(string, int, CancellationToken)
Delete inboxes by description
Declaration
Task<ApiResponse<object>> DeleteAllInboxesByDescriptionWithHttpInfoAsync(string description, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | description | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Permanently delete all inboxes by description
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxesByNameAsync(string, int, CancellationToken)
Delete inboxes by name
Declaration
Task DeleteAllInboxesByNameAsync(string name, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Permanently delete all inboxes by name
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxesByNameWithHttpInfoAsync(string, int, CancellationToken)
Delete inboxes by name
Declaration
Task<ApiResponse<object>> DeleteAllInboxesByNameWithHttpInfoAsync(string name, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Permanently delete all inboxes by name
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxesByTagAsync(string, int, CancellationToken)
Delete inboxes by tag
Declaration
Task DeleteAllInboxesByTagAsync(string tag, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | tag | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Permanently delete all inboxes by tag
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxesByTagWithHttpInfoAsync(string, int, CancellationToken)
Delete inboxes by tag
Declaration
Task<ApiResponse<object>> DeleteAllInboxesByTagWithHttpInfoAsync(string tag, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | tag | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Permanently delete all inboxes by tag
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllInboxesWithHttpInfoAsync(int, CancellationToken)
Delete all inboxes
Declaration
Task<ApiResponse<object>> DeleteAllInboxesWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteInboxAsync(Guid, int, CancellationToken)
Delete inbox
Declaration
Task DeleteInboxAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteInboxWithHttpInfoAsync(Guid, int, CancellationToken)
Delete inbox
Declaration
Task<ApiResponse<object>> DeleteInboxWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DoesInboxExistAsync(string, bool?, int, CancellationToken)
Does inbox exist
Declaration
Task<InboxExistsDto> DoesInboxExistAsync(string emailAddress, bool? allowCatchAll = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | emailAddress | Email address |
bool? | allowCatchAll | (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxExistsDto> | Task of InboxExistsDto |
Remarks
Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DoesInboxExistWithHttpInfoAsync(string, bool?, int, CancellationToken)
Does inbox exist
Declaration
Task<ApiResponse<InboxExistsDto>> DoesInboxExistWithHttpInfoAsync(string emailAddress, bool? allowCatchAll = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | emailAddress | Email address |
bool? | allowCatchAll | (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxExistsDto>> | Task of ApiResponse (InboxExistsDto) |
Remarks
Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
FlushExpiredAsync(DateTime?, int, CancellationToken)
Remove expired inboxes
Declaration
Task<FlushExpiredInboxesResult> FlushExpiredAsync(DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime? | before | Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<FlushExpiredInboxesResult> | Task of FlushExpiredInboxesResult |
Remarks
Remove any expired inboxes for your account (instead of waiting for scheduled removal on server)
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
FlushExpiredWithHttpInfoAsync(DateTime?, int, CancellationToken)
Remove expired inboxes
Declaration
Task<ApiResponse<FlushExpiredInboxesResult>> FlushExpiredWithHttpInfoAsync(DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime? | before | Optional expired at before flag to flush expired inboxes that have expired before the given time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<FlushExpiredInboxesResult>> | Task of ApiResponse (FlushExpiredInboxesResult) |
Remarks
Remove any expired inboxes for your account (instead of waiting for scheduled removal on server)
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllInboxesAsync(int?, int?, string, bool?, string, string, bool?, DateTime?, DateTime?, string, string, Guid?, int, CancellationToken)
List All Inboxes Paginated
Declaration
Task<PageInboxProjection> GetAllInboxesAsync(int? page = null, int? size = null, string sort = null, bool? favourite = null, string search = null, string tag = null, bool? teamAccess = null, DateTime? since = null, DateTime? before = null, string inboxType = null, string inboxFunction = null, Guid? domainId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in list pagination (optional, default to 0) |
int? | size | Optional page size in list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
bool? | favourite | Optionally filter results for favourites only (optional, default to false) |
string | search | Optionally filter by search words partial matching ID, tags, name, and email address (optional) |
string | tag | Optionally filter by tags. Will return inboxes that include given tags (optional) |
bool? | teamAccess | DEPRECATED. Optionally filter by team access. (optional) (deprecated) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
string | inboxType | Optional filter by inbox type (optional) |
string | inboxFunction | Optional filter by inbox function (optional) |
System.Guid? | domainId | Optional domain ID filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageInboxProjection> | Task of PageInboxProjection |
Remarks
List inboxes in paginated form. The results are available on the content
property of the returned object. This method allows for page index (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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllInboxesOffsetPaginatedAsync(int?, int?, string, bool?, string, string, bool?, DateTime?, DateTime?, string, string, Guid?, int, CancellationToken)
List All Inboxes Offset Paginated
Declaration
Task<PageInboxProjection> GetAllInboxesOffsetPaginatedAsync(int? page = null, int? size = null, string sort = null, bool? favourite = null, string search = null, string tag = null, bool? teamAccess = null, DateTime? since = null, DateTime? before = null, string inboxType = null, string inboxFunction = null, Guid? domainId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in list pagination (optional, default to 0) |
int? | size | Optional page size in list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
bool? | favourite | Optionally filter results for favourites only (optional, default to false) |
string | search | Optionally filter by search words partial matching ID, tags, name, and email address (optional) |
string | tag | Optionally filter by tags. Will return inboxes that include given tags (optional) |
bool? | teamAccess | DEPRECATED. Optionally filter by team access. (optional) (deprecated) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
string | inboxType | Optional filter by inbox type (optional) |
string | inboxFunction | Optional filter by inbox function (optional) |
System.Guid? | domainId | Optional domain ID filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageInboxProjection> | Task of PageInboxProjection |
Remarks
List inboxes in paginated form. The results are available on the content
property of the returned object. This method allows for page index (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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllInboxesOffsetPaginatedWithHttpInfoAsync(int?, int?, string, bool?, string, string, bool?, DateTime?, DateTime?, string, string, Guid?, int, CancellationToken)
List All Inboxes Offset Paginated
Declaration
Task<ApiResponse<PageInboxProjection>> GetAllInboxesOffsetPaginatedWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, bool? favourite = null, string search = null, string tag = null, bool? teamAccess = null, DateTime? since = null, DateTime? before = null, string inboxType = null, string inboxFunction = null, Guid? domainId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in list pagination (optional, default to 0) |
int? | size | Optional page size in list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
bool? | favourite | Optionally filter results for favourites only (optional, default to false) |
string | search | Optionally filter by search words partial matching ID, tags, name, and email address (optional) |
string | tag | Optionally filter by tags. Will return inboxes that include given tags (optional) |
bool? | teamAccess | DEPRECATED. Optionally filter by team access. (optional) (deprecated) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
string | inboxType | Optional filter by inbox type (optional) |
string | inboxFunction | Optional filter by inbox function (optional) |
System.Guid? | domainId | Optional domain ID filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageInboxProjection>> | Task of ApiResponse (PageInboxProjection) |
Remarks
List inboxes in paginated form. The results are available on the content
property of the returned object. This method allows for page index (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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllInboxesWithHttpInfoAsync(int?, int?, string, bool?, string, string, bool?, DateTime?, DateTime?, string, string, Guid?, int, CancellationToken)
List All Inboxes Paginated
Declaration
Task<ApiResponse<PageInboxProjection>> GetAllInboxesWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, bool? favourite = null, string search = null, string tag = null, bool? teamAccess = null, DateTime? since = null, DateTime? before = null, string inboxType = null, string inboxFunction = null, Guid? domainId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in list pagination (optional, default to 0) |
int? | size | Optional page size in list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
bool? | favourite | Optionally filter results for favourites only (optional, default to false) |
string | search | Optionally filter by search words partial matching ID, tags, name, and email address (optional) |
string | tag | Optionally filter by tags. Will return inboxes that include given tags (optional) |
bool? | teamAccess | DEPRECATED. Optionally filter by team access. (optional) (deprecated) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
string | inboxType | Optional filter by inbox type (optional) |
string | inboxFunction | Optional filter by inbox function (optional) |
System.Guid? | domainId | Optional domain ID filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageInboxProjection>> | Task of ApiResponse (PageInboxProjection) |
Remarks
List inboxes in paginated form. The results are available on the content
property of the returned object. This method allows for page index (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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllScheduledJobsAsync(int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get all scheduled email sending jobs for account
Declaration
Task<PageScheduledJobs> GetAllScheduledJobsAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in scheduled job list pagination (optional, default to 0) |
int? | size | Optional page size in scheduled job list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageScheduledJobs> | Task of PageScheduledJobs |
Remarks
Schedule sending of emails using scheduled jobs. These can be inbox or account level.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllScheduledJobsWithHttpInfoAsync(int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get all scheduled email sending jobs for account
Declaration
Task<ApiResponse<PageScheduledJobs>> GetAllScheduledJobsWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in scheduled job list pagination (optional, default to 0) |
int? | size | Optional page size in scheduled job list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageScheduledJobs>> | Task of ApiResponse (PageScheduledJobs) |
Remarks
Schedule sending of emails using scheduled jobs. These can be inbox or account level.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetDeliveryStatusesByInboxIdAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Declaration
[Obsolete]
Task<PageDeliveryStatus> GetDeliveryStatusesByInboxIdAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in delivery status list pagination (optional, default to 0) |
int? | size | Optional page size in delivery status list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageDeliveryStatus> | Task of PageDeliveryStatus |
Remarks
Get all email delivery statuses for an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetDeliveryStatusesByInboxIdWithHttpInfoAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Declaration
[Obsolete]
Task<ApiResponse<PageDeliveryStatus>> GetDeliveryStatusesByInboxIdWithHttpInfoAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in delivery status list pagination (optional, default to 0) |
int? | size | Optional page size in delivery status list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageDeliveryStatus>> | Task of ApiResponse (PageDeliveryStatus) |
Remarks
Get all email delivery statuses for an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEmailsAsync(Guid, int?, int?, string, long?, long?, long?, bool?, DateTime?, DateTime?, int, CancellationToken)
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.
Declaration
Task<List<EmailPreview>> GetEmailsAsync(Guid inboxId, int? size = null, int? limit = null, string sort = null, long? retryTimeout = null, long? delayTimeout = null, long? minCount = null, bool? unreadOnly = null, DateTime? before = null, DateTime? since = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | Id of inbox that emails belongs to |
int? | size | Alias for limit. Assessed first before assessing any passed limit. (optional) |
int? | limit | Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) |
string | sort | Sort the results by received date and direction ASC or DESC (optional) |
long? | retryTimeout | Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) |
long? | delayTimeout | (optional) |
long? | minCount | Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) |
bool? | unreadOnly | (optional) |
DateTime? | before | Exclude emails received after this ISO 8601 date time (optional) |
DateTime? | since | Exclude emails received before this ISO 8601 date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<System.Collections.Generic.List<T><EmailPreview>> | Task of List<EmailPreview> |
Remarks
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
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEmailsWithHttpInfoAsync(Guid, int?, int?, string, long?, long?, long?, bool?, DateTime?, DateTime?, int, CancellationToken)
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.
Declaration
Task<ApiResponse<List<EmailPreview>>> GetEmailsWithHttpInfoAsync(Guid inboxId, int? size = null, int? limit = null, string sort = null, long? retryTimeout = null, long? delayTimeout = null, long? minCount = null, bool? unreadOnly = null, DateTime? before = null, DateTime? since = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | Id of inbox that emails belongs to |
int? | size | Alias for limit. Assessed first before assessing any passed limit. (optional) |
int? | limit | Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller (optional) |
string | sort | Sort the results by received date and direction ASC or DESC (optional) |
long? | retryTimeout | Maximum milliseconds to spend retrying inbox database until minCount emails are returned (optional) |
long? | delayTimeout | (optional) |
long? | minCount | Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached. (optional) |
bool? | unreadOnly | (optional) |
DateTime? | before | Exclude emails received after this ISO 8601 date time (optional) |
DateTime? | since | Exclude emails received before this ISO 8601 date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<System.Collections.Generic.List<T><EmailPreview>>> | Task of ApiResponse (List<EmailPreview>) |
Remarks
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
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetImapAccessAsync(Guid?, int, CancellationToken)
Declaration
Task<ImapAccessDetails> GetImapAccessAsync(Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ImapAccessDetails> | Task of ImapAccessDetails |
Remarks
Get IMAP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetImapAccessWithHttpInfoAsync(Guid?, int, CancellationToken)
Declaration
Task<ApiResponse<ImapAccessDetails>> GetImapAccessWithHttpInfoAsync(Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ImapAccessDetails>> | Task of ApiResponse (ImapAccessDetails) |
Remarks
Get IMAP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetImapSmtpAccessAsync(Guid?, int, CancellationToken)
Declaration
Task<ImapSmtpAccessDetails> GetImapSmtpAccessAsync(Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ImapSmtpAccessDetails> | Task of ImapSmtpAccessDetails |
Remarks
Get IMAP and SMTP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetImapSmtpAccessEnvAsync(Guid?, int, CancellationToken)
Declaration
Task<string> GetImapSmtpAccessEnvAsync(Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<string> | Task of string |
Remarks
Get IMAP and SMTP access details in .env format
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetImapSmtpAccessEnvWithHttpInfoAsync(Guid?, int, CancellationToken)
Declaration
Task<ApiResponse<string>> GetImapSmtpAccessEnvWithHttpInfoAsync(Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<string>> | Task of ApiResponse (string) |
Remarks
Get IMAP and SMTP access details in .env format
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetImapSmtpAccessServersAsync(int, CancellationToken)
Declaration
Task<ImapSmtpAccessServers> GetImapSmtpAccessServersAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ImapSmtpAccessServers> | Task of ImapSmtpAccessServers |
Remarks
Get IMAP and SMTP server hosts
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetImapSmtpAccessServersWithHttpInfoAsync(int, CancellationToken)
Declaration
Task<ApiResponse<ImapSmtpAccessServers>> GetImapSmtpAccessServersWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ImapSmtpAccessServers>> | Task of ApiResponse (ImapSmtpAccessServers) |
Remarks
Get IMAP and SMTP server hosts
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetImapSmtpAccessWithHttpInfoAsync(Guid?, int, CancellationToken)
Declaration
Task<ApiResponse<ImapSmtpAccessDetails>> GetImapSmtpAccessWithHttpInfoAsync(Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ImapSmtpAccessDetails>> | Task of ApiResponse (ImapSmtpAccessDetails) |
Remarks
Get IMAP and SMTP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxAsync(Guid, int, CancellationToken)
Get Inbox. Returns properties of an inbox.
Declaration
Task<InboxDto> GetInboxAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxDto> | Task of InboxDto |
Remarks
Returns an inbox's properties, including its email address and ID.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxByEmailAddressAsync(string, int, CancellationToken)
Search for an inbox with the provided email address
Declaration
Task<InboxByEmailAddressResult> GetInboxByEmailAddressAsync(string emailAddress, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | emailAddress | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxByEmailAddressResult> | Task of InboxByEmailAddressResult |
Remarks
Get a inbox result by email address
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxByEmailAddressWithHttpInfoAsync(string, int, CancellationToken)
Search for an inbox with the provided email address
Declaration
Task<ApiResponse<InboxByEmailAddressResult>> GetInboxByEmailAddressWithHttpInfoAsync(string emailAddress, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | emailAddress | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxByEmailAddressResult>> | Task of ApiResponse (InboxByEmailAddressResult) |
Remarks
Get a inbox result by email address
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxByNameAsync(string, int, CancellationToken)
Search for an inbox with the given name
Declaration
Task<InboxByNameResult> GetInboxByNameAsync(string name, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxByNameResult> | Task of InboxByNameResult |
Remarks
Get a inbox result by name
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxByNameWithHttpInfoAsync(string, int, CancellationToken)
Search for an inbox with the given name
Declaration
Task<ApiResponse<InboxByNameResult>> GetInboxByNameWithHttpInfoAsync(string name, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxByNameResult>> | Task of ApiResponse (InboxByNameResult) |
Remarks
Get a inbox result by name
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxCountAsync(int, CancellationToken)
Get total inbox count
Declaration
Task<CountDto> GetInboxCountAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<CountDto> | Task of CountDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxCountWithHttpInfoAsync(int, CancellationToken)
Get total inbox count
Declaration
Task<ApiResponse<CountDto>> GetInboxCountWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<CountDto>> | Task of ApiResponse (CountDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxEmailCountAsync(Guid, int, CancellationToken)
Get email count in inbox
Declaration
Task<CountDto> GetInboxEmailCountAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | Id of inbox that emails belongs to |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<CountDto> | Task of CountDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxEmailCountWithHttpInfoAsync(Guid, int, CancellationToken)
Get email count in inbox
Declaration
Task<ApiResponse<CountDto>> GetInboxEmailCountWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | Id of inbox that emails belongs to |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<CountDto>> | Task of ApiResponse (CountDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxEmailsPaginatedAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get inbox emails paginated
Declaration
Task<PageEmailPreview> GetInboxEmailsPaginatedAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | Id of inbox that emails belongs to |
int? | page | Optional page index in inbox emails list pagination (optional, default to 0) |
int? | size | Optional page size in inbox emails list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Optional filter by received after given date time (optional) |
DateTime? | before | Optional filter by received before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageEmailPreview> | Task of PageEmailPreview |
Remarks
Get a paginated list of emails in an inbox. Does not hold connections open.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxEmailsPaginatedWithHttpInfoAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get inbox emails paginated
Declaration
Task<ApiResponse<PageEmailPreview>> GetInboxEmailsPaginatedWithHttpInfoAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | Id of inbox that emails belongs to |
int? | page | Optional page index in inbox emails list pagination (optional, default to 0) |
int? | size | Optional page size in inbox emails list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Optional filter by received after given date time (optional) |
DateTime? | before | Optional filter by received before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageEmailPreview>> | Task of ApiResponse (PageEmailPreview) |
Remarks
Get a paginated list of emails in an inbox. Does not hold connections open.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxesAsync(int?, string, DateTime?, bool?, DateTime?, int, CancellationToken)
List Inboxes and email addresses
Declaration
[Obsolete]
Task<List<InboxDto>> GetInboxesAsync(int? size = null, string sort = null, DateTime? since = null, bool? excludeCatchAllInboxes = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | size | Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Optional filter by created after given date time (optional) |
bool? | excludeCatchAllInboxes | Optional exclude catch all inboxes (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<System.Collections.Generic.List<T><InboxDto>> | Task of List<InboxDto> |
Remarks
List the inboxes you have created. Note use of the more advanced getAllInboxes
is recommended and allows paginated access using a limit and sort parameter.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxesWithHttpInfoAsync(int?, string, DateTime?, bool?, DateTime?, int, CancellationToken)
List Inboxes and email addresses
Declaration
[Obsolete]
Task<ApiResponse<List<InboxDto>>> GetInboxesWithHttpInfoAsync(int? size = null, string sort = null, DateTime? since = null, bool? excludeCatchAllInboxes = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | size | Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Optional filter by created after given date time (optional) |
bool? | excludeCatchAllInboxes | Optional exclude catch all inboxes (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<System.Collections.Generic.List<T><InboxDto>>> | Task of ApiResponse (List<InboxDto>) |
Remarks
List the inboxes you have created. Note use of the more advanced getAllInboxes
is recommended and allows paginated access using a limit and sort parameter.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxIdsAsync(int, CancellationToken)
Get all inbox IDs
Declaration
[Obsolete]
Task<InboxIdsResult> GetInboxIdsAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxIdsResult> | Task of InboxIdsResult |
Remarks
Get list of inbox IDs
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxIdsWithHttpInfoAsync(int, CancellationToken)
Get all inbox IDs
Declaration
[Obsolete]
Task<ApiResponse<InboxIdsResult>> GetInboxIdsWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxIdsResult>> | Task of ApiResponse (InboxIdsResult) |
Remarks
Get list of inbox IDs
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxSentEmailsAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
Get Inbox Sent Emails
Declaration
[Obsolete]
Task<PageSentEmailProjection> GetInboxSentEmailsAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in inbox sent email list pagination (optional, default to 0) |
int? | size | Optional page size in inbox sent email list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
string | searchFilter | Optional sent email search (optional) |
DateTime? | since | Optional filter by sent after given date time (optional) |
DateTime? | before | Optional filter by sent before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageSentEmailProjection> | Task of PageSentEmailProjection |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxSentEmailsWithHttpInfoAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
Get Inbox Sent Emails
Declaration
[Obsolete]
Task<ApiResponse<PageSentEmailProjection>> GetInboxSentEmailsWithHttpInfoAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in inbox sent email list pagination (optional, default to 0) |
int? | size | Optional page size in inbox sent email list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
string | searchFilter | Optional sent email search (optional) |
DateTime? | since | Optional filter by sent after given date time (optional) |
DateTime? | before | Optional filter by sent before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageSentEmailProjection>> | Task of ApiResponse (PageSentEmailProjection) |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxTagsAsync(int, CancellationToken)
Get inbox tags
Declaration
[Obsolete]
Task<List<string>> GetInboxTagsAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<System.Collections.Generic.List<T><string>> | Task of List<string> |
Remarks
Get all inbox tags
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxTagsWithHttpInfoAsync(int, CancellationToken)
Get inbox tags
Declaration
[Obsolete]
Task<ApiResponse<List<string>>> GetInboxTagsWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<System.Collections.Generic.List<T><string>>> | Task of ApiResponse (List<string>) |
Remarks
Get all inbox tags
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxWithHttpInfoAsync(Guid, int, CancellationToken)
Get Inbox. Returns properties of an inbox.
Declaration
Task<ApiResponse<InboxDto>> GetInboxWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxDto>> | Task of ApiResponse (InboxDto) |
Remarks
Returns an inbox's properties, including its email address and ID.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetLatestEmailInInboxAsync(Guid, long, int, CancellationToken)
Get latest email in an inbox. Use WaitForController
to get emails that may not have arrived yet.
Declaration
Task<Email> GetLatestEmailInInboxAsync(Guid inboxId, long timeoutMillis, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to get the latest email from |
long | timeoutMillis | Timeout milliseconds to wait for latest email |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<Email> | Task of Email |
Remarks
Get the newest email in an inbox or wait for one to arrive
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetLatestEmailInInboxWithHttpInfoAsync(Guid, long, int, CancellationToken)
Get latest email in an inbox. Use WaitForController
to get emails that may not have arrived yet.
Declaration
Task<ApiResponse<Email>> GetLatestEmailInInboxWithHttpInfoAsync(Guid inboxId, long timeoutMillis, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to get the latest email from |
long | timeoutMillis | Timeout milliseconds to wait for latest email |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<Email>> | Task of ApiResponse (Email) |
Remarks
Get the newest email in an inbox or wait for one to arrive
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetOrganizationInboxesAsync(int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
List Organization Inboxes Paginated
Declaration
[Obsolete]
Task<PageOrganizationInboxProjection> GetOrganizationInboxesAsync(int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in list pagination (optional, default to 0) |
int? | size | Optional page size in list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
string | searchFilter | Optional search filter (optional) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageOrganizationInboxProjection> | Task of PageOrganizationInboxProjection |
Remarks
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 index (zero based), page size (how many results to return), and a sort direction (based on createdAt time).
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetOrganizationInboxesWithHttpInfoAsync(int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
List Organization Inboxes Paginated
Declaration
[Obsolete]
Task<ApiResponse<PageOrganizationInboxProjection>> GetOrganizationInboxesWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in list pagination (optional, default to 0) |
int? | size | Optional page size in list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
string | searchFilter | Optional search filter (optional) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageOrganizationInboxProjection>> | Task of ApiResponse (PageOrganizationInboxProjection) |
Remarks
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 index (zero based), page size (how many results to return), and a sort direction (based on createdAt time).
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetScheduledJobAsync(Guid, int, CancellationToken)
Get a scheduled email job
Declaration
Task<ScheduledJobDto> GetScheduledJobAsync(Guid jobId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | jobId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ScheduledJobDto> | Task of ScheduledJobDto |
Remarks
Get a scheduled email job details.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetScheduledJobsByInboxIdAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get all scheduled email sending jobs for the inbox
Declaration
Task<PageScheduledJobs> GetScheduledJobsByInboxIdAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in scheduled job list pagination (optional, default to 0) |
int? | size | Optional page size in scheduled job list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageScheduledJobs> | Task of PageScheduledJobs |
Remarks
Schedule sending of emails using scheduled jobs.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetScheduledJobsByInboxIdWithHttpInfoAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get all scheduled email sending jobs for the inbox
Declaration
Task<ApiResponse<PageScheduledJobs>> GetScheduledJobsByInboxIdWithHttpInfoAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in scheduled job list pagination (optional, default to 0) |
int? | size | Optional page size in scheduled job list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageScheduledJobs>> | Task of ApiResponse (PageScheduledJobs) |
Remarks
Schedule sending of emails using scheduled jobs.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetScheduledJobWithHttpInfoAsync(Guid, int, CancellationToken)
Get a scheduled email job
Declaration
Task<ApiResponse<ScheduledJobDto>> GetScheduledJobWithHttpInfoAsync(Guid jobId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | jobId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ScheduledJobDto>> | Task of ApiResponse (ScheduledJobDto) |
Remarks
Get a scheduled email job details.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetSmtpAccessAsync(Guid?, int, CancellationToken)
Declaration
Task<SmtpAccessDetails> GetSmtpAccessAsync(Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<SmtpAccessDetails> | Task of SmtpAccessDetails |
Remarks
Get SMTP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetSmtpAccessWithHttpInfoAsync(Guid?, int, CancellationToken)
Declaration
Task<ApiResponse<SmtpAccessDetails>> GetSmtpAccessWithHttpInfoAsync(Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<SmtpAccessDetails>> | Task of ApiResponse (SmtpAccessDetails) |
Remarks
Get SMTP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
IsEmailAddressAvailableAsync(string, int, CancellationToken)
Is email address available
Declaration
Task<EmailAvailableResult> IsEmailAddressAvailableAsync(string emailAddress, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | emailAddress | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<EmailAvailableResult> | Task of EmailAvailableResult |
Remarks
Returns whether an email address is available
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
IsEmailAddressAvailableWithHttpInfoAsync(string, int, CancellationToken)
Is email address available
Declaration
Task<ApiResponse<EmailAvailableResult>> IsEmailAddressAvailableWithHttpInfoAsync(string emailAddress, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | emailAddress | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<EmailAvailableResult>> | Task of ApiResponse (EmailAvailableResult) |
Remarks
Returns whether an email address is available
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ListInboxRulesetsAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
List inbox rulesets
Declaration
Task<PageInboxRulesetDto> ListInboxRulesetsAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in inbox ruleset list pagination (optional, default to 0) |
int? | size | Optional page size in inbox ruleset list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
string | searchFilter | Optional search filter (optional) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageInboxRulesetDto> | Task of PageInboxRulesetDto |
Remarks
List all rulesets attached to an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ListInboxRulesetsWithHttpInfoAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
List inbox rulesets
Declaration
Task<ApiResponse<PageInboxRulesetDto>> ListInboxRulesetsWithHttpInfoAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in inbox ruleset list pagination (optional, default to 0) |
int? | size | Optional page size in inbox ruleset list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
string | searchFilter | Optional search filter (optional) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageInboxRulesetDto>> | Task of ApiResponse (PageInboxRulesetDto) |
Remarks
List all rulesets attached to an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ListInboxTrackingPixelsAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
List inbox tracking pixels
Declaration
Task<PageTrackingPixelProjection> ListInboxTrackingPixelsAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in inbox tracking pixel list pagination (optional, default to 0) |
int? | size | Optional page size in inbox tracking pixel list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
string | searchFilter | Optional search filter (optional) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageTrackingPixelProjection> | Task of PageTrackingPixelProjection |
Remarks
List all tracking pixels sent from an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ListInboxTrackingPixelsWithHttpInfoAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
List inbox tracking pixels
Declaration
Task<ApiResponse<PageTrackingPixelProjection>> ListInboxTrackingPixelsWithHttpInfoAsync(Guid inboxId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int? | page | Optional page index in inbox tracking pixel list pagination (optional, default to 0) |
int? | size | Optional page size in inbox tracking pixel list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
string | searchFilter | Optional search filter (optional) |
DateTime? | since | Optional filter by created after given date time (optional) |
DateTime? | before | Optional filter by created before given date time (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageTrackingPixelProjection>> | Task of ApiResponse (PageTrackingPixelProjection) |
Remarks
List all tracking pixels sent from an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SearchInboxesAsync(SearchInboxesOptions, int, CancellationToken)
Search all inboxes and return matching inboxes
Declaration
Task<PageInboxProjection> SearchInboxesAsync(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
SearchInboxesOptions | searchInboxesOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageInboxProjection> | Task of PageInboxProjection |
Remarks
Search inboxes and return in paginated form. The results are available on the content
property of the returned object. This method allows for page index (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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SearchInboxesWithHttpInfoAsync(SearchInboxesOptions, int, CancellationToken)
Search all inboxes and return matching inboxes
Declaration
Task<ApiResponse<PageInboxProjection>> SearchInboxesWithHttpInfoAsync(SearchInboxesOptions searchInboxesOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
SearchInboxesOptions | searchInboxesOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageInboxProjection>> | Task of ApiResponse (PageInboxProjection) |
Remarks
Search inboxes and return in paginated form. The results are available on the content
property of the returned object. This method allows for page index (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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendEmailAndConfirmAsync(Guid, SendEmailOptions, int, CancellationToken)
Send email and return sent confirmation
Declaration
Task<SentEmailDto> SendEmailAndConfirmAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
SendEmailOptions | sendEmailOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<SentEmailDto> | Task of SentEmailDto |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendEmailAndConfirmWithHttpInfoAsync(Guid, SendEmailOptions, int, CancellationToken)
Send email and return sent confirmation
Declaration
Task<ApiResponse<SentEmailDto>> SendEmailAndConfirmWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
SendEmailOptions | sendEmailOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<SentEmailDto>> | Task of ApiResponse (SentEmailDto) |
Remarks
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.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendEmailAsync(Guid, SendEmailOptions, int, CancellationToken)
Send Email
Declaration
Task SendEmailAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
SendEmailOptions | sendEmailOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
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
.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendEmailWithHttpInfoAsync(Guid, SendEmailOptions, int, CancellationToken)
Send Email
Declaration
Task<ApiResponse<object>> SendEmailWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
SendEmailOptions | sendEmailOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
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
.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendEmailWithQueueAsync(Guid, bool, SendEmailOptions, int, CancellationToken)
Send email with queue
Declaration
Task SendEmailWithQueueAsync(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
bool | validateBeforeEnqueue | Validate before adding to queue |
SendEmailOptions | sendEmailOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendEmailWithQueueWithHttpInfoAsync(Guid, bool, SendEmailOptions, int, CancellationToken)
Send email with queue
Declaration
Task<ApiResponse<object>> SendEmailWithQueueWithHttpInfoAsync(Guid inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
bool | validateBeforeEnqueue | Validate before adding to queue |
SendEmailOptions | sendEmailOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendSmtpEnvelopeAsync(Guid, SendSMTPEnvelopeOptions, int, CancellationToken)
Send email using an SMTP mail envelope and message body and return sent confirmation
Declaration
Task<SentEmailDto> SendSmtpEnvelopeAsync(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
SendSMTPEnvelopeOptions | sendSMTPEnvelopeOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<SentEmailDto> | Task of SentEmailDto |
Remarks
Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendSmtpEnvelopeWithHttpInfoAsync(Guid, SendSMTPEnvelopeOptions, int, CancellationToken)
Send email using an SMTP mail envelope and message body and return sent confirmation
Declaration
Task<ApiResponse<SentEmailDto>> SendSmtpEnvelopeWithHttpInfoAsync(Guid inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
SendSMTPEnvelopeOptions | sendSMTPEnvelopeOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<SentEmailDto>> | Task of ApiResponse (SentEmailDto) |
Remarks
Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendTestEmailAsync(Guid, int, CancellationToken)
Send a test email to inbox
Declaration
Task SendTestEmailAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Send an inbox a test email to test email receiving is working
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendTestEmailWithHttpInfoAsync(Guid, int, CancellationToken)
Send a test email to inbox
Declaration
Task<ApiResponse<object>> SendTestEmailWithHttpInfoAsync(Guid inboxId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Send an inbox a test email to test email receiving is working
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendWithScheduleAsync(Guid, SendEmailOptions, DateTime?, long?, bool?, int, CancellationToken)
Send email with with delay or schedule
Declaration
Task<ScheduledJobDto> SendWithScheduleAsync(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = null, long? sendAtNowPlusSeconds = null, bool? validateBeforeEnqueue = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
SendEmailOptions | sendEmailOptions | |
DateTime? | sendAtTimestamp | Sending timestamp (optional) |
long? | sendAtNowPlusSeconds | Send after n seconds (optional) |
bool? | validateBeforeEnqueue | Validate before adding to queue (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ScheduledJobDto> | Task of ScheduledJobDto |
Remarks
Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendWithScheduleWithHttpInfoAsync(Guid, SendEmailOptions, DateTime?, long?, bool?, int, CancellationToken)
Send email with with delay or schedule
Declaration
Task<ApiResponse<ScheduledJobDto>> SendWithScheduleWithHttpInfoAsync(Guid inboxId, SendEmailOptions sendEmailOptions, DateTime? sendAtTimestamp = null, long? sendAtNowPlusSeconds = null, bool? validateBeforeEnqueue = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of the inbox you want to send the email from |
SendEmailOptions | sendEmailOptions | |
DateTime? | sendAtTimestamp | Sending timestamp (optional) |
long? | sendAtNowPlusSeconds | Send after n seconds (optional) |
bool? | validateBeforeEnqueue | Validate before adding to queue (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ScheduledJobDto>> | Task of ApiResponse (ScheduledJobDto) |
Remarks
Send an email using a delay. Will place the email onto a scheduler that will then be processed and sent. Use delays to schedule email sending.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SetInboxFavouritedAsync(Guid, SetInboxFavouritedOptions, int, CancellationToken)
Set inbox favourited state
Declaration
Task<InboxDto> SetInboxFavouritedAsync(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of inbox to set favourite state |
SetInboxFavouritedOptions | setInboxFavouritedOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxDto> | Task of InboxDto |
Remarks
Set and return new favourite state for an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SetInboxFavouritedWithHttpInfoAsync(Guid, SetInboxFavouritedOptions, int, CancellationToken)
Set inbox favourited state
Declaration
Task<ApiResponse<InboxDto>> SetInboxFavouritedWithHttpInfoAsync(Guid inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of inbox to set favourite state |
SetInboxFavouritedOptions | setInboxFavouritedOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxDto>> | Task of ApiResponse (InboxDto) |
Remarks
Set and return new favourite state for an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateImapAccessAsync(UpdateImapAccessOptions, Guid?, int, CancellationToken)
Declaration
Task UpdateImapAccessAsync(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateImapAccessOptions | updateImapAccessOptions | |
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Update IMAP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateImapAccessWithHttpInfoAsync(UpdateImapAccessOptions, Guid?, int, CancellationToken)
Declaration
Task<ApiResponse<object>> UpdateImapAccessWithHttpInfoAsync(UpdateImapAccessOptions updateImapAccessOptions, Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateImapAccessOptions | updateImapAccessOptions | |
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Update IMAP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateInboxAsync(Guid, UpdateInboxOptions, int, CancellationToken)
Update Inbox. Change name and description. Email address is not editable.
Declaration
Task<InboxDto> UpdateInboxAsync(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
UpdateInboxOptions | updateInboxOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<InboxDto> | Task of InboxDto |
Remarks
Update editable fields on an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateInboxWithHttpInfoAsync(Guid, UpdateInboxOptions, int, CancellationToken)
Update Inbox. Change name and description. Email address is not editable.
Declaration
Task<ApiResponse<InboxDto>> UpdateInboxWithHttpInfoAsync(Guid inboxId, UpdateInboxOptions updateInboxOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
UpdateInboxOptions | updateInboxOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<InboxDto>> | Task of ApiResponse (InboxDto) |
Remarks
Update editable fields on an inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateSmtpAccessAsync(UpdateSmtpAccessOptions, Guid?, int, CancellationToken)
Declaration
Task UpdateSmtpAccessAsync(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateSmtpAccessOptions | updateSmtpAccessOptions | |
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Update SMTP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateSmtpAccessWithHttpInfoAsync(UpdateSmtpAccessOptions, Guid?, int, CancellationToken)
Declaration
Task<ApiResponse<object>> UpdateSmtpAccessWithHttpInfoAsync(UpdateSmtpAccessOptions updateSmtpAccessOptions, Guid? inboxId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateSmtpAccessOptions | updateSmtpAccessOptions | |
System.Guid? | inboxId | Inbox ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Update SMTP access usernames and passwords
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |