---
title: "Update a webhook"
method: PATCH
path: "/email_domains/{domain_id}/webhooks/{id}"
tags: ["Email Webhooks"]
---

# Update a webhook

`PATCH /email_domains/{domain_id}/webhooks/{id}`

Update a webhook's URL and/or event subscription. A webhook is bound to its domain — `domain_id` is not mutable.

## Path parameters

- `domain_id` string, uuid, required
- `id` string, uuid, required

## Request body

- UpdateEmailWebhookRequest
  - `events` EmailWebhookEvent[]
  - `url` string, uri

## Response `200`

Email webhook updated

- EmailWebhookResponse
  - `data` EmailWebhook, required
    - `created_at` string, date-time, required
    - `domain_id` string, uuid, required
    - `events` EmailWebhookEvent[], required — Allowlist of event types delivered to this webhook. At least one event is required — there is no default-to-all.
    - `id` string, uuid, required
    - `record_type` 'email_webhook', required
    - `updated_at` string, date-time, required
    - `url` string, uri, required — HTTPS endpoint to deliver subscribed events to.

## Other responses

- `404` — Resource not found
- `422` — Validation failed
- `500` — Internal server error

## Changes

- **2026-07-07** `6ef0ae248bf7` — 1 info
  - endpoint added
- **2026-07-02** `224ed0d8a5c3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/changes/email_domains/:domain_id/webhooks/:id/patch.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/3fdc16374d70/schema)
