SeatBuilderSeatBuilder Docs

Rotate a webhook signing secret

Generates a new HMAC-SHA256 signing secret and returns it ONCE. Update your verification code with the new secret before the next delivery — the old secret is invalidated immediately. Use this after a suspected secret leak or as part of routine rotation.

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

Path Parameters

idstring

Response Body

curl -X POST "http://localhost:3000/api/v1/webhooks/string/rotate-secret"

{
  "id": "wh_2a8f1d",
  "secret": "whsec_b9d4e7a2c0f6815f3a4d8b9e2c5f1d7a",
  "rotatedAt": "2026-09-22T08:30:00.000Z"
}
{
  "statusCode": 0,
  "message": "string",
  "errors": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  }
}
{
  "statusCode": 0,
  "message": "string",
  "errors": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  }
}
{
  "statusCode": 0,
  "message": "string",
  "errors": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  }
}