{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-webhook-rotate-secret-out-schema.json",
  "title": "WebhookRotateSecretOut",
  "description": "Response from ``POST /webhooks/{id}/rotate-secret``.\n\nReturns the NEW secret in plaintext — once. Callers must capture\nit on this response; the API has no read-back endpoint and the\nold secret is invalidated immediately. The webhook itself\n(URL, event subscriptions) is untouched.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-webhooks-api-openapi.yml#/components/schemas/WebhookRotateSecretOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "secret": {
      "type": "string",
      "title": "Secret"
    },
    "rotated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Rotated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "secret",
    "rotated_at"
  ]
}