curl --location --request PATCH 'https://api.zapmail.ai/api/v2/webhooks/endpoints/' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://example.com/webhooks/zapmail",
"enabled_events": [
"domain.updated",
"mailbox.updated",
"export.failed"
],
"status": "active"
}'{
"status": 200,
"message": "Webhook endpoint updated",
"data": {
"id": "b3e2f9a0-6d1c-4e8a-9f2b-1a2c3d4e5f60",
"url": "https://example.com/webhooks/zapmail",
"enabled_events": [
"domain.updated",
"mailbox.updated",
"export.completed"
],
"status": "active",
"created_at": "2026-08-14T10:32:11.000Z",
"updated_at": "2026-09-09T09:12:44.000Z"
}
}