{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/affiliaterail-com/json-schema/affiliaterail-com-finder-webhook-endpoint-schema.json",
  "title": "FinderWebhookEndpoint",
  "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/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"
  ]
}