MailSlurp JS

Globals / CreateWebhookOptions

# Interface: CreateWebhookOptions

Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the inbox receives an email. Webhooks are great for processing many inbound emails.


interface CreateWebhookOptions

# Hierarchy

  • CreateWebhookOptions

# Index

# Properties

# Properties

# basicAuth

Optional basicAuth: BasicAuthOptions

Defined in src/generated/api.ts:683 (opens new window)

Optional basic authentication that MailSlurp should use when calling the URL. For instance if your URL is then basic auth will call a URL like https://{username}@{password}

memberof CreateWebhookOptions

# name

Optional name: string

Defined in src/generated/api.ts:689 (opens new window)

Optional name for the webhook

memberof CreateWebhookOptions

# url

Optional url: string

Defined in src/generated/api.ts:695 (opens new window)

Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received. The payload of the submitted JSON is described by

memberof CreateWebhookOptions