# webhook-to-http ## 解決什麼問題 最小可用範例:用戶 POST 到 arcrun webhook,arcrun 把整個 payload 轉發到另一個 HTTP API。 適合測試 arcrun 連通性、做簡單的 API 橋接、event forwarding。 ## 怎麼觸發 ```bash curl -X POST https://cypher.arcrun.dev/webhooks/named/webhook_to_http/trigger \ -H "X-Arcrun-API-Key: ak_xxx" \ -H "Content-Type: application/json" \ -d '{"hello": "world"}' ``` ## 預期結果 - response 含 `success: true` 跟下游 httpbin 回的 echo - 下游 URL 收到 `{received: {hello: "world"}, timestamp: "2026-..."}` ## 改成你自己的 - `forward.url` 改你想打的 API - `body_json` 改你要送的 payload schema - 需要 auth header → `forward.headers` 加(或用 credentials 機制) ## 學到什麼 - 最簡單的 flow:input → 單一節點 - `{{input}}` 取得 trigger 時 POST 進來的整份 JSON - `body_json` 結構化 body(不是 string)