Webhooks & Automations
Inbound GitHub and HMAC agent triggers — payloads and connection endpoints.
Webhooks & Automations
Agents can run when external systems POST events into Weave. Manage trigger definitions on agents; inbound delivery URLs are signature-verified.
Agent trigger APIs
Under Public API Agent House (requires agent scopes):
| Method | Path | Purpose |
|---|---|---|
GET / POST | /api/public/v1/agent-house/agents/:agentId/triggers | List / create triggers |
POST | /api/public/v1/agent-house/agents/:agentId/triggers/:id/run | Manual run |
GET | .../triggers/:id/webhook/connection | Inbound URL + secret metadata |
POST | .../triggers/:id/webhook/rotate-secret | Rotate HMAC secret |
POST | .../triggers/:id/webhook/test | Send a test delivery |
GET | .../triggers/:id/webhook/deliveries | Delivery log |
curl -X POST "https://<APP_HOST>/api/public/v1/agent-house/agents/agt_01.../triggers" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>" \
-H "Content-Type: application/json" \
-d '{
"name": "On GitHub PR",
"type": "webhook",
"enabled": true,
"config": {
"provider": "github"
}
}'Exact type / config fields follow the agent trigger schema in the Agent House module — fetch connection details after create:
curl "https://<APP_HOST>/api/public/v1/agent-house/agents/agt_01.../triggers/trg_01.../webhook/connection" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>"Connection response (shape):
{
"success": true,
"data": {
"url": "https://<APP_HOST>/api/v1/webhooks/...",
"secret": "whsec_...",
"headers": {
"X-Weave-Signature": "sha256=..."
}
}
}GitHub inbound
GitHub agent-trigger intake (server webhook module):
POST https://<APP_HOST>/api/v1/webhooks/github/agent-triggersConfigure the repository webhook to that URL with the secret from webhook/connection. Weave verifies the GitHub signature header before enqueueing the agent run.
Custom HMAC inbound
Point your system at the URL from webhook/connection. Sign the raw body with the shared secret (HMAC-SHA256) and send the digest in the documented signature header.
Example signing sketch:
BODY='{"event":"deploy.finished","service":"web"}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | awk '{print $2}')
curl -X POST "$WEBHOOK_URL" \
-H "Content-Type: application/json" \
-H "X-Weave-Signature: sha256=$SIG" \
-d "$BODY"MCP webhooks tools
Workspace MCP also exposes:
list_webhooks/get_webhook/create_webhook/update_webhook
Use these when automating webhook registration from an IDE client.
Related
- Agent House API
- External MCP for pulling SaaS tools into agents instead of push webhooks