MailSlurpAPI.Api.WebhookController.create_webhook

You're seeing just the function create_webhook, go back to MailSlurpAPI.Api.WebhookController module for more information.
Link to this function

create_webhook(connection, inbox_id, webhook_options, opts \\ [])

Specs

Attach a WebHook URL to an inbox 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.

Parameters

  • connection (MailSlurpAPI.Connection): Connection to server
  • inbox_id (String.t): inboxId
  • webhook_options (CreateWebhookOptions): webhookOptions
  • opts (KeywordList): [optional] Optional parameters

    Returns

} on success {:error, info} on failure