---
title: "Rotate a webhook’s signing secret"
method: POST
path: "/v1/webhooks/{id}/rotate-secret"
tags: ["Webhooks"]
---

# Rotate a webhook’s signing secret

`POST /v1/webhooks/{id}/rotate-secret`

## Request

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

`{ secret? }`: replaces the signing secret with yours (16–256 characters) or a generated one, and returns it once. See [Rotate the secret](https://agentboxd.com/docs/webhooks#rotate-the-secret).

Permission: `webhooks:manage`.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `secret` string

## Response `200`

OK

- object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

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