- Home
- API reference
- Webhooks
- Rotate an endpoint secret
Rotate an endpoint secret
Creates a new signing secret. The previous secret remains valid for one day.
POST
/v1/webhook-endpoints/{id}/rotate-secretRequires
webhooks:write permission.Path parameters
Section titled “Path parameters”idstringrequiredThe id of the endpoint (whk_…).
Example: whk_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with whk_.
Response (200)
Section titled “Response (200)”dataobjectrequiredThe returned object, or an array of objects for a list.
secretstringrequiredThe signing secret, whsec_…. It is in this answer only: store it now.
Example: whsec_k3f9…
previous_secret_retires_atstringrequiredWhen the replaced secret stops signing, a day after the rotation.
Example: 2026-10-26T03:04:05.000Z
Format: date-time
metaobjectrequiredRequest details such as its id and pagination cursor.
request_idstringrequiredThe id of this request. Quote it when you ask support about it.
Example: req_Hy3k9QzT2LmN8vXa
A failed request answers with the common error shape; see Errors.