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:
- Generate a webhook URL
- Generate a signing key
- 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
- 200
- default
A successful response.
An unexpected error response.