{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sudomock-com/json-schema/sudomock-com-webhook-endpoint-response-schema.json",
  "title": "WebhookEndpointResponse",
  "description": "Endpoint metadata with the secret MASKED (`whsec_****<last4>`).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sudomock-com-webhook-endpoints-api-openapi.yml#/components/schemas/WebhookEndpointResponse",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the webhook endpoint."
    },
    "url": {
      "type": "string",
      "description": "The https URL that receives this endpoint's events."
    },
    "secret": {
      "type": "string",
      "description": "Masked: whsec_****<last4>"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Your label for this endpoint."
    },
    "event_types": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "Event types this endpoint receives; an empty list means every event."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether this endpoint currently receives events."
    },
    "event_naming": {
      "type": "string",
      "description": "The event-name spelling this endpoint is pinned to: 'legacy' or 'current'.",
      "default": "legacy"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Time the endpoint was created."
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Time the endpoint was last updated."
    }
  },
  "type": "object",
  "required": [
    "id",
    "url",
    "secret",
    "enabled",
    "created_at"
  ]
}