# Update webhook

`webhooks_update`

Changes the address, the events or whether an endpoint is switched on.

Needs the scope: `webhooks:write`

## Arguments

- `id` (string, required): The id of the item. Up to 64 characters.
- `url` (string): A new address. Up to 500 characters.
- `events` (string[]): The events to be told about from now on. One of: `email.sent`, `email.delivered`, `email.delayed`, `email.bounced`, `email.opened`, `email.clicked`, `email.complained`, `email.failed`, `email.received`, `email.scheduled`, `email.canceled`, `automation.entered`, `automation.finished`, `automation.step`.
- `status` (string): `enabled` to post events, `disabled` to stop. One of: `enabled`, `disabled`.
- `format` (string): `native` or `resend`: how events are written and signed from now on. One of: `native`, `resend`.

## Returns

The answer comes back under `structuredContent`, with the same JSON as text in `content`. A call the API refuses comes back with `isError` set, and the code and the message under `structuredContent.error`. [MCP](https://opensend.sh/docs/mcp) shows how to connect a client.

- `object` ("webhook"): Always `webhook`.
- `id` (string): The id of the webhook.
- `url` (string): The address events are posted to.
- `events` (string[]): The events it is told about. One of: `email.sent`, `email.delivered`, `email.delayed`, `email.bounced`, `email.opened`, `email.clicked`, `email.complained`, `email.failed`, `email.received`, `email.scheduled`, `email.canceled`, `automation.entered`, `automation.finished`, `automation.step`.
- `status` (string): `enabled` while events are posted to it, `disabled` when it is switched off. One of: `enabled`, `disabled`.
- `format` (string): How an event is written and signed: `native` is this API, `resend` is the headers, signature and body an endpoint built for Resend expects. One of: `native`, `resend`.
- `lastDeliveryAt` (string | null): When an event was last posted to it, or `null`.
- `lastStatus` (integer | null): The HTTP status your address answered with last time, or `null`.
- `createdAt` (string): When the webhook was added.

## Example

MCP:

```json
{
  "name": "webhooks_update",
  "arguments": {
    "id": "wh_01",
    "status": "disabled"
  }
}
```

Answer, under structuredContent:

```json
{
  "object": "webhook",
  "id": "wh_01",
  "url": "https://example.com/webhooks/mail",
  "events": [
    "email.sent",
    "email.delivered",
    "email.delayed",
    "email.bounced",
    "email.opened",
    "email.clicked",
    "email.complained",
    "email.failed",
    "email.received",
    "email.scheduled",
    "email.canceled",
    "automation.entered",
    "automation.finished",
    "automation.step"
  ],
  "status": "disabled",
  "format": "native",
  "lastDeliveryAt": "2026-11-27T09:30:00.000Z",
  "lastStatus": 200,
  "createdAt": "2026-11-27T09:30:00.000Z"
}
```
