Set or replace the domain's dedicated tracking-event webhook: an HTTPS endpoint that receives signed email.* engagement events (email.sent / email.bounced / email.complained / email.opened / email.clicked, shaped per the tracking-event schema) SEPARATELY from inbound mail. This is the split-endpoint override for consumers that keep engagement events away from their inbound webhook (e.g. django-anymail's paired views); most consumers should prefer setWebhookEvents, which delivers everything to the one inbound webhook. When both are configured, this URL wins for engagement events. Returns the signing secret (the same account secret as inbound deliveries).
HTTP: PUT /api/domains/{id}/tracking-webhook
| Field | Type | Required | Description |
|---|---|---|---|
url |
string | ✓ | HTTPS endpoint to receive signed email.* engagement events… |
set-tracking-webhook-response — see the set-tracking-webhook-response schema.
res = mk.setTrackingWebhook({
"id": "dom_1",
"url": "https://app.com/hooks/mailkite-events",
})