{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postproxy-dev/json-schema/postproxy-dev-webhook-subscription-schema.json",
  "title": "WebhookSubscription",
  "description": "A webhook subscription that receives event deliveries at an HTTPS URL.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postproxy-dev-webhooks-api-openapi.yml#/components/schemas/WebhookSubscription",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Webhook id."
    },
    "url": {
      "type": "string",
      "description": "HTTPS URL that receives webhook events."
    },
    "events": {
      "type": "array",
      "description": "Subscribed event types ([\"*\"] means all events).",
      "items": {
        "type": "string"
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the webhook is enabled."
    },
    "description": {
      "type": "string",
      "description": "Description for the webhook."
    },
    "secret": {
      "type": "string",
      "description": "Signing secret used to verify webhook signatures. Only included when fetching a single webhook or immediately after creation."
    },
    "created_at": {
      "type": "string",
      "description": "ISO 8601 creation time."
    },
    "updated_at": {
      "type": "string",
      "description": "ISO 8601 last update time."
    }
  }
}