Interface WebhookDto

Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://api.mailslurp.com/schemas/webhook-payload for the payload schema.

Export

Interface

WebhookDto

Hierarchy

  • WebhookDto

Properties

basicAuth: boolean

Does webhook expect basic authentication? If true it means you created this webhook with a username and password. MailSlurp will use these in the URL to authenticate itself.

Memberof

WebhookDto

createdAt: Date

When the webhook was created

Memberof

WebhookDto

Webhook trigger event name

Memberof

WebhookDto

id: string

ID of the Webhook

Memberof

WebhookDto

ignoreInsecureSslCertificates?: boolean

Should notifier ignore insecure SSL certificates

Memberof

WebhookDto

inboxId?: string

The inbox that the Webhook will be triggered by. If null then webhook triggered at account level or phone level if phoneId set

Memberof

WebhookDto

HTTP method that your server endpoint must listen for

Memberof

WebhookDto

name?: string

Name of the webhook

Memberof

WebhookDto

payloadJsonSchema: string

Deprecated. Fetch JSON Schema for webhook using the getJsonSchemaForWebhookPayload method

Memberof

WebhookDto

phoneId?: string

The phoneNumberId that the Webhook will be triggered by. If null then webhook triggered at account level or inbox level if inboxId set

Memberof

WebhookDto

requestBodyTemplate?: string

Request body template for HTTP request that will be sent for the webhook. Use Moustache style template variables to insert values from the original event payload.

Memberof

WebhookDto

requestHeaders?: WebhookHeaders

Memberof

WebhookDto

updatedAt: Date

Memberof

WebhookDto

url: string

URL of your server that the webhook will be sent to. The schema of the JSON that is sent is described by the payloadJsonSchema.

Memberof

WebhookDto

useStaticIpRange?: boolean

Should notifier use static IP range when sending webhook payload

Memberof

WebhookDto

userId: string

User ID of the Webhook

Memberof

WebhookDto