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

## Request

- Base URL: `https://api.telnyx.com/v2`
- URL: `https://api.telnyx.com/v2/email_domains/{domain_id}/webhooks/{id}`
- Auth: HTTP bearer

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
  - `url` string, uri
  - `events` EmailWebhookEvent[]

## Response `200`

Email webhook updated

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

## Other responses

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

## Changes

- **2026-10-15** `a72569d69430`: 1 info
  - endpoint added

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

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api.md) - [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/team-telnyx/apis/telnyx-api/revisions/0f17b8167873?raw)
