{
  "openapi": "3.0.1",
  "info": {
    "title": "WTO ePing Alerts: Track Export Rule Changes by HS Code",
    "description": "First 25 notifications free. WTO ePing alerts: here you pay only for notifications on your HS codes. Import requirements by country, HS code regulation tracker, comment deadlines and reminders — food to chemicals; MCP & AI agents. Free demo on any plan.",
    "version": "0.1",
    "x-build-id": "f9gl5FBr4AImpFFEW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rich_minds~destination-rule-watch-ai/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rich_minds-destination-rule-watch-ai",
        "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/rich_minds~destination-rule-watch-ai/runs": {
      "post": {
        "operationId": "runs-sync-rich_minds-destination-rule-watch-ai",
        "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/rich_minds~destination-rule-watch-ai/run-sync": {
      "post": {
        "operationId": "run-sync-rich_minds-destination-rule-watch-ai",
        "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": {
          "preset": {
            "title": "Start from a ready search (one click)",
            "enum": [
              "custom",
              "spices-eu-gulf-us-japan",
              "eu-pesticide-mrl",
              "gulf-food-labelling",
              "rice-all-markets",
              "shrimp-seafood",
              "tea-coffee",
              "coffee-eu-us-japan-korea",
              "fresh-fruit-eu-us-china",
              "fish-eu-us-japan-china",
              "spices-wide-six-markets",
              "cosmetics-eu-us-gcc",
              "electrical-eu-gcc-india",
              "toys-eu-us",
              "chemicals-all-markets"
            ],
            "type": "string",
            "description": "Pick a ready search and press Start: it replaces the sample below and reads the WTO ePing file live (any Apify plan, no source Actor runs); a value you typed yourself always wins. The status names what ran. <b>Custom</b> = fill the fields yourself.",
            "default": "custom"
          },
          "countries": {
            "title": "Destination countries (who notified the rule)",
            "type": "array",
            "description": "The WTO members whose new rules you want — <code>EU</code>, then ISO-2 codes (<code>AE</code>, <code>SA</code>, <code>US</code>, <code>JP</code> …). Empty = every member. Free filter, any Apify plan. Typed next to the free demo's sample, it starts the live search of the WTO file.",
            "items": {
              "type": "string",
              "enum": [
                "EU",
                "AE",
                "AF",
                "AG",
                "AL",
                "AM",
                "AO",
                "AR",
                "AT",
                "AU",
                "AZ",
                "BB",
                "BD",
                "BE",
                "BF",
                "BG",
                "BH",
                "BI",
                "BJ",
                "BN",
                "BO",
                "BR",
                "BW",
                "BZ",
                "CA",
                "CD",
                "CF",
                "CG",
                "CH",
                "CI",
                "CL",
                "CM",
                "CN",
                "CO",
                "CR",
                "CU",
                "CV",
                "CY",
                "CZ",
                "DE",
                "DJ",
                "DK",
                "DM",
                "DO",
                "EC",
                "EE",
                "EG",
                "ES",
                "FI",
                "FJ",
                "FR",
                "GA",
                "GB",
                "GD",
                "GE",
                "GH",
                "GM",
                "GN",
                "GR",
                "GT",
                "GW",
                "GY",
                "HK",
                "HN",
                "HR",
                "HT",
                "HU",
                "ID",
                "IE",
                "IL",
                "IN",
                "IS",
                "IT",
                "JM",
                "JO",
                "JP",
                "KE",
                "KG",
                "KH",
                "KM",
                "KN",
                "KR",
                "KW",
                "KZ",
                "LA",
                "LC",
                "LI",
                "LK",
                "LR",
                "LS",
                "LT",
                "LU",
                "LV",
                "MA",
                "MD",
                "ME",
                "MG",
                "MK",
                "ML",
                "MM",
                "MN",
                "MO",
                "MR",
                "MT",
                "MU",
                "MW",
                "MX",
                "MY",
                "MZ",
                "NA",
                "NE",
                "NG",
                "NI",
                "NL",
                "NO",
                "NP",
                "NZ",
                "OM",
                "PA",
                "PE",
                "PG",
                "PH",
                "PK",
                "PL",
                "PT",
                "PY",
                "QA",
                "RO",
                "RU",
                "RW",
                "SA",
                "SB",
                "SC",
                "SD",
                "SE",
                "SG",
                "SI",
                "SK",
                "SL",
                "SN",
                "SR",
                "SV",
                "SZ",
                "TD",
                "TG",
                "TH",
                "TJ",
                "TL",
                "TN",
                "TO",
                "TR",
                "TT",
                "TW",
                "TZ",
                "UA",
                "UG",
                "US",
                "UY",
                "VC",
                "VE",
                "VN",
                "VU",
                "WS",
                "YE",
                "ZA",
                "ZM",
                "ZW"
              ],
              "enumTitles": [
                "EU — European Union",
                "AE — United Arab Emirates",
                "AF — Afghanistan",
                "AG — Antigua and Barbuda",
                "AL — Albania",
                "AM — Armenia",
                "AO — Angola",
                "AR — Argentina",
                "AT — Austria",
                "AU — Australia",
                "AZ — Azerbaijan",
                "BB — Barbados",
                "BD — Bangladesh",
                "BE — Belgium",
                "BF — Burkina Faso",
                "BG — Bulgaria",
                "BH — Bahrain, Kingdom of",
                "BI — Burundi",
                "BJ — Benin",
                "BN — Brunei Darussalam",
                "BO — Bolivia, Plurinational State of",
                "BR — Brazil",
                "BW — Botswana",
                "BZ — Belize",
                "CA — Canada",
                "CD — Democratic Republic of the Congo",
                "CF — Central African Republic",
                "CG — Congo",
                "CH — Switzerland",
                "CI — Côte d'Ivoire",
                "CL — Chile",
                "CM — Cameroon",
                "CN — China",
                "CO — Colombia",
                "CR — Costa Rica",
                "CU — Cuba",
                "CV — Cabo Verde",
                "CY — Cyprus",
                "CZ — Czech Republic",
                "DE — Germany",
                "DJ — Djibouti",
                "DK — Denmark",
                "DM — Dominica",
                "DO — Dominican Republic",
                "EC — Ecuador",
                "EE — Estonia",
                "EG — Egypt",
                "ES — Spain",
                "FI — Finland",
                "FJ — Fiji",
                "FR — France",
                "GA — Gabon",
                "GB — United Kingdom",
                "GD — Grenada",
                "GE — Georgia",
                "GH — Ghana",
                "GM — The Gambia",
                "GN — Guinea",
                "GR — Greece",
                "GT — Guatemala",
                "GW — Guinea-Bissau",
                "GY — Guyana",
                "HK — Hong Kong, China",
                "HN — Honduras",
                "HR — Croatia",
                "HT — Haiti",
                "HU — Hungary",
                "ID — Indonesia",
                "IE — Ireland",
                "IL — Israel",
                "IN — India",
                "IS — Iceland",
                "IT — Italy",
                "JM — Jamaica",
                "JO — Jordan",
                "JP — Japan",
                "KE — Kenya",
                "KG — Kyrgyz Republic",
                "KH — Cambodia",
                "KM — Comoros",
                "KN — Saint Kitts and Nevis",
                "KR — Korea, Republic of",
                "KW — Kuwait, the State of",
                "KZ — Kazakhstan",
                "LA — Lao People's Democratic Republic",
                "LC — Saint Lucia",
                "LI — Liechtenstein",
                "LK — Sri Lanka",
                "LR — Liberia",
                "LS — Lesotho",
                "LT — Lithuania",
                "LU — Luxembourg",
                "LV — Latvia",
                "MA — Morocco",
                "MD — Moldova, Republic of",
                "ME — Montenegro",
                "MG — Madagascar",
                "MK — North Macedonia",
                "ML — Mali",
                "MM — Myanmar",
                "MN — Mongolia",
                "MO — Macao, China",
                "MR — Mauritania",
                "MT — Malta",
                "MU — Mauritius",
                "MW — Malawi",
                "MX — Mexico",
                "MY — Malaysia",
                "MZ — Mozambique",
                "NA — Namibia",
                "NE — Niger",
                "NG — Nigeria",
                "NI — Nicaragua",
                "NL — Netherlands",
                "NO — Norway",
                "NP — Nepal",
                "NZ — New Zealand",
                "OM — Oman",
                "PA — Panama",
                "PE — Peru",
                "PG — Papua New Guinea",
                "PH — Philippines",
                "PK — Pakistan",
                "PL — Poland",
                "PT — Portugal",
                "PY — Paraguay",
                "QA — Qatar",
                "RO — Romania",
                "RU — Russian Federation",
                "RW — Rwanda",
                "SA — Saudi Arabia, Kingdom of",
                "SB — Solomon Islands",
                "SC — Seychelles",
                "SD — Sudan",
                "SE — Sweden",
                "SG — Singapore",
                "SI — Slovenia",
                "SK — Slovak Republic",
                "SL — Sierra Leone",
                "SN — Senegal",
                "SR — Suriname",
                "SV — El Salvador",
                "SZ — Eswatini",
                "TD — Chad",
                "TG — Togo",
                "TH — Thailand",
                "TJ — Tajikistan",
                "TL — Timor-Leste",
                "TN — Tunisia",
                "TO — Tonga",
                "TR — Türkiye",
                "TT — Trinidad and Tobago",
                "TW — Chinese Taipei",
                "TZ — Tanzania",
                "UA — Ukraine",
                "UG — Uganda",
                "US — United States of America",
                "UY — Uruguay",
                "VC — Saint Vincent and the Grenadines",
                "VE — Venezuela, Bolivarian Republic of",
                "VN — Viet Nam",
                "VU — Vanuatu",
                "WS — Samoa",
                "YE — Yemen",
                "ZA — South Africa",
                "ZM — Zambia",
                "ZW — Zimbabwe"
              ]
            }
          },
          "hsCodes": {
            "title": "HS codes of your products",
            "type": "array",
            "description": "HS prefixes of 2–6 digits — <code>0904</code> (pepper), <code>0910</code> (turmeric, ginger), <code>1006</code> (rice), <code>09</code> (the chapter). Matched on the notification's own HS codes. Empty = every product. Free filter, any Apify plan. Typed next to the free demo's sample, it starts the live search.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (optional)",
            "type": "array",
            "description": "Words that must appear in the title, description, products, keywords or objectives — <code>pesticide</code>, <code>ethylene oxide</code>, <code>labelling</code>. Case-insensitive, whole words. Empty = no keyword filter. Free filter. Works on every Apify plan; rows you already have go into list mode.",
            "items": {
              "type": "string"
            }
          },
          "goalDescription": {
            "title": "What do you export, and where? (for the AI)",
            "type": "string",
            "description": "Your brief for the AI note: what you ship, from where and to whom (<i>coffee from Brazil to the EU and Japan</i>). Never decides what you pay."
          },
          "exporterCountry": {
            "title": "Your country (for the comment step)",
            "enum": [
              "",
              "AF",
              "AL",
              "AO",
              "AG",
              "AR",
              "AM",
              "AU",
              "AT",
              "AZ",
              "BH",
              "BD",
              "BB",
              "BE",
              "BZ",
              "BJ",
              "BO",
              "BW",
              "BR",
              "BN",
              "BG",
              "BF",
              "BI",
              "CV",
              "KH",
              "CM",
              "CA",
              "CF",
              "TD",
              "CL",
              "CN",
              "TW",
              "CO",
              "KM",
              "CG",
              "CR",
              "HR",
              "CU",
              "CY",
              "CZ",
              "CI",
              "CD",
              "DK",
              "DJ",
              "DM",
              "DO",
              "EC",
              "EG",
              "SV",
              "EE",
              "SZ",
              "FJ",
              "FI",
              "FR",
              "GA",
              "GE",
              "DE",
              "GH",
              "GR",
              "GD",
              "GT",
              "GN",
              "GW",
              "GY",
              "HT",
              "HN",
              "HK",
              "HU",
              "IS",
              "IN",
              "ID",
              "IE",
              "IL",
              "IT",
              "JM",
              "JP",
              "JO",
              "KZ",
              "KE",
              "KR",
              "KW",
              "KG",
              "LA",
              "LV",
              "LS",
              "LR",
              "LI",
              "LT",
              "LU",
              "MO",
              "MG",
              "MW",
              "MY",
              "ML",
              "MT",
              "MR",
              "MU",
              "MX",
              "MD",
              "MN",
              "ME",
              "MA",
              "MZ",
              "MM",
              "NA",
              "NP",
              "NL",
              "NZ",
              "NI",
              "NE",
              "NG",
              "MK",
              "NO",
              "OM",
              "PK",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PL",
              "PT",
              "QA",
              "RO",
              "RU",
              "RW",
              "KN",
              "LC",
              "VC",
              "WS",
              "SA",
              "SN",
              "SC",
              "SL",
              "SG",
              "SK",
              "SI",
              "SB",
              "ZA",
              "ES",
              "LK",
              "SD",
              "SR",
              "SE",
              "CH",
              "TJ",
              "TZ",
              "TH",
              "GM",
              "TL",
              "TG",
              "TO",
              "TT",
              "TN",
              "TR",
              "UG",
              "UA",
              "AE",
              "GB",
              "US",
              "UY",
              "VU",
              "VE",
              "VN",
              "YE",
              "ZM",
              "ZW"
            ],
            "type": "string",
            "description": "The country you export from. Rows with an open comment window then say <i>send comments through Brazil's WTO SPS enquiry point</i> and link the WTO's enquiry-point directory; empty = <i>your national enquiry point</i>. Never decides what you pay.",
            "default": ""
          },
          "notifyEmail": {
            "title": "E-mail me the new notifications (optional)",
            "type": "string",
            "description": "After every run with new notifications, the digest (top 10 with links) is e-mailed here — schedule it daily or weekly and only new ones arrive. Sent by Apify's send-mail Actor, so it needs a plan that runs Store Actors; on any plan use a Slack / Teams / Discord webhook (Send alerts to). Never sent for the free demo."
          },
          "minScore": {
            "title": "Minimum score (0–100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0 = every matching notification. Higher keeps the pressing ones: 40 a rule your destination notified, + 15 the comment window is open, + 10 it closes within 14 days, + 10 in force within 60 days, + 10 urgent, + 10 an MRL change or ban, + 5 a new measure, + 5 matched on its own HS code. Free filter — rows below it are never charged.",
            "default": 0
          },
          "maxQualified": {
            "title": "Max qualified notifications to output",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on results — and the ceiling of what this Actor charges: at most this many × $0.025 with AI on (× $0.01 with AI off). Affects what you pay. The best-scoring notifications are output first.",
            "default": 100
          },
          "enableAi": {
            "title": "AI assessment",
            "type": "boolean",
            "description": "Adds a plain-language one-line summary, what it means for an exporter of your products and the next step with its date. Non-English notifications (many are in Spanish or French): leave the AI on — the rules read English. <b>On = $0.025 per notification + ≈ $0.0026 AI tokens; off = $0.01</b> (rule type, flags, dates and a file note only). <b>AI runs on Apify Starter and up, or free with your own Gemini key — otherwise you get the rules row at $0.01.</b> Apify's model access: not measured on the platform yet. The free demo shows labelled sample verdicts.",
            "default": true
          },
          "summaryLanguage": {
            "title": "AI summary language",
            "enum": [
              "en",
              "es",
              "pt",
              "fr",
              "vi"
            ],
            "type": "string",
            "description": "The language of the AI summary, the impact note and the next step (the field is still named <code>summaryEn</code>). Document symbols, substances, limits and dates stay exactly as notified. Needs the AI on; the rule note stays English.",
            "default": "en"
          },
          "notificationTypes": {
            "title": "Agreement",
            "type": "array",
            "description": "Which WTO agreement the notification was made under. Empty = both. Free filter.",
            "items": {
              "type": "string",
              "enum": [
                "SPS",
                "TBT"
              ],
              "enumTitles": [
                "SPS — food safety, animal and plant health (MRLs, bans, certificates)",
                "TBT — technical regulations, labelling, conformity assessment"
              ]
            }
          },
          "since": {
            "title": "Distributed on or after",
            "type": "string",
            "description": "Notifications the WTO distributed on or after this date. Empty = the last 30 days (a schedule (daily or weekly) then delivers only the new ones). Free filter on the live read. Works on every Apify plan; rows you already have go into list mode."
          },
          "includeAddenda": {
            "title": "Include addenda and corrigenda",
            "type": "boolean",
            "description": "Addenda record adoption, entry into force or a new comment deadline of an earlier notification (each has its own symbol, e.g. <code>…/Add.1</code>, and names its parent). Off = new measures and revisions only. Free filter.",
            "default": true
          },
          "includeUnclassifiedHs": {
            "title": "Include notifications without HS codes",
            "type": "boolean",
            "description": "Many EU pesticide-limit (MRL) notifications list no HS code. On: such a notification matches your HS chapter when its title, products or keywords name the chapter's goods (09 → spices, pepper, turmeric, tea …) or one of your keywords. Free filter.",
            "default": false
          },
          "watchSymbols": {
            "title": "Follow these notifications",
            "type": "array",
            "description": "Document symbols you commented on or act on (<code>G/SPS/N/JPN/1435</code>). Their addenda, corrigenda and revisions — adoption, entry into force, a new deadline — are always delivered, flagged <code>followUp</code>, whatever the filters above say. Each is a normal notification on the bill.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "targetFlags": {
            "title": "Target flags (any of)",
            "type": "array",
            "description": "Only deliver notifications that have at least one of these flags, and rank those with more of them higher. Leave empty to keep everything. An API call passes the flag names from the README's flag table, e.g. <code>comment_open</code> (<code>commentOpen</code> works too); an unknown name stops the run at once with the list of valid ones.",
            "items": {
              "type": "string",
              "enum": [
                "comment_open",
                "comment_closing",
                "in_force_soon",
                "urgent",
                "addendum",
                "deviates_from_standard",
                "no_hs_code"
              ],
              "enumTitles": [
                "The comment window is still open (final date for comments today or later)",
                "The comment window closes within 14 days",
                "The measure enters into force within 60 days",
                "An emergency measure (SPS emergency, TBT Article 2.10.1 / 5.7.1) — it may already apply",
                "An addendum or corrigendum to an earlier notification (adoption, entry into force, a new deadline)",
                "The member says the measure does not conform to the international standard (Codex, WOAH, IPPC, ISO)",
                "The notification lists no HS code — it matched your HS chapter through its words or a keyword"
              ]
            }
          },
          "llmProvider": {
            "title": "AI model access",
            "enum": [
              "apify",
              "byok"
            ],
            "type": "string",
            "description": "<b>Apify (no keys)</b> — the AI runs through Apify's built-in OpenRouter proxy; tokens are billed to your Apify account at OpenRouter's rates. <b>My own key</b> — use your OpenAI / Anthropic / Gemini / Groq key instead. A free Gemini key read 7 of 7 notifications on 2026-11-23, measured ≈ 2.1–11.7 s per notification over three runs (google:gemini-3.5-flash-lite, own free key) — pass a timeout of ≈ 765 s per 50 notifications. On a large backfill a free key hits its rate limit: expect at least 1–3 AI checks per run (the borderline notifications retried one by one), the rest keep their rule score; a paid Groq / Gemini key (billing on) assesses every notification.",
            "default": "apify"
          },
          "llmModel": {
            "title": "AI model",
            "type": "string",
            "description": "API only — hidden on the form. Leave empty for the default (<code>anthropic/claude-haiku-4.5</code> with Apify's model access, <code>google:gemini-3.5-flash-lite</code> with your own key). Apify mode takes an OpenRouter slug such as <code>openai/gpt-4.1-mini</code>; own-key mode takes <code>provider:model</code>, e.g. <code>groq:openai/gpt-oss-20b</code>."
          },
          "llmApiKey": {
            "title": "Your API key (own-key mode only)",
            "type": "string",
            "description": "Required when <b>AI model access</b> is <i>My own API key</i>. Stored encrypted by Apify, never logged."
          },
          "aiCandidateMultiplier": {
            "title": "AI shortlist size, × max qualified (API only)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "API only — hidden on the form. How many of the best rule-scored notifications get the AI pass, as a multiple of <b>Max qualified</b>. Higher = more thorough, slower, more tokens.",
            "default": 2
          },
          "sendAlertsTo": {
            "title": "Send alerts to (Slack, Discord, Teams, Google Chat, Telegram or webhook)",
            "type": "string",
            "description": "Paste one or more URLs, one per line — the service is detected from the address: a Slack or Discord channel webhook, a Teams Workflows or Google Chat space webhook, your Telegram bot's send link (<code>https://api.telegram.org/bot&lt;token&gt;/sendMessage?chat_id=@yourchannel</code>) or any other https URL (Zapier, Make, n8n, your CRM), which gets the notifications as JSON. After every run with at least one new notification, the digest (how many are new, the top 10 with links) is posted there. Never sent for the free demo. Headers, batching and signing: <i>Delivery details (advanced)</i>."
          },
          "dedupeAcrossRuns": {
            "title": "Never output the same notification twice",
            "type": "boolean",
            "description": "Remembers every notification you were charged for (in a named key-value store on your account) and skips it in future runs.",
            "default": true
          },
          "dedupeTtlDays": {
            "title": "Deliver a notification again after (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "API only — hidden on the form. How long a delivered notification stays remembered. A notification is new once — its symbol never comes back, an addendum has its own — so 365 days keeps a weekly watch to new ones only. 0 = remember forever.",
            "default": 365
          },
          "historyDatasetName": {
            "title": "Keep a running log (dataset name)",
            "type": "string",
            "description": "API only — hidden on the form. Optional. Type a name (e.g. <code>destination-rule-watch-ai-seen-log</code>) and every run appends its new notifications with the date to that named dataset on your account — one list across months to connect to Google Sheets or your BI tool once. Empty = off. Costs nothing extra.",
            "default": ""
          },
          "reportBrandName": {
            "title": "Report prepared for (client name)",
            "type": "string",
            "description": "API only — hidden on the form. A client or member organisation: the REPORT page and the digest open with 'Prepared for <name>' — one saved task per client. Empty = no line.",
            "default": ""
          },
          "sourceMode": {
            "title": "Where do the notifications come from?",
            "enum": [
              "live",
              "dataset",
              "list"
            ],
            "type": "string",
            "description": "The mode that runs = this field, except <code>{}</code> = the free demo. <b>live</b> reads the WTO ePing file itself (no Store Actor, any plan); <b>dataset</b> / <b>list</b> filter and score notification rows you already have. The chosen mode with your own records always runs; only the untouched sample + countries / HS codes / keywords you typed switch to the live read.",
            "default": "live"
          },
          "autoSwitchToLive": {
            "title": "Typed search next to the sample starts the live search (API only)",
            "type": "boolean",
            "description": "API only — hidden on the form. On (default, Console runs only): search terms typed next to the untouched sample records start the live search (spend-capped; <code>OUTPUT.switchedToLive</code> names them). Off: the mode you send is the mode that runs — the sample stays the free demo and the status names the terms it did not search. Over the API the mode you send is always the mode that runs.",
            "default": true
          },
          "failOnSourceError": {
            "title": "Fail the run when no notification could be loaded",
            "type": "boolean",
            "description": "API only — hidden on the form. true = every run that loaded no notification because a source refused or failed ends FAILED, so a schedule's failed-run alert fires (the Store-Actor fallback refused by your plan included). The WTO file down with no cached copy is FAILED either way.",
            "default": false
          },
          "datasetId": {
            "title": "Dataset",
            "type": "string",
            "description": "Only for <b>dataset</b> mode. Pick the dataset so the Actor is granted read access to it."
          },
          "itemsList": {
            "title": "Notifications to process",
            "type": "array",
            "description": "Only for <b>list</b> mode. JSON array of notification rows — from an earlier run, your own sheet or rows copied from the WTO file with its own column titles. Required on every row: <code>title</code> (or <code>name</code>) and <code>documentSymbol</code>; optional: any field the README's <i>List-mode rows</i> table names — a row missing a required field is skipped and counted in the status."
          },
          "maxDiscoveryChargeUsd": {
            "title": "Max source spend (USD)",
            "minimum": 0.01,
            "maximum": 1000,
            "type": "number",
            "description": "API only — hidden on the form. Cap on what a Store source Actor run may charge your account. The built-in ePing reader runs none, so it never applies to the form's modes — $0.50 for an API call that leaves it out.",
            "default": 0.5
          },
          "discoveryActorId": {
            "title": "Source Actor (advanced)",
            "type": "string",
            "description": "API only — hidden on the form. Used only when an API call turns the built-in reader off; this Actor reads the WTO file itself.",
            "default": "apify/website-content-crawler"
          },
          "discoveryInput": {
            "title": "Source Actor input",
            "type": "object",
            "description": "API only — hidden on the form. Passed to the source Actor only when an API call turns the built-in reader off; rows you already have go into <code>itemsList</code> (list mode)."
          },
          "maxToProcess": {
            "title": "Max notifications to score per run",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "API only — hidden on the form. Upper bound on how many notifications are scored in one run (controls run time). Default = 3 × max qualified."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "Qualified notifications are POSTed here as JSON (Zapier, Make, n8n, your CRM). For Google Sheets / Slack you can also use Apify's built-in Integrations tab. Stored encrypted — Zapier / Make hook URLs carry their secret in the path."
          },
          "webhookHeaders": {
            "title": "Webhook headers (API only)",
            "type": "object",
            "description": "API only — hidden on the form. Extra HTTP headers for the webhook, e.g. <code>{\"Authorization\": \"Bearer …\"}</code>. Stored encrypted by Apify, never logged."
          },
          "webhookBatchSize": {
            "title": "Webhook batch size (API only)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "API only — hidden on the form. 1 = one POST per notification the moment it is ready. Higher = one POST per N notifications.",
            "default": 1
          },
          "webhookSecret": {
            "title": "Webhook signing secret (API only)",
            "type": "string",
            "description": "API only — hidden on the form. Any random string. Every webhook POST then carries <code>X-Signature: sha256=&lt;HMAC-SHA256 of the raw body with this secret&gt;</code>, so your endpoint can verify it came from this Actor. Stored encrypted by Apify, never logged."
          },
          "dedupeStoreName": {
            "title": "Dedupe store name (API only)",
            "type": "string",
            "description": "API only — hidden on the form. Key-value store used for cross-run memory. Left at the default, the memory is kept per search (source and search terms): rewording <code>goalDescription</code> keeps it, so a scheduled run never re-delivers what you already have, and another search starts its own list. Running it for several clients on one account, type one name per client.",
            "default": "destination-rule-watch-ai-seen"
          },
          "discoveryTimeoutSecs": {
            "title": "Source run timeout, seconds (API only)",
            "minimum": 60,
            "maximum": 86400,
            "type": "integer",
            "description": "API only — hidden on the form. How long the source Store Actor may run before its partial results are used — never more than 60 % of the run's time left, so the AI, the charges and the digest keep the rest. Raise it (and the run timeout) when the status says the source stopped early.",
            "default": 3600
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL (API only)",
            "type": "string",
            "description": "API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Slack incoming-webhook URL for the digest."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL (API only)",
            "type": "string",
            "description": "API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Discord channel webhook URL for the digest."
          },
          "teamsWebhookUrl": {
            "title": "Microsoft Teams webhook URL (API only)",
            "type": "string",
            "description": "API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Teams Workflows webhook URL for the digest."
          },
          "googleChatWebhookUrl": {
            "title": "Google Chat webhook URL (API only)",
            "type": "string",
            "description": "API only — hidden on the form, where <code>sendAlertsTo</code> takes it. Google Chat space webhook URL for the digest."
          },
          "telegramUrl": {
            "title": "Telegram sendMessage link (API only)",
            "type": "string",
            "description": "API only — hidden on the form, where <code>sendAlertsTo</code> takes it. The bot's sendMessage link with its chat_id."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}