{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pictify-io/json-schema/pictify-io-webhook-subscription-schema.json",
  "title": "WebhookSubscription",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pictify-io-webhooks-api-openapi.yml#/components/schemas/WebhookSubscription",
  "type": "object",
  "properties": {
    "uid": {
      "type": "string"
    },
    "event": {
      "type": "string",
      "enum": [
        "render.completed",
        "render.failed",
        "binding.updated",
        "binding.failed"
      ]
    },
    "targetUrl": {
      "type": "string",
      "format": "uri"
    },
    "platform": {
      "type": "string",
      "enum": [
        "zapier",
        "make",
        "n8n",
        "pipedream",
        "custom"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "failed"
      ]
    },
    "filters": {
      "type": "object",
      "properties": {
        "templateId": {
          "type": "string"
        },
        "bindingId": {
          "type": "string"
        }
      }
    },
    "deliveryCount": {
      "type": "integer"
    },
    "failureCount": {
      "type": "integer"
    },
    "lastDeliveryAt": {
      "type": "string",
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}