{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agilehero-io/json-schema/agilehero-io-webhook-endpoint-schema.json",
  "title": "WebhookEndpoint",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agilehero-io-openapi.yml#/components/schemas/WebhookEndpoint",
  "type": "object",
  "required": [
    "id",
    "url",
    "description",
    "event_types",
    "project_ids",
    "status",
    "disabled_reason",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "event_types": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Empty = every event type."
    },
    "project_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Empty = every project."
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "disabled"
      ]
    },
    "disabled_reason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "admin",
        "failures",
        "gone"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "secret": {
      "type": "string",
      "description": "The `whsec_...` signing secret — only in the response that created the endpoint."
    }
  }
}