Webhooks

Rotate webhook signing secret

Generate a fresh signing secret. Returned exactly once. Subsequent deliveries are signed with the new secret only — update your receiver before the next event lands.

post/api/orgs/{slug}/webhooks/{id}/rotate-secret

Request

  • Base URL
    https://trydock.ai
  • Auth
    HTTP bearer

Path parameters

slugstring required
idstring required

Response

Rotated.

Example response

{
  "webhook": {
    "id": "wh_01J5Z…",
    "secretPreview": "whsec_a1…",
    "secret": "whsec_…"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.