{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/permtracker-app/json-schema/permtracker-app-webhook-list-schema.json",
  "title": "WebhookList",
  "description": "An account's webhook endpoints and watches.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/permtracker-app-webhooks-api-openapi.yml#/components/schemas/WebhookList",
  "type": "object",
  "properties": {
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The endpoint's id. Send it to delete the endpoint."
          },
          "url": {
            "type": "string",
            "description": "The https address deliveries are posted to."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The events the endpoint receives."
          }
        },
        "required": [
          "id",
          "url",
          "events"
        ],
        "additionalProperties": {},
        "description": "One webhook endpoint."
      },
      "description": "This account's endpoints, each with its url, events, whether it's paused and the last four characters of its secret."
    },
    "watches": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "description": "The cases and employers this account's webhooks watch."
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Every event an endpoint can ask for."
    }
  },
  "required": [
    "endpoints",
    "watches",
    "events"
  ],
  "additionalProperties": {}
}