Skip to main content

ConfigureWebhook sets up or updates webhook configuration.

POST 

/api/v1/engagements/integrations/email/:channelConfigId/webhook

Configures the webhook endpoint for receiving inbound emails. Can optionally auto-configure the webhook in Mailgun.

Auto-Configure

When auto_configure is true, the service will:

  1. Generate a webhook URL
  2. Generate a signing key
  3. Configure the webhook in Mailgun

Manual Configure

When auto_configure is false, provide custom_webhook_url. You must manually configure the webhook in Mailgun.

Errors

  • NOT_FOUND: Configuration does not exist
  • FAILED_PRECONDITION: Domain not verified

Request

Responses

A successful response.