{
  "schema_version": 1,
  "name": "Post a run result to your webhook",
  "version": 1,
  "description": "After doing the work, read the page and POST a short result to your own HTTPS endpoint. The request is SSRF-hardened (https only, internal/private targets refused) and runs only in a trusted workflow — it sends no cookies or credentials of its own. If your endpoint needs an API token, put it in a header through a {{variable}}.",
  "tags": ["http", "integration"],
  "vars": {
    "target_url": "https://example.com/status",
    "webhook_url": "https://hooks.example.com/ingest"
  },
  "on_error": "screenshot_and_stop",
  "steps": [
    { "open": {} },
    { "goto": { "url": "{{target_url}}" } },
    { "read": { "into": "page_text" } },
    { "http_request": {
      "method": "POST",
      "url": "{{webhook_url}}",
      "headers": { "Content-Type": "text/plain" },
      "body": "{{page_text}}",
      "into": "response"
    } },
    { "close": {} }
  ]
}
