Skip to main content
Webhooks Reference

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.

Each webhook endpoint gets its own unique signing secret. You can have up to 25 webhooks per community, and each can subscribe to all events or a specific subset.

Setup

  1. Go to Admin → Developer API → Webhooks tab
  2. Click Create Webhook
  3. Enter a name (e.g., "Slack Notifications") and your HTTPS endpoint URL
  4. Select which events to subscribe to (or leave empty for all events)
  5. Save the signing secret securely. It's shown only once
  6. Click Test to send a test ping and verify delivery. It arrives as the event test.ping, with data holding message, webhookId and webhookName

Payload Format

Every webhook delivery is a JSON POST request with a consistent envelope structure.

Webhook Payload
{
  "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
  }
}
FieldTypeDescription
eventstringThe event type in dotted notation (e.g. member.joined)
timestampstringISO 8601 UTC timestamp of when the event occurred
communityIdstringGUID of the community where the event occurred
dataobjectEvent-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.

X-MemberPad-Signature
HMAC-SHA256 signature: sha256={hex_digest}
X-MemberPad-Event
Event type (e.g. member.joined)
X-MemberPad-Delivery
Unique delivery ID (GUID) for tracking
X-MemberPad-Timestamp
ISO 8601 timestamp of the delivery attempt. Not covered by the signature
Content-Type
application/json; charset=utf-8
User-Agent
MemberPad-Webhook/1.0

Verifying 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);
Use timing-safe comparison. Always use 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.

1
Attempt 1
Immediate
2
Attempt 2
+1 minute
3
Attempt 3
+5 minutes
4
Attempt 4
+30 minutes
5
Attempt 5
+2 hours

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.

SpecValue
Max attempts5
Timeout10 seconds per attempt
SuccessAny 2xx HTTP status code
FailureNon-2xx status, timeout, or connection error
RedirectsNot followed (returns the redirect status as a failure)
EndpointPublic 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-Delivery header (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.

EventDescription
Membership
member.joinedA new member joined the community
member.leftA 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_changedA member's role was changed (e.g., promoted to Admin)
Subscriptions
subscription.createdA new subscription was started
subscription.cancelledA 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.renewedA subscription was successfully renewed
subscription.plan_changedA member upgraded or downgraded their plan
Payments
payment.succeededA 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.failedA payment attempt failed
payment.refund_issuedA refund was issued
Content
post.publishedA new post was published. Also fires for a post imported through the API with a date in the past
post.updatedAn existing post was updated
course.publishedA new course was published
course.lesson_completedA member completed a course lesson
course.completedA member completed an entire course
event.createdA new event was created
event.updatedAn event was updated
event.rsvpA member said they are going to an event (only "going" fires this)
Commerce
product.purchasedA digital product was purchased. An App Store purchase carries currency with its amount, as on payment.succeeded
Engagement
comment.createdA new comment was posted on a post (with postId) or on a video in the library (with videoId)
chat.message_postedA 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.createdA new support ticket was submitted
feature_request.createdA new feature request was submitted