Skip to content

Delete domain webhooks (v4)

Request

Delete webhook URLs from all event types they are associated with. Supports deleting multiple URLs at once by repeating the url query parameter.

Security
basicAuth
Path
domainstringrequired

The domain name to delete webhooks from

Query
urlArray of strings, (uri)required

The webhook URL to delete. The URL is removed from all event types it's associated with. To delete multiple URLs in one request, repeat the parameter (e.g., ?url=https://a.example&url=https://b.example).

curl -i -X DELETE \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v4/domains/{domain}/webhooks?url=http%3A%2F%2Fexample.com'

Responses

A 200 response

Bodyapplication/json
webhooksobject(github.com-mailgun-domains-httpapi-WebhooksResponse)required

List of webhooks

Response
{ "webhooks": { "delivered": {}, "clicked": {} } }