Interface IWebhookControllerApiAsync
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public interface IWebhookControllerApiAsync : IApiAccessor
Methods
View SourceCreateAccountWebhookAsync(CreateWebhookOptions, int, CancellationToken)
Attach a WebHook URL to an inbox
Declaration
Task<WebhookDto> CreateAccountWebhookAsync(CreateWebhookOptions createWebhookOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateWebhookOptions | createWebhookOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<WebhookDto> | Task of WebhookDto |
Remarks
Get notified of account level events such as bounce and bounce recipient.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateAccountWebhookWithHttpInfoAsync(CreateWebhookOptions, int, CancellationToken)
Attach a WebHook URL to an inbox
Declaration
Task<ApiResponse<WebhookDto>> CreateAccountWebhookWithHttpInfoAsync(CreateWebhookOptions createWebhookOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateWebhookOptions | createWebhookOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<WebhookDto>> | Task of ApiResponse (WebhookDto) |
Remarks
Get notified of account level events such as bounce and bounce recipient.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateWebhookAsync(Guid, CreateWebhookOptions, int, CancellationToken)
Attach a WebHook URL to an inbox
Declaration
Task<WebhookDto> CreateWebhookAsync(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
CreateWebhookOptions | createWebhookOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<WebhookDto> | Task of WebhookDto |
Remarks
Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateWebhookForPhoneNumberAsync(Guid, CreateWebhookOptions, int, CancellationToken)
Attach a WebHook URL to a phone number
Declaration
Task<WebhookDto> CreateWebhookForPhoneNumberAsync(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | phoneNumberId | |
CreateWebhookOptions | createWebhookOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<WebhookDto> | Task of WebhookDto |
Remarks
Get notified whenever a phone number receives an SMS via a WebHook URL.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateWebhookForPhoneNumberWithHttpInfoAsync(Guid, CreateWebhookOptions, int, CancellationToken)
Attach a WebHook URL to a phone number
Declaration
Task<ApiResponse<WebhookDto>> CreateWebhookForPhoneNumberWithHttpInfoAsync(Guid phoneNumberId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | phoneNumberId | |
CreateWebhookOptions | createWebhookOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<WebhookDto>> | Task of ApiResponse (WebhookDto) |
Remarks
Get notified whenever a phone number receives an SMS via a WebHook URL.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateWebhookWithHttpInfoAsync(Guid, CreateWebhookOptions, int, CancellationToken)
Attach a WebHook URL to an inbox
Declaration
Task<ApiResponse<WebhookDto>> CreateWebhookWithHttpInfoAsync(Guid inboxId, CreateWebhookOptions createWebhookOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
CreateWebhookOptions | createWebhookOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<WebhookDto>> | Task of ApiResponse (WebhookDto) |
Remarks
Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllWebhooksAsync(DateTime?, int, CancellationToken)
Delete all webhooks
Declaration
Task DeleteAllWebhooksAsync(DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime? | before | before (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllWebhooksWithHttpInfoAsync(DateTime?, int, CancellationToken)
Delete all webhooks
Declaration
Task<ApiResponse<object>> DeleteAllWebhooksWithHttpInfoAsync(DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime? | before | before (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 |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteWebhookAsync(Guid, Guid, int, CancellationToken)
Delete and disable a Webhook for an Inbox
Declaration
Task DeleteWebhookAsync(Guid inboxId, Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteWebhookByIdAsync(Guid, int, CancellationToken)
Delete a webhook
Declaration
Task DeleteWebhookByIdAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteWebhookByIdWithHttpInfoAsync(Guid, int, CancellationToken)
Delete a webhook
Declaration
Task<ApiResponse<object>> DeleteWebhookByIdWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteWebhookWithHttpInfoAsync(Guid, Guid, int, CancellationToken)
Delete and disable a Webhook for an Inbox
Declaration
Task<ApiResponse<object>> DeleteWebhookWithHttpInfoAsync(Guid inboxId, Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | |
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllAccountWebhooksAsync(int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
List account webhooks Paginated
Declaration
Task<PageWebhookProjection> GetAllAccountWebhooksAsync(int? page = null, int? size = null, string sort = null, string eventType = 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 for paginated result list. (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
string | eventType | Optional event type (optional) |
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<PageWebhookProjection> | Task of PageWebhookProjection |
Remarks
List account webhooks in paginated form. Allows for page index, page size, and sort direction.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllAccountWebhooksWithHttpInfoAsync(int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
List account webhooks Paginated
Declaration
Task<ApiResponse<PageWebhookProjection>> GetAllAccountWebhooksWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, string eventType = 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 for paginated result list. (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
string | eventType | Optional event type (optional) |
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<PageWebhookProjection>> | Task of ApiResponse (PageWebhookProjection) |
Remarks
List account webhooks in paginated form. Allows for page index, page size, and sort direction.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllWebhookResultsAsync(int?, int?, string, string, DateTime?, DateTime?, bool?, string, string, int?, int?, Guid?, Guid?, Guid?, Guid?, Guid?, int, CancellationToken)
Get results for all webhooks
Declaration
Task<PageWebhookResult> GetAllWebhookResultsAsync(int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, bool? unseenOnly = null, string resultType = null, string eventName = null, int? minStatusCode = null, int? maxStatusCode = null, Guid? inboxId = null, Guid? smsId = null, Guid? attachmentId = null, Guid? emailId = null, Guid? phoneId = 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 | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
bool? | unseenOnly | Filter for unseen exceptions only (optional) |
string | resultType | Filter by result type (optional) |
string | eventName | Filter by event name (optional) |
int? | minStatusCode | Minimum response status (optional) |
int? | maxStatusCode | Maximum response status (optional) |
System.Guid? | inboxId | Inbox ID (optional) |
System.Guid? | smsId | Sms ID (optional) |
System.Guid? | attachmentId | Attachment ID (optional) |
System.Guid? | emailId | Email ID (optional) |
System.Guid? | phoneId | Phone ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageWebhookResult> | Task of PageWebhookResult |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllWebhookResultsWithHttpInfoAsync(int?, int?, string, string, DateTime?, DateTime?, bool?, string, string, int?, int?, Guid?, Guid?, Guid?, Guid?, Guid?, int, CancellationToken)
Get results for all webhooks
Declaration
Task<ApiResponse<PageWebhookResult>> GetAllWebhookResultsWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, bool? unseenOnly = null, string resultType = null, string eventName = null, int? minStatusCode = null, int? maxStatusCode = null, Guid? inboxId = null, Guid? smsId = null, Guid? attachmentId = null, Guid? emailId = null, Guid? phoneId = 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 | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
bool? | unseenOnly | Filter for unseen exceptions only (optional) |
string | resultType | Filter by result type (optional) |
string | eventName | Filter by event name (optional) |
int? | minStatusCode | Minimum response status (optional) |
int? | maxStatusCode | Maximum response status (optional) |
System.Guid? | inboxId | Inbox ID (optional) |
System.Guid? | smsId | Sms ID (optional) |
System.Guid? | attachmentId | Attachment ID (optional) |
System.Guid? | emailId | Email ID (optional) |
System.Guid? | phoneId | Phone ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageWebhookResult>> | Task of ApiResponse (PageWebhookResult) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllWebhooksAsync(int?, int?, string, string, DateTime?, Guid?, Guid?, DateTime?, int, CancellationToken)
List Webhooks Paginated
Declaration
Task<PageWebhookProjection> GetAllWebhooksAsync(int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, Guid? inboxId = null, Guid? phoneId = 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 for paginated result list. (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
string | searchFilter | Optional search filter (optional) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
System.Guid? | inboxId | Filter by inboxId (optional) |
System.Guid? | phoneId | Filter by phoneId (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<PageWebhookProjection> | Task of PageWebhookProjection |
Remarks
List webhooks in paginated form. Allows for page index, page size, and sort direction.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllWebhooksWithHttpInfoAsync(int?, int?, string, string, DateTime?, Guid?, Guid?, DateTime?, int, CancellationToken)
List Webhooks Paginated
Declaration
Task<ApiResponse<PageWebhookProjection>> GetAllWebhooksWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, Guid? inboxId = null, Guid? phoneId = 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 for paginated result list. (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
string | searchFilter | Optional search filter (optional) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
System.Guid? | inboxId | Filter by inboxId (optional) |
System.Guid? | phoneId | Filter by phoneId (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<PageWebhookProjection>> | Task of ApiResponse (PageWebhookProjection) |
Remarks
List webhooks in paginated form. Allows for page index, page size, and sort direction.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxWebhooksPaginatedAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
Get paginated webhooks for an Inbox
Declaration
Task<PageWebhookProjection> GetInboxWebhooksPaginatedAsync(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 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 | 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<PageWebhookProjection> | Task of PageWebhookProjection |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetInboxWebhooksPaginatedWithHttpInfoAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, int, CancellationToken)
Get paginated webhooks for an Inbox
Declaration
Task<ApiResponse<PageWebhookProjection>> GetInboxWebhooksPaginatedWithHttpInfoAsync(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 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 | 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<PageWebhookProjection>> | Task of ApiResponse (PageWebhookProjection) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetJsonSchemaForWebhookEventAsync(string, int, CancellationToken)
Declaration
Task<JSONSchemaDto> GetJsonSchemaForWebhookEventAsync(string _event, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | _event | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<JSONSchemaDto> | Task of JSONSchemaDto |
Remarks
Get JSON Schema definition for webhook payload by event
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetJsonSchemaForWebhookEventWithHttpInfoAsync(string, int, CancellationToken)
Declaration
Task<ApiResponse<JSONSchemaDto>> GetJsonSchemaForWebhookEventWithHttpInfoAsync(string _event, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | _event | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<JSONSchemaDto>> | Task of ApiResponse (JSONSchemaDto) |
Remarks
Get JSON Schema definition for webhook payload by event
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetJsonSchemaForWebhookPayloadAsync(Guid, int, CancellationToken)
Declaration
Task<JSONSchemaDto> GetJsonSchemaForWebhookPayloadAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<JSONSchemaDto> | Task of JSONSchemaDto |
Remarks
Get JSON Schema definition for webhook payload
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetJsonSchemaForWebhookPayloadWithHttpInfoAsync(Guid, int, CancellationToken)
Declaration
Task<ApiResponse<JSONSchemaDto>> GetJsonSchemaForWebhookPayloadWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<JSONSchemaDto>> | Task of ApiResponse (JSONSchemaDto) |
Remarks
Get JSON Schema definition for webhook payload
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetPhoneNumberWebhooksPaginatedAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get paginated webhooks for a phone number
Declaration
Task<PageWebhookProjection> GetPhoneNumberWebhooksPaginatedAsync(Guid phoneId, 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 | phoneId | |
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) |
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<PageWebhookProjection> | Task of PageWebhookProjection |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetPhoneNumberWebhooksPaginatedWithHttpInfoAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get paginated webhooks for a phone number
Declaration
Task<ApiResponse<PageWebhookProjection>> GetPhoneNumberWebhooksPaginatedWithHttpInfoAsync(Guid phoneId, 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 | phoneId | |
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) |
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<PageWebhookProjection>> | Task of ApiResponse (PageWebhookProjection) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadAsync(string, int, CancellationToken)
Declaration
Task<AbstractWebhookPayload> GetTestWebhookPayloadAsync(string eventName = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | eventName | (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<AbstractWebhookPayload> | Task of AbstractWebhookPayload |
Remarks
Get test webhook payload example. Response content depends on eventName passed. Uses EMAIL_RECEIVED
as default.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadBounceAsync(int, CancellationToken)
Declaration
Task<WebhookBouncePayload> GetTestWebhookPayloadBounceAsync(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<WebhookBouncePayload> | Task of WebhookBouncePayload |
Remarks
Get webhook test payload for bounce
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadBounceRecipientAsync(int, CancellationToken)
Declaration
Task<WebhookBounceRecipientPayload> GetTestWebhookPayloadBounceRecipientAsync(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<WebhookBounceRecipientPayload> | Task of WebhookBounceRecipientPayload |
Remarks
Get webhook test payload for bounce recipient
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadBounceRecipientWithHttpInfoAsync(int, CancellationToken)
Declaration
Task<ApiResponse<WebhookBounceRecipientPayload>> GetTestWebhookPayloadBounceRecipientWithHttpInfoAsync(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<WebhookBounceRecipientPayload>> | Task of ApiResponse (WebhookBounceRecipientPayload) |
Remarks
Get webhook test payload for bounce recipient
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadBounceWithHttpInfoAsync(int, CancellationToken)
Declaration
Task<ApiResponse<WebhookBouncePayload>> GetTestWebhookPayloadBounceWithHttpInfoAsync(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<WebhookBouncePayload>> | Task of ApiResponse (WebhookBouncePayload) |
Remarks
Get webhook test payload for bounce
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadDeliveryStatusAsync(int, CancellationToken)
Get webhook test payload for delivery status event
Declaration
Task<WebhookDeliveryStatusPayload> GetTestWebhookPayloadDeliveryStatusAsync(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<WebhookDeliveryStatusPayload> | Task of WebhookDeliveryStatusPayload |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadDeliveryStatusWithHttpInfoAsync(int, CancellationToken)
Get webhook test payload for delivery status event
Declaration
Task<ApiResponse<WebhookDeliveryStatusPayload>> GetTestWebhookPayloadDeliveryStatusWithHttpInfoAsync(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<WebhookDeliveryStatusPayload>> | Task of ApiResponse (WebhookDeliveryStatusPayload) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadEmailOpenedAsync(int, CancellationToken)
Declaration
Task<WebhookEmailOpenedPayload> GetTestWebhookPayloadEmailOpenedAsync(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<WebhookEmailOpenedPayload> | Task of WebhookEmailOpenedPayload |
Remarks
Get webhook test payload for email opened event
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadEmailOpenedWithHttpInfoAsync(int, CancellationToken)
Declaration
Task<ApiResponse<WebhookEmailOpenedPayload>> GetTestWebhookPayloadEmailOpenedWithHttpInfoAsync(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<WebhookEmailOpenedPayload>> | Task of ApiResponse (WebhookEmailOpenedPayload) |
Remarks
Get webhook test payload for email opened event
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadEmailReadAsync(int, CancellationToken)
Declaration
Task<WebhookEmailReadPayload> GetTestWebhookPayloadEmailReadAsync(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<WebhookEmailReadPayload> | Task of WebhookEmailReadPayload |
Remarks
Get webhook test payload for email opened event
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadEmailReadWithHttpInfoAsync(int, CancellationToken)
Declaration
Task<ApiResponse<WebhookEmailReadPayload>> GetTestWebhookPayloadEmailReadWithHttpInfoAsync(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<WebhookEmailReadPayload>> | Task of ApiResponse (WebhookEmailReadPayload) |
Remarks
Get webhook test payload for email opened event
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadForWebhookAsync(Guid, int, CancellationToken)
Declaration
Task<AbstractWebhookPayload> GetTestWebhookPayloadForWebhookAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<AbstractWebhookPayload> | Task of AbstractWebhookPayload |
Remarks
Get example payload for webhook
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadForWebhookWithHttpInfoAsync(Guid, int, CancellationToken)
Declaration
Task<ApiResponse<AbstractWebhookPayload>> GetTestWebhookPayloadForWebhookWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<AbstractWebhookPayload>> | Task of ApiResponse (AbstractWebhookPayload) |
Remarks
Get example payload for webhook
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadNewAttachmentAsync(int, CancellationToken)
Get webhook test payload for new attachment event
Declaration
Task<WebhookNewAttachmentPayload> GetTestWebhookPayloadNewAttachmentAsync(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<WebhookNewAttachmentPayload> | Task of WebhookNewAttachmentPayload |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadNewAttachmentWithHttpInfoAsync(int, CancellationToken)
Get webhook test payload for new attachment event
Declaration
Task<ApiResponse<WebhookNewAttachmentPayload>> GetTestWebhookPayloadNewAttachmentWithHttpInfoAsync(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<WebhookNewAttachmentPayload>> | Task of ApiResponse (WebhookNewAttachmentPayload) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadNewContactAsync(int, CancellationToken)
Get webhook test payload for new contact event
Declaration
Task<WebhookNewContactPayload> GetTestWebhookPayloadNewContactAsync(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<WebhookNewContactPayload> | Task of WebhookNewContactPayload |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadNewContactWithHttpInfoAsync(int, CancellationToken)
Get webhook test payload for new contact event
Declaration
Task<ApiResponse<WebhookNewContactPayload>> GetTestWebhookPayloadNewContactWithHttpInfoAsync(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<WebhookNewContactPayload>> | Task of ApiResponse (WebhookNewContactPayload) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadNewEmailAsync(int, CancellationToken)
Get webhook test payload for new email event
Declaration
Task<WebhookNewEmailPayload> GetTestWebhookPayloadNewEmailAsync(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<WebhookNewEmailPayload> | Task of WebhookNewEmailPayload |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadNewEmailWithHttpInfoAsync(int, CancellationToken)
Get webhook test payload for new email event
Declaration
Task<ApiResponse<WebhookNewEmailPayload>> GetTestWebhookPayloadNewEmailWithHttpInfoAsync(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<WebhookNewEmailPayload>> | Task of ApiResponse (WebhookNewEmailPayload) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadNewSmsAsync(int, CancellationToken)
Get webhook test payload for new sms event
Declaration
Task<WebhookNewSmsPayload> GetTestWebhookPayloadNewSmsAsync(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<WebhookNewSmsPayload> | Task of WebhookNewSmsPayload |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadNewSmsWithHttpInfoAsync(int, CancellationToken)
Get webhook test payload for new sms event
Declaration
Task<ApiResponse<WebhookNewSmsPayload>> GetTestWebhookPayloadNewSmsWithHttpInfoAsync(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<WebhookNewSmsPayload>> | Task of ApiResponse (WebhookNewSmsPayload) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetTestWebhookPayloadWithHttpInfoAsync(string, int, CancellationToken)
Declaration
Task<ApiResponse<AbstractWebhookPayload>> GetTestWebhookPayloadWithHttpInfoAsync(string eventName = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | eventName | (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<AbstractWebhookPayload>> | Task of ApiResponse (AbstractWebhookPayload) |
Remarks
Get test webhook payload example. Response content depends on eventName passed. Uses EMAIL_RECEIVED
as default.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhookAsync(Guid, int, CancellationToken)
Get a webhook
Declaration
Task<WebhookDto> GetWebhookAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<WebhookDto> | Task of WebhookDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhookResultAsync(Guid, int, CancellationToken)
Get a webhook result for a webhook
Declaration
Task<WebhookResultDto> GetWebhookResultAsync(Guid webhookResultId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookResultId | Webhook Result ID |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<WebhookResultDto> | Task of WebhookResultDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhookResultsAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, bool?, string, string, int?, int?, Guid?, Guid?, Guid?, Guid?, Guid?, int, CancellationToken)
Get a webhook results for a webhook
Declaration
Task<PageWebhookResult> GetWebhookResultsAsync(Guid webhookId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, bool? unseenOnly = null, string resultType = null, string eventName = null, int? minStatusCode = null, int? maxStatusCode = null, Guid? inboxId = null, Guid? smsId = null, Guid? attachmentId = null, Guid? emailId = null, Guid? phoneId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | ID of webhook to get results for |
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 | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
bool? | unseenOnly | Filter for unseen exceptions only (optional) |
string | resultType | Filter by result type (optional) |
string | eventName | Filter by event name (optional) |
int? | minStatusCode | Minimum response status (optional) |
int? | maxStatusCode | Maximum response status (optional) |
System.Guid? | inboxId | Inbox ID (optional) |
System.Guid? | smsId | Sms ID (optional) |
System.Guid? | attachmentId | Attachment ID (optional) |
System.Guid? | emailId | Email ID (optional) |
System.Guid? | phoneId | Phone ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageWebhookResult> | Task of PageWebhookResult |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhookResultsCountAsync(Guid, int, CancellationToken)
Get a webhook results count for a webhook
Declaration
Task<CountDto> GetWebhookResultsCountAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | ID of webhook to get results for |
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 |
GetWebhookResultsCountWithHttpInfoAsync(Guid, int, CancellationToken)
Get a webhook results count for a webhook
Declaration
Task<ApiResponse<CountDto>> GetWebhookResultsCountWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | ID of webhook to get results for |
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 |
GetWebhookResultsUnseenErrorCountAsync(int, CancellationToken)
Get count of unseen webhook results with error status
Declaration
Task<UnseenErrorCountDto> GetWebhookResultsUnseenErrorCountAsync(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<UnseenErrorCountDto> | Task of UnseenErrorCountDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhookResultsUnseenErrorCountWithHttpInfoAsync(int, CancellationToken)
Get count of unseen webhook results with error status
Declaration
Task<ApiResponse<UnseenErrorCountDto>> GetWebhookResultsUnseenErrorCountWithHttpInfoAsync(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<UnseenErrorCountDto>> | Task of ApiResponse (UnseenErrorCountDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhookResultsWithHttpInfoAsync(Guid, int?, int?, string, string, DateTime?, DateTime?, bool?, string, string, int?, int?, Guid?, Guid?, Guid?, Guid?, Guid?, int, CancellationToken)
Get a webhook results for a webhook
Declaration
Task<ApiResponse<PageWebhookResult>> GetWebhookResultsWithHttpInfoAsync(Guid webhookId, int? page = null, int? size = null, string sort = null, string searchFilter = null, DateTime? since = null, DateTime? before = null, bool? unseenOnly = null, string resultType = null, string eventName = null, int? minStatusCode = null, int? maxStatusCode = null, Guid? inboxId = null, Guid? smsId = null, Guid? attachmentId = null, Guid? emailId = null, Guid? phoneId = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | ID of webhook to get results for |
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 | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
bool? | unseenOnly | Filter for unseen exceptions only (optional) |
string | resultType | Filter by result type (optional) |
string | eventName | Filter by event name (optional) |
int? | minStatusCode | Minimum response status (optional) |
int? | maxStatusCode | Maximum response status (optional) |
System.Guid? | inboxId | Inbox ID (optional) |
System.Guid? | smsId | Sms ID (optional) |
System.Guid? | attachmentId | Attachment ID (optional) |
System.Guid? | emailId | Email ID (optional) |
System.Guid? | phoneId | Phone ID (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageWebhookResult>> | Task of ApiResponse (PageWebhookResult) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhookResultWithHttpInfoAsync(Guid, int, CancellationToken)
Get a webhook result for a webhook
Declaration
Task<ApiResponse<WebhookResultDto>> GetWebhookResultWithHttpInfoAsync(Guid webhookResultId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookResultId | Webhook Result ID |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<WebhookResultDto>> | Task of ApiResponse (WebhookResultDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhooksAsync(Guid, int, CancellationToken)
Get all webhooks for an Inbox
Declaration
[Obsolete]
Task<List<WebhookDto>> GetWebhooksAsync(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<System.Collections.Generic.List<T><WebhookDto>> | Task of List<WebhookDto> |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhooksWithHttpInfoAsync(Guid, int, CancellationToken)
Get all webhooks for an Inbox
Declaration
[Obsolete]
Task<ApiResponse<List<WebhookDto>>> GetWebhooksWithHttpInfoAsync(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<System.Collections.Generic.List<T><WebhookDto>>> | Task of ApiResponse (List<WebhookDto>) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetWebhookWithHttpInfoAsync(Guid, int, CancellationToken)
Get a webhook
Declaration
Task<ApiResponse<WebhookDto>> GetWebhookWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<WebhookDto>> | Task of ApiResponse (WebhookDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
RedriveAllWebhookResultsAsync(int, CancellationToken)
Redrive all webhook results that have failed status
Declaration
Task<WebhookRedriveAllResult> RedriveAllWebhookResultsAsync(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<WebhookRedriveAllResult> | Task of WebhookRedriveAllResult |
Remarks
Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
RedriveAllWebhookResultsWithHttpInfoAsync(int, CancellationToken)
Redrive all webhook results that have failed status
Declaration
Task<ApiResponse<WebhookRedriveAllResult>> RedriveAllWebhookResultsWithHttpInfoAsync(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<WebhookRedriveAllResult>> | Task of ApiResponse (WebhookRedriveAllResult) |
Remarks
Allows you to resend webhook payloads for any recorded webhook result that failed to deliver the payload.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
RedriveWebhookResultAsync(Guid, int, CancellationToken)
Get a webhook result and try to resend the original webhook payload
Declaration
Task<WebhookRedriveResult> RedriveWebhookResultAsync(Guid webhookResultId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookResultId | Webhook Result ID |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<WebhookRedriveResult> | Task of WebhookRedriveResult |
Remarks
Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
RedriveWebhookResultWithHttpInfoAsync(Guid, int, CancellationToken)
Get a webhook result and try to resend the original webhook payload
Declaration
Task<ApiResponse<WebhookRedriveResult>> RedriveWebhookResultWithHttpInfoAsync(Guid webhookResultId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookResultId | Webhook Result ID |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<WebhookRedriveResult>> | Task of ApiResponse (WebhookRedriveResult) |
Remarks
Allows you to resend a webhook payload that was already sent. Webhooks that fail are retried automatically for 24 hours and then put in a dead letter queue. You can retry results manually using this method.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendTestDataAsync(Guid, int, CancellationToken)
Send webhook test data
Declaration
Task<WebhookTestResult> SendTestDataAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<WebhookTestResult> | Task of WebhookTestResult |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SendTestDataWithHttpInfoAsync(Guid, int, CancellationToken)
Send webhook test data
Declaration
Task<ApiResponse<WebhookTestResult>> SendTestDataWithHttpInfoAsync(Guid webhookId, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<WebhookTestResult>> | Task of ApiResponse (WebhookTestResult) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateWebhookHeadersAsync(Guid, WebhookHeaders, int, CancellationToken)
Update a webhook request headers
Declaration
Task<WebhookDto> UpdateWebhookHeadersAsync(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
WebhookHeaders | webhookHeaders | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<WebhookDto> | Task of WebhookDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateWebhookHeadersWithHttpInfoAsync(Guid, WebhookHeaders, int, CancellationToken)
Update a webhook request headers
Declaration
Task<ApiResponse<WebhookDto>> UpdateWebhookHeadersWithHttpInfoAsync(Guid webhookId, WebhookHeaders webhookHeaders, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | |
WebhookHeaders | webhookHeaders | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<WebhookDto>> | Task of ApiResponse (WebhookDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
VerifyWebhookSignatureAsync(VerifyWebhookSignatureOptions, int, CancellationToken)
Verify a webhook payload signature
Declaration
Task<VerifyWebhookSignatureResults> VerifyWebhookSignatureAsync(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
VerifyWebhookSignatureOptions | verifyWebhookSignatureOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<VerifyWebhookSignatureResults> | Task of VerifyWebhookSignatureResults |
Remarks
Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
VerifyWebhookSignatureWithHttpInfoAsync(VerifyWebhookSignatureOptions, int, CancellationToken)
Verify a webhook payload signature
Declaration
Task<ApiResponse<VerifyWebhookSignatureResults>> VerifyWebhookSignatureWithHttpInfoAsync(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
VerifyWebhookSignatureOptions | verifyWebhookSignatureOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<VerifyWebhookSignatureResults>> | Task of ApiResponse (VerifyWebhookSignatureResults) |
Remarks
Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
WaitForWebhookResultsAsync(Guid, int, int, int, CancellationToken)
Wait for webhook results for a webhook
Declaration
Task<List<WebhookResultDto>> WaitForWebhookResultsAsync(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | ID of webhook to get results for |
int | expectedCount | Expected result count |
int | timeout | Max time to wait in milliseconds |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<System.Collections.Generic.List<T><WebhookResultDto>> | Task of List<WebhookResultDto> |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
WaitForWebhookResultsWithHttpInfoAsync(Guid, int, int, int, CancellationToken)
Wait for webhook results for a webhook
Declaration
Task<ApiResponse<List<WebhookResultDto>>> WaitForWebhookResultsWithHttpInfoAsync(Guid webhookId, int expectedCount, int timeout, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | webhookId | ID of webhook to get results for |
int | expectedCount | Expected result count |
int | timeout | Max time to wait in milliseconds |
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><WebhookResultDto>>> | Task of ApiResponse (List<WebhookResultDto>) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |