Appfolio webhooks events
Handle AppFolio webhook events for property management notifications. Trigger: "appfolio webhook".From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill appfolio-webhooks-eventsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.7 KB, 331 tokens by cl100k_base, as published. Nobody here has run it
appfolio webhooks events | sed 's/\b(.)/\u\1/g'
Overview
AppFolio Stack supports webhooks for lease, payment, and maintenance events.
Webhook Handler
import express from "express";
import crypto from "crypto";
const router = express.Router();
router.post("/webhooks/appfolio", express.raw({ type: "application/json" }), (req, res) => {
const signature = req.headers["x-appfolio-signature"] as string;
const expected = crypto.createHmac("sha256", process.env.APPFOLIO_WEBHOOK_SECRET!)
.update(req.body).digest("hex");
if (!crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {
return res.status(401).json({ error: "Invalid signature" });
}
const event = JSON.parse(req.body.toString());
console.log(\`Event: \${event.type} — \${JSON.stringify(event.data)}\`);
res.status(200).json({ received: true });
});
Event Types
| Event | Trigger | Use Case |
|---|---|---|
lease.created | New lease signed | Update CRM |
lease.expired | Lease ended | Trigger renewal workflow |
payment.received | Rent paid | Update accounting |
maintenance.created | Work order filed | Dispatch vendor |
Resources
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.