---
title: "Rotate a webhook endpoint's signing secret"
method: POST
path: "/api/v1/webhook-endpoints/{endpointId}/rotate-secret"
tags: ["Webhook endpoints"]
---

# Rotate a webhook endpoint's signing secret

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

## Request

- Base URL: `https://app.dodomain.io`
- URL: `https://app.dodomain.io/api/v1/webhook-endpoints/{endpointId}/rotate-secret`
- Auth: HTTP bearer

Mints a new signing secret and returns it **once**. A verb sub-path rather than a field on PATCH — mirroring `POST /api/v1/connections/{connectionId}/reverify` — because rotation is an ACTION with a once-only result, not a property you can idempotently PUT; that also keeps the show-once secret out of every ordinary update response. **IMMEDIATE CUTOVER, no dual-secret window:** the worker reads the secret live at delivery time, so signatures switch at once, including retries of deliveries created before the rotation. Deploy the new secret to your receiver promptly.

## Path parameters

- `endpointId` string, required

## Headers

- `DoDomain-Team` string

## Response `200`

Success.

- WebhookEndpointSecretResponse
  - `appId` string, required
  - `createdAt` string, date-time, required
  - `id` string, required
  - `pausedAt` string, date-time, nullable, required
  - `secret` string, required
  - `url` string, required

## Other responses

- `401`: `401 unauthorized` — No `Authorization: Bearer` header, or the credential is malformed, unknown, or (for OAuth tokens) fails verification.
- `403`: `403 forbidden` — The OAuth access token was not granted the scope this operation requires. `details.code` is `SCOPE_MISSING` and `details.requiredScope` names the scope. Secret keys (`dd_sk_`) carry no scopes and never see this for a missing scope. The one-click start routes also answer it for a session created without one-click (a Free-plan team's session): no `details`, and the end user falls back to the manual records.
- `404`: `404 not_found` — The addressed resource does not exist, or the caller does not own it — the two collapse to one status on purpose, so an id cannot be enumerated by a caller who does not own it.
- `429`: `429 rate_limited` — Rate limited. `Retry-After` (seconds) is set and `details.retryAfterSeconds` repeats it. Branch on `details.reason`: `request_rate` means the caller is calling too fast (`details.limit` carries the cap), `recently_checked` means this one connection was DNS-checked inside its cooldown.
- `500`: `500 internal` — An unhandled server-side failure. Reported to our error tracker; safe to retry.

---

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