{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/affiliaterail-com/json-schema/affiliaterail-com-finder-webhook-endpoint-page-schema.json",
  "title": "FinderWebhookEndpointPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/affiliaterail-com-recruit-affiliates-webhooks-api-openapi.yml#/components/schemas/FinderWebhookEndpointPage",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FinderWebhookEndpoint"
      }
    },
    "has_more": {
      "type": "boolean",
      "description": "True when `next_cursor` fetches more"
    },
    "total_count": {
      "type": "integer",
      "description": "Every object matching the filters, ignoring the cursor"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` with the same filters to get the next page. Null on the last page."
    }
  },
  "required": [
    "data",
    "has_more",
    "total_count",
    "next_cursor"
  ],
  "$defs": {
    "FinderWebhookEndpoint": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^(sample_)?fwe_",
          "description": "Prefixed id (`fwe_…`)"
        },
        "object": {
          "type": "string",
          "enum": [
            "finder_webhook_endpoint"
          ]
        },
        "url": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "webhook",
            "slack"
          ],
          "description": "`slack` sends a Slack message to a Slack incoming webhook address instead of signed JSON"
        },
        "event_types": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The events this endpoint gets. Empty means every event."
        },
        "enabled": {
          "type": "boolean"
        },
        "livemode": {
          "type": "boolean",
          "description": "false for a test endpoint, which only gets test events"
        },
        "previous_secret_expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "After a rotation, when the old secret stops signing. Null when only one secret is live."
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "ISO-8601, UTC"
        }
      },
      "required": [
        "id",
        "object",
        "url",
        "kind",
        "event_types",
        "enabled",
        "livemode",
        "previous_secret_expires_at",
        "created_at"
      ]
    }
  }
}