---
search:
  tags:
    - Webhook endpoints
    - POST
seo:
  description: >-
    Mints a new whsec_ and returns it once. The old… Reference for the POST
    /webhook-endpoints/{endpointId}/rotate-secret endpoint in the TipPage
    Developer API.
sidebar:
  label: Rotate the signing secret
  badge: POST
title: Rotate the signing secret
type: openapi-operation
---
Mints a new `whsec_` and returns it once. The old secret stops validating immediately. Requires `webhooks:manage`.

`POST /webhook-endpoints/{endpointId}/rotate-secret`

**Responses**

- `200` — The new secret - shown only here.
- `401` — Missing or invalid credential (\`missing\_api\_key\` / \`invalid\_api\_key\`, or \`invalid\_token\` for an expired/revoked OAuth access token).
- `403` — The key lacks the required scope (\`missing\_scope\`).
- `404` — No such resource.
- `429` — Rate limit exceeded - check the \`RateLimit-\*\` headers.

Response example, 200:

```json
{
  "secret": "whsec_1a2b3c..."
}
```
