{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subotiz-com/json-schema/subotiz-com-list-endpoint-response-schema.json",
  "title": "ListEndpointResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/subotiz-com-webhook-api-openapi.yml#/components/schemas/ListEndpointResponse",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "error code"
    },
    "message": {
      "type": "string",
      "description": "error message"
    },
    "data": {
      "$ref": "#/$defs/ListEndpointResponse_Data"
    }
  },
  "$defs": {
    "Endpoint": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the webhook endpoint"
        },
        "url": {
          "type": "string",
          "description": "Webhook callback URL"
        },
        "desc": {
          "type": "string",
          "description": "Endpoint description"
        },
        "event_version": {
          "type": "string",
          "description": "Event version"
        },
        "all_events": {
          "type": "boolean",
          "description": "Whether to receive all events"
        },
        "event_types": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specific event types to be received"
        },
        "status": {
          "type": "string",
          "description": "Endpoint status (enabled or disabled)"
        }
      }
    },
    "ListEndpointResponse_Data": {
      "type": "object",
      "properties": {
        "has_more": {
          "type": "boolean",
          "description": "Whether there is more data"
        },
        "list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Endpoint"
          },
          "description": "Webhook Endpoint list"
        }
      }
    }
  }
}