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

# Update Webhook

`PATCH /v0/webhooks/{webhook_id}`

**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
  - `add_inbox_ids` string[] — Inboxes for which to send events. Maximum 10 per webhook.
  - `remove_inbox_ids` string[] — Inboxes for which to send events. Maximum 10 per webhook.
  - `add_pod_ids` string[] — Pods for which to send events. Maximum 10 per webhook.
  - `remove_pod_ids` string[] — Pods for which to send events. Maximum 10 per webhook.

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

---

[API](https://skmtc.net/agentmail-to/apis/api-2.md) · [All operations](https://skmtc.net/agentmail-to/apis/api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentmail-to/api-2/revisions/869b7f1c360c/schema)
