weegloo-webhook

Configure Weegloo Webhooks that react to Space events by calling a URL or running a Script.

1|2|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/weeglooapi/weegloo-mcp-plugin --skill weegloo-webhook-weeglooapi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weegloo-webhook
Source: https://github.com/weeglooapi/weegloo-mcp-plugin/tree/main/plugins/weegloo/skills/weegloo-webhook
Command: npx skills add https://github.com/weeglooapi/weegloo-mcp-plugin --skill weegloo-webhook-weeglooapi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up event-driven reactions in a Weegloo Space requires knowing the exact Webhook resource contract — topic syntax, filter operators, the url-XOR-script rule, transformation templating, and permission constraints. This Skill encodes that contract so an agent can create correct Webhooks without trial-and-error API calls. ## Core Features & Use Cases - Event subscriptions with topics and filters: Subscribe to Content, ContentType, Media, or Comment events (Create, Save, Publish, etc.) with wildcard support and EQ/NE/IN/REGEX filters on sys.id, content type, or editor. - Two mutually exclusive actions: POST a Transformation-shaped request to an external URL with secret headers and Basic auth, or run a Script in the Space that receives the triggering resource as its payload. - Operational guardrails: Covers runAs attribution (HookOwner vs EventUser), the SETTING_WEBHOOK permission requirement, SpaceAccessToken limitations, loop protection, and the Script-deletion block while a Webhook references it. - Use Case: When content is published, notify an external search index by firing a Webhook on Content.Publish filtered to one ContentType, running a Script that POSTs the item and patches an indexedAt field back onto it. ## Quick Start Create a Weegloo Webhook that fires on Content.Publish for a specific ContentType and runs my indexing Script.

Frequently Asked Questions about weegloo-webhook

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Weegloo Webhook that fires when content is published?

Create a Webhook with topics set to ["Content.Publish"], optionally filtered by sys.contentType.sys.id, and set either url for an external POST or script to run a Space Script. Use the cma_* Webhook MCP tools rather than calling the CMA HTTP endpoints directly.

What is the difference between a Weegloo Webhook and a Weegloo Script?

A Webhook only triggers on Space events and either calls an external URL or starts a Script; it never writes results back itself. A Script performs the actual work, such as calling an external API and writing results into Content or Media.

Can a Weegloo Webhook both call a URL and run a Script?

No, the url and script fields are mutually exclusive. Setting both or neither is rejected with WGL400042 on create or PUT and WGL422061 on PATCH, so choose exactly one action per Webhook.

Why is my Weegloo Webhook not firing on ContentType or Comment events?

With runAs set to EventUser, ContentType and Comment events carry no user, so the Script is not executed and the attempt is logged as a skipped 422 call. Use HookOwner if you need those events to fire.

Can a SpaceAccessToken manage Weegloo Webhooks?

No, a SpaceAccessToken cannot manage Webhooks at all, even with SETTING_WEBHOOK on its bound role. Author Webhooks from a console session or a Personal Access Token instead.

When should I use a Weegloo Scheduler instead of a Webhook?

Use a Scheduler for time-driven work like nightly jobs or periodic syncs, since a Webhook only reacts to events, not a clock. Do not approximate schedules by subscribing to unrelated events.