---
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

---

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