---
title: "Update Webhook"
method: PATCH
path: "/v0/webhooks/{webhook_id}"
tags: ["Webhooks"]
---

# Update Webhook

`PATCH /v0/webhooks/{webhook_id}`

Update inbox or pod subscriptions, or replace the webhook's `event_types` in full when you pass a
non-empty `event_types` array (see request field docs). Inbox and pod changes use add/remove lists.

**CLI:**
```bash
agentmail webhooks update --webhook-id <webhook_id> --add-inbox-id <inbox_id>
```

## Path parameters

- `webhook_id` string, required — ID of webhook.

## Request body

- WebhooksUpdateWebhookRequest — Update an inbox-scoped webhook. It is fixed to its inbox, so only `event_types` can change.
  - `event_types` EventType[] — Event types for which to send events.

## Response `200`

- WebhooksWebhook
  - `webhook_id` string, required — ID of webhook.
  - `url` string, required — URL of webhook endpoint.
  - `event_types` EventType[] — Event types for which to send events.
  - `pod_ids` string[] — Pods for which to send events. Maximum 10 per webhook.
  - `inbox_ids` string[] — Inboxes for which to send events. Maximum 10 per webhook.
  - `secret` string, required — Secret for webhook signature verification.
  - `enabled` boolean, required — Webhook is enabled.
  - `updated_at` string, date-time, required — Time at which webhook was last updated.
  - `created_at` string, date-time, required — Time at which webhook was created.
  - `client_id` string — Client ID of webhook.

## Other responses

- `400`
- `404`

## Changes

- **2026-07-15** `394ddcdd9c29` — 1 breaking, 3 warning, 7 info
  - added `#/components/schemas/webhooksUpdatePodWebhookRequest` to the request body `allOf` list
  - removed the request property `add_inbox_ids`
  - removed the request property `event_types`
  - removed the request property `remove_inbox_ids`
  - …7 more
- **2026-05-14** `3ffafec2d29e` — 1 info
  - added the new optional request property `event_types`
- **2026-05-01** `ce126eb1243c` — 1 warning
  - added the new `message.received.unauthenticated` enum value to the `event_types/items/` response property for the response status `200`
- **2026-04-08** `69e3767c5ada` — 2 warning
  - added the new `message.received.blocked` enum value to the `event_types/items/` response property for the response status `200`
  - added the new `message.received.spam` enum value to the `event_types/items/` response property for the response status `200`

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/webhooks/:webhook_id/patch.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/394ddcdd9c29/schema)
