---
title: "Update a webhook endpoint"
method: PATCH
path: "/inbox/webhook/endpoints/{endpointId}"
tags: ["inbox"]
---

# Update a webhook endpoint

`PATCH /inbox/webhook/endpoints/{endpointId}`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/inbox/webhook/endpoints/{endpointId}`
- Auth: HTTP bearer

Omitted fields keep their current values. Use either signingSecret or rotateSecret; a generated secret is returned only once.

## Path parameters

- `endpointId` string, required: Webhook endpoint ID

## Request body

- object
  - `url` string
  - `active` boolean
  - `bodyFormat` string: text / html / markdown
  - `stripQuotes` boolean
  - `signingSecret` string
  - `rotateSecret` boolean

## Response `200`

Updated

- object
  - `success` boolean, required
  - `endpoint` object, required
  - `signingSecret` string

## Other responses

- `400`: Invalid configuration
- `401`: Missing or invalid API key
- `404`: Resource not found
- `409`: Duplicate url for this address
- `500`: Server error

---

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