{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/circleci/main/json-schema/circleci-webhook-list-schema.json",
  "title": "WebhookList",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/circleci-webhook-api-openapi.yml#/components/schemas/WebhookList",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookInfo"
      },
      "description": "List of webhooks"
    },
    "next_page_token": {
      "type": "string",
      "description": "Token for retrieving the next page"
    }
  },
  "$defs": {
    "WebhookInfo": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The unique identifier of the webhook"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The URL the webhook delivers to"
        },
        "name": {
          "type": "string",
          "description": "The name of the webhook"
        },
        "events": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "workflow-completed",
              "job-completed"
            ]
          },
          "description": "The events this webhook subscribes to"
        },
        "scope": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid",
              "description": "The scope ID"
            },
            "type": {
              "type": "string",
              "description": "The scope type"
            }
          },
          "description": "The scope of the webhook"
        },
        "signing-secret": {
          "type": "string",
          "description": "The signing secret for verifying webhook payloads"
        },
        "verify-tls": {
          "type": "boolean",
          "description": "Whether to verify TLS certificates"
        },
        "created-at": {
          "type": "string",
          "format": "date-time",
          "description": "When the webhook was created"
        },
        "updated-at": {
          "type": "string",
          "format": "date-time",
          "description": "When the webhook was last updated"
        }
      }
    }
  }
}