{
  "openapi": "3.0.1",
  "info": {
    "title": "SiteVerdict — Tracking QA Robot (GA4, Ads, Meta, TikTok)",
    "description": "Scripted checkout and lead journeys in a real browser that assert your GA4, Google Ads, Meta, TikTok, Snap and LinkedIn conversions fire once, with the right value, currency and event_id, and only after consent. Never submits real payments. Evidence, history, Slack alerts.",
    "version": "1.1",
    "x-build-id": "GSJxnwdiOs5Bxd2Qk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteverdict~siteverdict-tracking-qa-robot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteverdict-siteverdict-tracking-qa-robot",
        "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/siteverdict~siteverdict-tracking-qa-robot/runs": {
      "post": {
        "operationId": "runs-sync-siteverdict-siteverdict-tracking-qa-robot",
        "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/siteverdict~siteverdict-tracking-qa-robot/run-sync": {
      "post": {
        "operationId": "run-sync-siteverdict-siteverdict-tracking-qa-robot",
        "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",
        "properties": {
          "sampleMode": {
            "title": "Sample mode (no browser, free)",
            "type": "boolean",
            "description": "Show the full output on a synthetic checkout journey without opening a browser. Nothing is charged. If the authorisation tick is off and every journey starts on a reserved example name (e.g. www.example.com), the run uses sample mode automatically and every row is marked isSampleData: true. Real sites always need the tick.",
            "default": false
          },
          "journeys": {
            "title": "Journeys",
            "type": "array",
            "description": "One object per journey: <code>name</code>, <code>startUrl</code>, <code>consent</code> (accept | reject | no-interaction | manual), <code>steps</code> [{action: goto|click|fill|select|check|press|wait|waitForSelector|waitForUrl|scroll|consent|screenshot, selector, value, url, key, ms, choice, optional}], <code>expectedEvents</code> [{platform: ga4|google-ads|meta|tiktok|snap|linkedin, event, pixelId, conversionLabel, afterStep, count: exactlyOnce|atLeastOnce|never, params: {name: '*'|'number'|'>0'|'currency'|'/regex/'|exact}}], optional <code>allowedDomains</code> and <code>allowTestPayment</code>. Fill values may use {{email}}, {{name}}, {{phone}}, {{testCard}}. Max 20 journeys × 50 steps."
          },
          "iAmAuthorised": {
            "title": "I own this site or am authorised to test it",
            "type": "boolean",
            "description": "Required for live runs. The robot clicks and fills forms on the pages you list — only test sites you are responsible for.",
            "default": false
          },
          "ignoreRobotsForOwnSite": {
            "title": "Ignore robots.txt (own site only)",
            "type": "boolean",
            "description": "By default a journey is skipped if robots.txt disallows its start URL for SiteVerdictBot. Checkout paths are often disallowed for crawlers; tick this only for your own site.",
            "default": false
          },
          "consentRequired": {
            "title": "Consent required (UK/EU rules)",
            "type": "boolean",
            "description": "Treat marketing tags before opt-in (and GA4 with analytics storage granted after Reject) as violations. Untick for regions without opt-in rules.",
            "default": true
          },
          "sendHitsToVendors": {
            "title": "Let tracking requests reach the vendors",
            "type": "boolean",
            "description": "Off (default): tracking requests are captured and answered locally, so QA runs never create fake conversions in GA4 / Ads / Meta. On: requests are sent for real (use with test properties / test event codes).",
            "default": false
          },
          "screenshots": {
            "title": "Screenshots",
            "enum": [
              "none",
              "final",
              "failures",
              "each-step"
            ],
            "type": "string",
            "description": "Evidence screenshots saved to the key-value store (JPEG).",
            "default": "failures"
          },
          "stepTimeoutSecs": {
            "title": "Step timeout (seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "3–60.",
            "default": 15
          },
          "journeyTimeoutSecs": {
            "title": "Journey timeout (seconds)",
            "minimum": 30,
            "maximum": 600,
            "type": "integer",
            "description": "30–600.",
            "default": 180
          },
          "locale": {
            "title": "Browser locale",
            "type": "string",
            "description": "e.g. en-GB, en-US, de-DE.",
            "default": "en-GB"
          },
          "monitoring": {
            "title": "Keep history (detect breakage)",
            "type": "boolean",
            "description": "Store each journey's result in a named key-value store and report new failures and fixes since the last run. Schedule the Actor (e.g. daily).",
            "default": true
          },
          "stateStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Named key-value store for the history.",
            "default": "siteverdict-tracking-qa"
          },
          "slackWebhookUrl": {
            "title": "Slack incoming webhook URL",
            "type": "string",
            "description": "HTTPS only. Alert when tracking breaks (new failures) or is fixed."
          },
          "webhookUrl": {
            "title": "Webhook URL (JSON)",
            "type": "string",
            "description": "HTTPS only. Receives the JSON alert payload."
          },
          "alertOnlyOnChange": {
            "title": "Alert only on changes",
            "type": "boolean",
            "description": "Off = alert after every run that has a failing journey.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}