{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/consentstack-io/json-schema/consentstack-io-post-functions-v1-scripts-request-schema.json",
  "title": "PostFunctionsV1ScriptsRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/consentstack-io-openapi-generated.yml#/components/schemas/PostFunctionsV1ScriptsRequest",
  "type": "object",
  "properties": {
    "site_key": {
      "type": "string",
      "description": "Your public site key."
    },
    "page_url": {
      "type": "string",
      "description": "The page URL where scripts were detected."
    },
    "scripts": {
      "type": "array",
      "description": "Array of detected scripts (max 100). Each entry contains src, domain, category, blocked, timestamp, and optional sync_id."
    },
    "timestamp": {
      "type": "number",
      "description": "Unix timestamp of the detection."
    },
    "sync_id": {
      "type": "string",
      "description": "UUID linking to a dashboard-initiated sync (deprecated in body; use query parameter)."
    }
  },
  "required": [
    "site_key",
    "page_url",
    "scripts",
    "timestamp"
  ]
}