{
  "openapi": "3.0.1",
  "info": {
    "title": "Webhook Processing Reconciliation",
    "description": "Find acknowledged webhook events without processing, overdue pending records, possible repeated successful processing and orphans in supplied scoped metadata exports. JSON, CSV and HTML evidence.",
    "version": "0.1",
    "x-build-id": "EpvKSz7qKFVCcj2bj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/h_murdock~webhook-processing-reconciliation/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-h_murdock-webhook-processing-reconciliation",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/h_murdock~webhook-processing-reconciliation/runs": {
      "post": {
        "operationId": "runs-sync-h_murdock-webhook-processing-reconciliation",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/h_murdock~webhook-processing-reconciliation/run-sync": {
      "post": {
        "operationId": "run-sync-h_murdock-webhook-processing-reconciliation",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "asOf",
          "maxProcessingDelayMinutes"
        ],
        "properties": {
          "asOf": {
            "title": "Comparison timestamp",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$",
            "type": "string",
            "description": "Strict real UTC timestamp YYYY-MM-DDTHH:mm:ss[.sss]Z."
          },
          "maxProcessingDelayMinutes": {
            "title": "Allowed processing delay in minutes",
            "minimum": 1,
            "maximum": 10080,
            "type": "integer",
            "description": "Whole minutes from earliest usable acknowledgment or supplied pending receivedAt. Range 1–10,080 (7 days). No vendor SLA is assumed."
          },
          "coverage": {
            "title": "Scope coverage declarations",
            "minItems": 0,
            "maxItems": 500,
            "type": "array",
            "description": "Supply this array; [] allowed; validated by Actor. One declaration per exact four-part scope; closed UTC windows. Complete current comparisons require equal delivery/processing windows ending at asOf. A complete export must include all matching attempts and processing records in its declared interval.",
            "items": {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "description": "Provider alias. Exact case-sensitive identity.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "provider"
                    },
                    "account": {
                      "type": "string",
                      "description": "Provider account or installation alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "account"
                    },
                    "subscription": {
                      "type": "string",
                      "description": "Webhook subscription or endpoint alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "subscription"
                    },
                    "consumer": {
                      "type": "string",
                      "description": "Application consumer/worker alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "consumer"
                    }
                  },
                  "required": [
                    "provider",
                    "account",
                    "subscription",
                    "consumer"
                  ],
                  "additionalProperties": false,
                  "title": "scope",
                  "description": "Normalized metadata field scope; see README for exact semantics."
                },
                "delivery": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "string",
                      "description": "Strict real UTC timestamp YYYY-MM-DDTHH:mm:ss[.sss]Z.",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$",
                      "title": "from"
                    },
                    "to": {
                      "type": "string",
                      "description": "Strict real UTC timestamp YYYY-MM-DDTHH:mm:ss[.sss]Z.",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$",
                      "title": "to"
                    },
                    "complete": {
                      "type": "boolean",
                      "description": "Caller assertion that this full scope and closed interval were completely exported.",
                      "title": "complete"
                    }
                  },
                  "required": [
                    "from",
                    "to",
                    "complete"
                  ],
                  "additionalProperties": false,
                  "title": "delivery",
                  "description": "Normalized metadata field delivery; see README for exact semantics."
                },
                "processing": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "string",
                      "description": "Strict real UTC timestamp YYYY-MM-DDTHH:mm:ss[.sss]Z.",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$",
                      "title": "from"
                    },
                    "to": {
                      "type": "string",
                      "description": "Strict real UTC timestamp YYYY-MM-DDTHH:mm:ss[.sss]Z.",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$",
                      "title": "to"
                    },
                    "complete": {
                      "type": "boolean",
                      "description": "Caller assertion that this full scope and closed interval were completely exported.",
                      "title": "complete"
                    }
                  },
                  "required": [
                    "from",
                    "to",
                    "complete"
                  ],
                  "additionalProperties": false,
                  "title": "processing",
                  "description": "Normalized metadata field processing; see README for exact semantics."
                }
              },
              "required": [
                "scope",
                "delivery",
                "processing"
              ],
              "additionalProperties": false
            }
          },
          "deliveries": {
            "title": "Delivery attempt metadata",
            "minItems": 0,
            "maxItems": 10000,
            "type": "array",
            "description": "Supply this array; [] allowed; validated by Actor. Distinct retry attempt IDs. HTTP acknowledgment does not imply application processing. Exact export replay rows are counted once; conflicting IDs are quarantined.",
            "items": {
              "type": "object",
              "properties": {
                "attemptId": {
                  "type": "string",
                  "description": "Unique ID in the whole delivery table; retries have distinct IDs.",
                  "minLength": 1,
                  "maxLength": 120,
                  "title": "attempt id"
                },
                "scope": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "description": "Provider alias. Exact case-sensitive identity.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "provider"
                    },
                    "account": {
                      "type": "string",
                      "description": "Provider account or installation alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "account"
                    },
                    "subscription": {
                      "type": "string",
                      "description": "Webhook subscription or endpoint alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "subscription"
                    },
                    "consumer": {
                      "type": "string",
                      "description": "Application consumer/worker alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "consumer"
                    }
                  },
                  "required": [
                    "provider",
                    "account",
                    "subscription",
                    "consumer"
                  ],
                  "additionalProperties": false,
                  "title": "scope",
                  "description": "Normalized metadata field scope; see README for exact semantics."
                },
                "eventKey": {
                  "type": "string",
                  "description": "Logical provider event correlation identity, distinct from attempt ID.",
                  "minLength": 1,
                  "maxLength": 120,
                  "title": "event key"
                },
                "timestamp": {
                  "type": "string",
                  "description": "Strict real UTC timestamp YYYY-MM-DDTHH:mm:ss[.sss]Z.",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$",
                  "title": "timestamp"
                },
                "outcome": {
                  "type": "string",
                  "enum": [
                    "acknowledged",
                    "failed",
                    "pending"
                  ],
                  "title": "outcome",
                  "description": "Normalized metadata field outcome; see README for exact semantics."
                },
                "httpStatus": {
                  "type": "integer",
                  "minimum": 100,
                  "maximum": 599,
                  "description": "Optional HTTP response. 2xx for acknowledged only; omit for pending.",
                  "title": "http status"
                }
              },
              "required": [
                "attemptId",
                "scope",
                "eventKey",
                "timestamp",
                "outcome"
              ],
              "additionalProperties": false
            }
          },
          "processing": {
            "title": "Application processing ledger",
            "minItems": 0,
            "maxItems": 10000,
            "type": "array",
            "description": "Supply this array; [] allowed; validated by Actor. Distinct processing record IDs and explicit state, independent of delivery attempts. Optional receivedAt establishes receipt age and complete-window orphan evidence. Do not infer state from HTTP status.",
            "items": {
              "type": "object",
              "properties": {
                "recordId": {
                  "type": "string",
                  "description": "Unique ID in the entire processing table, distinct from event key.",
                  "minLength": 1,
                  "maxLength": 120,
                  "title": "record id"
                },
                "scope": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "description": "Provider alias. Exact case-sensitive identity.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "provider"
                    },
                    "account": {
                      "type": "string",
                      "description": "Provider account or installation alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "account"
                    },
                    "subscription": {
                      "type": "string",
                      "description": "Webhook subscription or endpoint alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "subscription"
                    },
                    "consumer": {
                      "type": "string",
                      "description": "Application consumer/worker alias.",
                      "minLength": 1,
                      "maxLength": 120,
                      "title": "consumer"
                    }
                  },
                  "required": [
                    "provider",
                    "account",
                    "subscription",
                    "consumer"
                  ],
                  "additionalProperties": false,
                  "title": "scope",
                  "description": "Normalized metadata field scope; see README for exact semantics."
                },
                "eventKey": {
                  "type": "string",
                  "description": "Same logical provider event identity and full consumer scope as delivery.",
                  "minLength": 1,
                  "maxLength": 120,
                  "title": "event key"
                },
                "timestamp": {
                  "type": "string",
                  "description": "Strict real UTC timestamp YYYY-MM-DDTHH:mm:ss[.sss]Z.",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$",
                  "title": "timestamp"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "succeeded",
                    "failed",
                    "pending"
                  ],
                  "title": "state",
                  "description": "Normalized metadata field state; see README for exact semantics."
                },
                "receivedAt": {
                  "type": "string",
                  "description": "Strict real UTC timestamp YYYY-MM-DDTHH:mm:ss[.sss]Z.",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$",
                  "title": "received at"
                }
              },
              "required": [
                "recordId",
                "scope",
                "eventKey",
                "timestamp",
                "state"
              ],
              "additionalProperties": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}