Real-time event delivery
Get notified instantly when things happen in your community. HMAC-signed payloads, automatic retries with exponential backoff, and full delivery logs.
Overview
Webhooks send HTTP POST requests to your server when events occur in your community. Create them from Admin → Developer API → Webhooks tab.
Setup
- Go to Admin → Developer API → Webhooks tab
- Click Create Webhook
- Enter a name (e.g., "Slack Notifications") and your HTTPS endpoint URL
- Select which events to subscribe to (or leave empty for all events)
- Save the signing secret securely. It's shown only once
- Click Test to send a test ping and verify delivery. It arrives as the event
test.ping, withdataholdingmessage,webhookIdandwebhookName
Payload Format
Every webhook delivery is a JSON POST request with a consistent envelope structure.
{
"event": "member.joined",
"timestamp": "2026-03-28T14:30:00Z",
"communityId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"data": {
"memberId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"userId": "7f3c...",
"rejoined": false,
"attribution": null
}
}| Field | Type | Description |
|---|---|---|
| event | string | The event type in dotted notation (e.g. member.joined) |
| timestamp | string | ISO 8601 UTC timestamp of when the event occurred |
| communityId | string | GUID of the community where the event occurred |
| data | object | Event-specific data, varies by event type. It never includes email addresses. member.* events and the course events about a member (course.lesson_completed, course.completed) carry memberId, which you can look up through the API (GET /members/{memberId}). Content events name their author or editor (authorId, createdById, updatedById), most other events about a person carry userId, their account id, and some payment and refund events name no one. The API does not look up account ids, and a message posted with an API key carries userId: "apikey_...". New fields can be added at any time, so ignore ones you do not recognize |
Delivery Headers
Every webhook delivery includes these custom headers for verification and debugging.
sha256={hex_digest}member.joined)application/json; charset=utf-8MemberPad-Webhook/1.0Verifying Signatures
Always verify the X-MemberPad-Signature header to ensure the payload was sent by MemberPad and hasn't been tampered with. Compute the HMAC-SHA256 of the raw request body using your webhook's signing secret and compare. The signature covers the body only, not the timestamp header, so it proves the payload came from MemberPad but not when: use X-MemberPad-Delivery to ignore a delivery you have already processed.
import crypto from "crypto";
import express from "express";
const SECRET = "whsec_your_signing_secret";
const app = express();
// Use raw body for accurate HMAC computation
app.use(express.json({
verify: (req, res, buf) => { req.rawBody = buf; }
}));
app.post("/webhooks/memberpad", (req, res) => {
const signature = req.headers["x-memberpad-signature"];
const expected = "sha256=" + crypto
.createHmac("sha256", SECRET)
.update(req.rawBody)
.digest("hex");
// timingSafeEqual throws when the byte lengths differ, so compare those first
const got = Buffer.from(typeof signature === "string" ? signature : "");
const want = Buffer.from(expected);
if (got.length !== want.length || !crypto.timingSafeEqual(got, want)) {
return res.status(401).send("Invalid signature");
}
// Signature valid. Process the event
const { event, data } = req.body;
console.log(`Received: ${event}`, data);
// Return 200 quickly. Do heavy work asynchronously
res.status(200).send("OK");
});
app.listen(3000);timingSafeEqual (Node.js), hmac.compare_digest (Python), or constant-time comparison to prevent timing attacks.Retries & Exponential Backoff
If your endpoint returns a non-2xx status code, times out (10 seconds), or is unreachable, MemberPad will retry the delivery with exponential backoff.
After 5 failed attempts, the delivery is marked as Exhausted. You can manually retry any failed or exhausted delivery from the admin panel at any time, which gives it 5 more attempts. Test pings are sent once and not retried, and a failed one counts toward the pause below like any other delivery.
If 5 deliveries in a row end up Exhausted, the webhook is paused and the community owner is notified (also when the first one is exhausted). Events that happen while a webhook is paused are not queued for it and are never delivered. A test or retry started while it is paused waits, and goes out within about ten minutes of turning the webhook back on, which also resets the count. A delivery that fails because of a problem on MemberPad's side, before your endpoint is called, is still marked Exhausted, but it does not count toward the pause and sends no notification.
| Spec | Value | |
|---|---|---|
| Max attempts | 5 | |
| Timeout | 10 seconds per attempt | |
| Success | Any 2xx HTTP status code | |
| Failure | Non-2xx status, timeout, or connection error | |
| Redirects | Not followed (returns the redirect status as a failure) | |
| Endpoint | Public HTTPS only. No username or password in the URL; private, link-local and platform addresses are refused, also at send time |
Best Practices
- Return 200 immediately. Do heavy processing asynchronously. MemberPad waits only 10 seconds before timing out.
- Verify signatures on every request. Never skip verification, even in development.
- Handle duplicate deliveries. Use the
X-MemberPad-Deliveryheader (unique per delivery) to deduplicate if a retry succeeds after a timeout. - Subscribe only to events you need. This reduces noise and unnecessary traffic to your endpoint.
- Monitor the delivery log. Check the Webhooks tab in Admin → Developer API for failed deliveries and error details.
- Use HTTPS only. MemberPad rejects non-HTTPS webhook URLs.
- Keep your signing secret secure. Store it in environment variables or a secrets manager, never in source code.
Event Types
23 event types across 7 categories. Subscribe to all events or select specific ones when creating a webhook. Events caused through the API carry every field the app's version has, plus a few extras: content and apiKeyId on chat.message_posted, and startsAt on event.created.
| Event | Description |
|---|---|
| Membership | |
| member.joined | A new member joined the community |
| member.left | A member was removed or banned. A member who leaves on their own keeps their membership and does not fire it. The member is blocked from then on, so GET /members/{memberId} returns 404 for them |
| member.role_changed | A member's role was changed (e.g., promoted to Admin) |
| Subscriptions | |
| subscription.created | A new subscription was started |
| subscription.cancelled | A subscription was canceled. With scheduled: true the cancellation takes effect at effectiveAt and the member keeps access until then; a second subscription.cancelled with scheduled: false follows when it actually ends (its own delivery, so treat the pair as one cancellation). If the member resumes before effectiveAt, no event is sent and the second one never comes; a later subscription.renewed means it was not canceled. accessRevoked says whether this event took the member's paid access away |
| subscription.renewed | A subscription was successfully renewed |
| subscription.plan_changed | A member upgraded or downgraded their plan |
| Payments | |
| payment.succeeded | A payment was successfully processed. amount is in major units (9.99, not cents). A payment made in the App Store (railapple_iap) for a product or paid content also carries currency, the buyer's currency in lowercase ISO 4217, which outside the US is not dollars; other payments are in US dollars |
| payment.failed | A payment attempt failed |
| payment.refund_issued | A refund was issued |
| Content | |
| post.published | A new post was published. Also fires for a post imported through the API with a date in the past |
| post.updated | An existing post was updated |
| course.published | A new course was published |
| course.lesson_completed | A member completed a course lesson |
| course.completed | A member completed an entire course |
| event.created | A new event was created |
| event.updated | An event was updated |
| event.rsvp | A member said they are going to an event (only "going" fires this) |
| Commerce | |
| product.purchased | A digital product was purchased. An App Store purchase carries currency with its amount, as on payment.succeeded |
| Engagement | |
| comment.created | A new comment was posted on a post (with postId) or on a video in the library (with videoId) |
| chat.message_posted | A message was posted in a chat room. isBot is true when an API key posted it, so a chat bridge can skip its own messages. For a chat action that posts to the room, the member's command line fires this event and the reply does not; read room replies with GET /chat/rooms/{roomId}/messages. A private chat action's command and reply never reach the room: they fire nothing and are not returned by that call |
| Support | |
| support_ticket.created | A new support ticket was submitted |
| feature_request.created | A new feature request was submitted |