# Set Webhook

> A skill that allows the agent to setup a webhook site so that it can receive events.

- Skill: `mainmatter/set-webhook` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add mainmatter/set-webhook`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mainmatter/set-webhook/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: mainmatter (https://skillmd.com/u/mainmatter)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/mainmatter/set-webhook

---


To setup a webhook site webhook you first need to curl a GET request to `https://set-webhook.val.run?token=$WEBHOOK_API_KEY` so that the webhook can actually send the information to your machine.

After that you can invoke the script in `./scripts/webhook.js` to setup the listeners that will send you new messages whenever the webhook has something.

```bash
node ./scripts/webhook.js
```

