[Extension] Connect for Flarum 2 — Webhooks, REST API, Rules Engine & Zapier
Hi everyone :wave:
I'm excited to share Connect, an automation extension for Flarum 2.0+. It brings outgoing webhooks, a scoped REST API, an in-app if-this-then-that Rules engine, and an embedded Zapier interface to your forum — so you can wire Flarum up to the rest of your stack without writing glue code.
If you've ever wanted a new discussion to ping Slack, a user registration to kick off an email sequence, or a tag to be applied automatically based on post content, this is built for exactly that. It plays nicely with Zapier, Make, IFTTT, and n8n, and can also run automations entirely on-server with no external service at all.
What it does
Outgoing Webhooks — HMAC-signed delivery when discussions are created, replies are posted, or users register. Signatures let the receiving end verify the payload really came from your forum.
Scoped REST API — Issue API keys that can create discussions and replies as authenticated users, so external apps can post into your community.
Rules Engine — Build if-this-then-that automations directly in the admin panel, entirely on-server. No third-party dependency required.
Embedded Zapier — A Zapier interface right in the admin panel with access to 6,000+ apps.
Triggers, conditions & actions
Triggers: discussion.created, post.created, user.registered
Conditions: flexible matching with operators (is, contains, regex, and more)
Actions: post replies, add/remove tags, modify user groups, call webhooks
---
Screenshots
Admin panel

Rule builder

Zapier embed

Installation
composer require ernestdefoe/connect
Then enable it in Admin → Extensions. A running queue worker is recommended so webhook delivery and actions run in the background:
php flarum queue:work
Requirements
- Flarum
^2.0
- PHP
^8.3
- A queue worker (recommended)
- flarum/tags (optional — only needed for tag actions)
---
REST API
| Method | Endpoint | Purpose |
GET | /connect/me | Authenticate and identify the key's user |
POST | /connect/hooks | Subscribe to events |
DELETE | /connect/hooks/{id} | Unsubscribe |
GET | /connect/samples/{event} | Retrieve sample payloads |
POST | /connect/actions/discussions | Create discussions |
POST | /connect/actions/posts | Reply to discussions |
The /connect/samples/{event} endpoint is handy while you're building integrations — it returns a representative payload for each event so you can map fields before going live.
Links
License
Connect is released under the MIT License — free to use, modify, and distribute. See the LICENSE file for details.
Feedback, bug reports, and feature requests are very welcome — please open an issue on GitHub or post over on the support forum. If you find it useful, a :star: on the repo is always appreciated. Happy automating! :rocket: