{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/affiliaterail-com/json-schema/affiliaterail-com-finder-webhook-delivery-page-schema.json",
  "title": "FinderWebhookDeliveryPage",
  "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/FinderWebhookDeliveryPage",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FinderWebhookDelivery"
      }
    },
    "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": {
    "FinderWebhookDelivery": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^(sample_)?fwd_",
          "description": "Prefixed id (`fwd_…`)"
        },
        "object": {
          "type": "string",
          "enum": [
            "finder_webhook_delivery"
          ]
        },
        "endpoint_id": {
          "type": "string",
          "pattern": "^(sample_)?fwe_",
          "description": "Prefixed id (`fwe_…`)"
        },
        "event_id": {
          "type": "string"
        },
        "event_type": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "delivered",
            "failed"
          ]
        },
        "attempts": {
          "type": "integer"
        },
        "replay_of": {
          "type": [
            "string",
            "null"
          ],
          "description": "The delivery this one replays, if it's a replay"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "ISO-8601, UTC"
        },
        "request": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string"
            },
            "headers": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "body": {
              "type": "string"
            }
          },
          "required": [
            "url",
            "headers",
            "body"
          ],
          "description": "What was sent. The signature headers are worked out with the secrets live now."
        },
        "response": {
          "type": "object",
          "properties": {
            "status": {
              "type": [
                "integer",
                "null"
              ]
            },
            "body": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "status",
            "body"
          ],
          "description": "What came back. Nulls before the first try."
        }
      },
      "required": [
        "id",
        "object",
        "endpoint_id",
        "event_id",
        "event_type",
        "status",
        "attempts",
        "replay_of",
        "created_at",
        "request",
        "response"
      ]
    }
  }
}