---
title: "Update a webhook subscription"
method: PATCH
path: "/webhooks/{id}"
tags: ["Webhooks"]
---

# Update a webhook subscription

`PATCH /webhooks/{id}`

## Request

- Base URL: `https://api.tinysend.com/v1`
- URL: `https://api.tinysend.com/v1/webhooks/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `url` string, uri
  - `events` string[]
  - `status` 'active' | 'paused'

## Response `200`

Updated webhook

- WebhookDetail
  - `id` string, required
  - `url` string, required
  - `events` string[], required
  - `secret` string, required: Masked HMAC secret (only shown in full on creation)
  - `status` string, required
  - `consecutive_failures` integer, required
  - `disabled_at` string, nullable, required
  - `disabled_reason` string, nullable, required
  - `last_delivered_at` string, nullable, required
  - `last_failed_at` string, nullable, required
  - `created_at` string, required

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/tinysend/apis/tinysend-api.md) · [All operations](https://skmtc.dev/tinysend/apis/tinysend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tinysend/apis/tinysend-api/revisions/2dc68ac83332?raw)
