{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usepostify-com/json-schema/usepostify-com-webhook-endpoint-created-schema.json",
  "title": "WebhookEndpointCreated",
  "description": "The created endpoint plus its show-once signing secret. Verify deliveries with any Standard Webhooks library.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usepostify-com-openapi.yml#/components/schemas/WebhookEndpointCreated",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Stable webhook endpoint identifier."
    },
    "url": {
      "type": "string",
      "description": "HTTPS delivery URL. Private/internal addresses are rejected."
    },
    "event_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "post.published",
          "post.failed",
          "channel.connected",
          "channel.reauth_required",
          "delivery.failed"
        ]
      },
      "description": "Event types this endpoint subscribes to."
    },
    "enabled": {
      "type": "boolean",
      "description": "Disabled endpoints receive no deliveries. Set automatically to `false` after 20 consecutive failed delivery attempts."
    },
    "auto_disabled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
        },
        {
          "type": "null"
        }
      ],
      "description": "When the failure ladder auto-disabled this endpoint (ISO-8601 UTC), or null. Re-enable via PATCH `enabled: true`."
    },
    "consecutive_failures": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Consecutive failed delivery attempts. Any successful (2xx) delivery resets it to 0. Warning emails fire at 5/10/15; the endpoint auto-disables at 20."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      "description": "When the endpoint was created (ISO-8601 UTC)."
    },
    "signing_secret": {
      "type": "string",
      "description": "Standard-Webhooks signing secret (`whsec_` + base64). Store it now — over the API it is shown only in this response. A workspace owner/admin can re-reveal or roll it in Settings → Webhooks."
    }
  },
  "required": [
    "id",
    "url",
    "event_types",
    "enabled",
    "auto_disabled_at",
    "consecutive_failures",
    "created_at",
    "signing_secret"
  ],
  "additionalProperties": false
}