यह कहाँ चलता है
Webhooks Plugin Gateway process के अंदर चलता है। यदि आपका Gateway किसी दूसरी machine पर चलता है, तो Plugin को उस Gateway host पर install और configure करें, फिर Gateway को restart करें।routes configure करें
plugins.entries.webhooks.config के अंतर्गत config सेट करें:
enabled: वैकल्पिक, defaulttrueहैpath: वैकल्पिक, default/plugins/webhooks/<routeId>हैsessionKey: आवश्यक session जो bound TaskFlows का owner होता हैsecret: आवश्यक shared secret या SecretRefcontrollerId: बनाए गए managed flows के लिए वैकल्पिक controller iddescription: वैकल्पिक operator note
secret inputs:
- Plain string
- SecretRef जिसमें
source: "env" | "file" | "exec"हो
Security model
हर route को अपने configuredsessionKey की TaskFlow authority के साथ act करने के लिए trusted माना जाता है।
इसका अर्थ है कि route उस session के owned TaskFlows को inspect और mutate कर सकता है, इसलिए
आपको चाहिए:
- प्रति route strong unique secret उपयोग करें
- inline plaintext secrets के बजाय secret references को प्राथमिकता दें
- routes को workflow के लिए उपयुक्त सबसे narrow session से bind करें
- केवल वही specific Webhook path expose करें जिसकी आपको जरूरत है
- Shared-secret authentication
- Request body size और timeout guards
- Fixed-window rate limiting
- In-flight request limiting
api.runtime.tasks.managedFlows.bindSession(...)के माध्यम से owner-bound TaskFlow access
Request format
इनके साथPOST requests भेजें:
Content-Type: application/jsonAuthorization: Bearer <secret>याx-openclaw-webhook-secret: <secret>
Supported actions
Plugin वर्तमान में ये JSONaction values स्वीकार करता है:
create_flowget_flowlist_flowsfind_latest_flowresolve_flowget_task_summaryset_waitingresume_flowfinish_flowfail_flowrequest_cancelcancel_flowrun_task
create_flow
Route के bound session के लिए managed TaskFlow बनाता है।
Example:
run_task
मौजूदा managed TaskFlow के अंदर managed child task बनाता है।
Allowed runtimes हैं:
subagentacp