{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-video/json-schema/api-video-webhooks-list-response-schema.json",
  "title": "Webhooks",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-video-webhooks-api-openapi.yml#/components/schemas/webhooks-list-response",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/webhook"
      }
    },
    "pagination": {
      "$ref": "#/$defs/pagination"
    }
  },
  "required": [
    "data",
    "pagination"
  ],
  "$defs": {
    "pagination": {
      "title": "Pagination",
      "required": [
        "links"
      ],
      "type": "object",
      "properties": {
        "itemsTotal": {
          "type": "integer",
          "description": "Total number of items that exist.",
          "readOnly": true
        },
        "pagesTotal": {
          "type": "integer",
          "description": "Number of items listed in the current page.",
          "readOnly": true
        },
        "pageSize": {
          "type": "integer",
          "description": "Maximum number of item per page.",
          "readOnly": true
        },
        "currentPage": {
          "type": "integer",
          "description": "The current page index.",
          "readOnly": true
        },
        "currentPageItems": {
          "type": "integer",
          "description": "The number of items on the current page.",
          "readOnly": true
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/pagination-link"
          }
        }
      }
    },
    "pagination-link": {
      "title": "PaginationLink",
      "type": "object",
      "properties": {
        "rel": {
          "type": "string"
        },
        "uri": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "webhook": {
      "title": "Webhook",
      "type": "object",
      "properties": {
        "webhookId": {
          "type": "string",
          "description": "A unique identifier of the webhook you subscribed to."
        },
        "createdAt": {
          "type": "string",
          "description": "The time and date when you created this webhook subscription, in ATOM UTC format.",
          "format": "date-time"
        },
        "events": {
          "type": "array",
          "description": "A list of events that you subscribed to. When these events occur, the API triggers a webhook call to the URL you provided.",
          "items": {
            "type": "string",
            "enum": [
              "live-stream.broadcast.started",
              "live-stream.broadcast.ended",
              "video.source.recorded",
              "video.encoding.quality.completed",
              "video.caption.generated",
              "video.summary.generated"
            ]
          }
        },
        "url": {
          "type": "string",
          "description": "The URL where the API sends the webhook."
        },
        "signatureSecret": {
          "type": "string",
          "description": "A secret key for the webhook you subscribed to. You can use it to verify the origin of the webhook call that you receive."
        }
      }
    }
  }
}