Skip to content

Developers

Webhooks Guide

Effective date: November 10, 2026

Overview

A webhook tells your own tools that something happened in your community. When a member joins, a payment succeeds, or a learner finishes a course, Upskwela sends an HTTPS POST request with a JSON body to a URL you choose. Use it to add members to a CRM or email list, update a spreadsheet, grant a Discord role, or start a flow in Zapier, Make, or n8n.

Community owners and moderators manage webhooks in the app under Automations, then Webhooks. A community can have up to 5 endpoints.

1. Set Up an Endpoint

  1. Open your community, then Automations, then Webhooks.
  2. Click Add endpoint. Enter a public URL that starts with https:// and choose the events it receives.
  3. Copy the signing secret that is shown. You can see it again later under Signing secret in the endpoint menu.
  4. Click Send test event. Your endpoint receives a ping event and the result appears at once.
  5. Open Deliveries to see each request, the response, and to resend it.

2. Event Format

Every event uses the same envelope. Only the content of data.object changes with the event type.

{
  "id": "evt_03cf9d5e1d384e6d8dce9e26ed67f775",
  "type": "member.joined",
  "api_version": "2026-11-10",
  "created_at": "2026-11-10T08:00:00.000Z",
  "community_id": "d2d6a7c0-b5db-4a93-b2e6-1618605cb031",
  "data": {
    "object": {
      "member": {
        "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
        "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
        "first_name": "Ana",
        "last_name": "Reyes",
        "name": "Ana Reyes",
        "email": "[email protected]",
        "role": "LEARNER",
        "tier": {
          "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
          "name": "Gold",
          "price": 499,
          "currency": "PHP",
          "billing_cycle": "MONTHLY"
        },
        "joined_at": "2026-11-10T08:00:00.000Z"
      },
      "joined_via": "paid"
    }
  }
}
  • id identifies the event. It is the same on every retry and on every endpoint, so use it to ignore duplicates.
  • type is the event type, listed in the event reference.
  • api_version is the version of the payload shapes.
  • created_at is when the event happened, in UTC.
  • community_id is the community the event belongs to.
  • data.object is a full snapshot taken when the event happened. You do not need to call Upskwela to use it.

Each request also carries these headers:

  • Upskwela-Signature: the timestamp and signature of the request.
  • Upskwela-Event-Id: the same value as id.
  • Upskwela-Event-Type: the same value as type.

3. Verify the Signature

Anyone who learns your URL can send requests to it. Verify the signature so that you act only on requests from Upskwela. The header looks like this:

Upskwela-Signature: t=1794297600,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
  1. Read t (a Unix timestamp in seconds) and v1 from the header.
  2. Compute an HMAC-SHA256, with your signing secret as the key, of the timestamp, a dot, and the raw request body: <t>.<raw body>.
  3. Compare the result, as lowercase hex, with v1 using a constant-time comparison.
  4. Reject the request when the timestamp is more than 5 minutes old.

Use the raw body exactly as received. A body that was parsed and serialized again can differ by a space and fail the check.

Node.js

import { createHmac, timingSafeEqual } from 'node:crypto';

// rawBody must be the exact bytes of the request body, before any JSON parsing.
export function verifyUpskwelaWebhook(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(signatureHeader.split(',').map(part => part.split('=')));
  const timestamp = Number(parts.t);
  if (!timestamp || !parts.v1) return false;
  // Reject requests older than 5 minutes.
  if (Math.abs(Date.now() / 1000 - timestamp) > 300) return false;

  const expected = createHmac('sha256', secret).update(`${timestamp}.${rawBody}`).digest();
  const received = Buffer.from(parts.v1, 'hex');
  return expected.length === received.length && timingSafeEqual(expected, received);
}

Python

import hashlib
import hmac
import time


def verify_upskwela_webhook(raw_body: bytes, signature_header: str, secret: str) -> bool:
    parts = dict(part.split("=", 1) for part in signature_header.split(","))
    timestamp, signature = parts.get("t"), parts.get("v1")
    if not timestamp or not signature:
        return False
    # Reject requests older than 5 minutes.
    if abs(time.time() - int(timestamp)) > 300:
        return False

    signed = timestamp.encode() + b"." + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, signature)

PHP

<?php

function verify_upskwela_webhook(string $rawBody, string $signatureHeader, string $secret): bool
{
    $parts = [];
    foreach (explode(',', $signatureHeader) as $part) {
        [$key, $value] = array_pad(explode('=', $part, 2), 2, '');
        $parts[$key] = $value;
    }
    if (empty($parts['t']) || empty($parts['v1'])) {
        return false;
    }
    // Reject requests older than 5 minutes.
    if (abs(time() - (int) $parts['t']) > 300) {
        return false;
    }

    $expected = hash_hmac('sha256', $parts['t'] . '.' . $rawBody, $secret);
    return hash_equals($expected, $parts['v1']);
}

Rotating the secret replaces it at once. Requests sent after the rotation are signed with the new secret, so update your receiver straight away.

4. Delivery and Retries

  • Respond quickly with a 2xx status. A delivery succeeds when your endpoint answers with any 2xx status within 10 seconds. Do slow work after you respond.
  • Failures are retried. Any other status, a timeout, or a connection error is retried up to 8 times over about 24 hours, with growing delays. Redirects are not followed.
  • Expect duplicates. Delivery is at least once. Store the event id and ignore one you have already handled.
  • Do not rely on order. Events can arrive out of order. Use created_at when order matters.
  • Failing endpoints are disabled. When every delivery to an endpoint has failed for 3 days, Upskwela disables it and notifies the community managers. Events that happen while an endpoint is disabled are not sent later. Enable it again in the app.
  • The log is kept for 30 days. You can resend any logged delivery. A resend carries the same event id.

5. Use a No-Code Tool

Automation platforms can receive webhooks without any code. These steps use Zapier; Make and n8n have an equivalent webhook trigger.

  1. In Zapier, create a Zap and choose Webhooks by Zapier as the trigger, with the Catch Hook event.
  2. Copy the webhook URL that Zapier gives you.
  3. In Upskwela, add an endpoint with that URL and choose the events you want.
  4. Click Send test event in Upskwela, then test the trigger in Zapier so it finds the request.
  5. Add a filter step on type when one Zap receives more than one event type.
  6. Add your action, for example adding data.object.member.email to an email list.

A catch-all webhook trigger does not verify signatures. Keep the URL private, and use a code step or your own server when you need verification.

6. Event Reference

Amounts are numbers in Philippine pesos. Times are ISO 8601 in UTC. A field that does not apply is null. Each example shows data.object.

member.joined

A person becomes an active member by any path: a free join, an approved request, an accepted invitation, or a successful payment.

joined_via is free, request_approved, invitation, or paid. tier is null for a member on the free tier. A paid join also sends membership.payment_succeeded.

{
  "member": {
    "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "role": "LEARNER",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "joined_at": "2026-11-10T08:00:00.000Z"
  },
  "joined_via": "paid"
}

member.join_requested

A person asks to join and waits for approval.

member.joined follows only after the request is approved.

{
  "member": {
    "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "role": "LEARNER",
    "tier": null,
    "joined_at": "2026-11-10T08:00:00.000Z"
  }
}

member.left

A member leaves the community on their own.

{
  "member": {
    "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "role": "LEARNER",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "joined_at": "2026-11-10T08:00:00.000Z"
  }
}

member.removed

A manager removes or bans a member.

reason is removed or banned.

{
  "member": {
    "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "role": "LEARNER",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "joined_at": "2026-11-10T08:00:00.000Z"
  },
  "reason": "removed"
}

membership.payment_succeeded

A membership payment succeeds, whether it is the first payment or a renewal.

is_renewal is false for the member’s first successful payment.

{
  "member": {
    "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "role": "LEARNER",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "joined_at": "2026-11-10T08:00:00.000Z"
  },
  "payment": {
    "id": "9b305da3-9ce4-4cf2-a878-a144805f12cf",
    "amount": 499,
    "currency": "PHP",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "billing_cycle": "MONTHLY",
    "is_renewal": false,
    "reference": "member_session_8c1d",
    "paid_at": "2026-11-10T08:00:00.000Z",
    "failed_at": null,
    "access_ends_at": "2026-12-10T15:59:59.000Z"
  }
}

membership.payment_failed

A membership payment fails.

paid_at is null and failed_at is set.

{
  "member": {
    "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "role": "LEARNER",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "joined_at": "2026-11-10T08:00:00.000Z"
  },
  "payment": {
    "id": "9b305da3-9ce4-4cf2-a878-a144805f12cf",
    "amount": 499,
    "currency": "PHP",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "billing_cycle": "MONTHLY",
    "is_renewal": false,
    "reference": "member_session_8c1d",
    "paid_at": null,
    "failed_at": "2026-11-10T08:00:00.000Z",
    "access_ends_at": "2026-12-10T15:59:59.000Z"
  }
}

membership.expiring

A reminder that a member’s paid access is about to end is due.

Sent once per reminder, so a member can receive more than one before access ends.

{
  "member": {
    "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "role": "LEARNER",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "joined_at": "2026-11-10T08:00:00.000Z"
  },
  "access_ends_at": "2026-12-10T15:59:59.000Z",
  "days_until_expiry": 3
}

membership.expired

A member’s paid access has ended.

{
  "member": {
    "id": "3f7cc10d-266d-4342-8496-0a2415af4d15",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "role": "LEARNER",
    "tier": {
      "id": "b1885585-7d40-472b-a76d-a26d5ecfb1fa",
      "name": "Gold",
      "price": 499,
      "currency": "PHP",
      "billing_cycle": "MONTHLY"
    },
    "joined_at": "2026-11-10T08:00:00.000Z"
  },
  "access_ends_at": "2026-12-10T15:59:59.000Z",
  "days_until_expiry": 0
}

course.purchased

A course purchase is paid, by a signed-in buyer or a guest.

coupon is null when no coupon was used.

{
  "buyer": {
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]"
  },
  "course": {
    "id": "5a6f0c53-6f43-4a2b-9a0e-1f6f0d3f6f11",
    "title": "Launch 101"
  },
  "payment": {
    "id": "9b305da3-9ce4-4cf2-a878-a144805f12cf",
    "amount": 1120,
    "currency": "PHP",
    "coupon": {
      "code": "LAUNCH20",
      "discount_amount": 250
    },
    "reference": "pr-0f3c1a7e",
    "paid_at": "2026-11-10T08:00:00.000Z"
  }
}

course.completed

A learner completes every lesson of a course.

{
  "learner": {
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]"
  },
  "course": {
    "id": "5a6f0c53-6f43-4a2b-9a0e-1f6f0d3f6f11",
    "title": "Launch 101"
  },
  "completed_at": "2026-11-10T08:00:00.000Z"
}

resource.purchased

A digital product purchase is paid.

{
  "buyer": {
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]"
  },
  "resource": {
    "id": "0c1b7a52-2f0e-4d6a-8a55-0d3e3b0a9c21",
    "title": "Notion templates"
  },
  "payment": {
    "id": "9b305da3-9ce4-4cf2-a878-a144805f12cf",
    "amount": 1120,
    "currency": "PHP",
    "coupon": null,
    "reference": "pr-0f3c1a7e",
    "paid_at": "2026-11-10T08:00:00.000Z"
  }
}

order.paid

A shop order is paid.

{
  "buyer": {
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]"
  },
  "order": {
    "id": "7d2c2a8e-6c1e-4b58-9a36-4d7b2a0f5e10",
    "fulfillment_status": "PENDING",
    "line_items": [
      {
        "product": {
          "id": "a3c9e0d1-5b7f-4f0a-8f2e-6b1d9c3e7a44",
          "title": "Community mug"
        },
        "quantity": 1,
        "unit_price": 500
      }
    ]
  },
  "payment": {
    "id": "9b305da3-9ce4-4cf2-a878-a144805f12cf",
    "amount": 1120,
    "currency": "PHP",
    "coupon": null,
    "reference": "pr-0f3c1a7e",
    "paid_at": "2026-11-10T08:00:00.000Z"
  }
}

event.attendee_confirmed

An attendee is confirmed for an event, by a free registration or a paid ticket.

ticket and payment are null for a free registration.

{
  "attendee": {
    "id": "c7a1b2d3-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
    "user_id": "1e5c559c-5eb1-40a7-ab53-ab4db6ca1b68",
    "first_name": "Ana",
    "last_name": "Reyes",
    "name": "Ana Reyes",
    "email": "[email protected]",
    "ticket_number": "TKT-001"
  },
  "event": {
    "id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
    "title": "Live workshop",
    "starts_at": "2026-12-05T10:00:00.000Z"
  },
  "ticket": {
    "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
    "name": "VIP",
    "price": 1000,
    "quantity": 1
  },
  "payment": {
    "id": "9b305da3-9ce4-4cf2-a878-a144805f12cf",
    "amount": 1120,
    "currency": "PHP",
    "coupon": null,
    "reference": "pr-0f3c1a7e",
    "paid_at": "2026-11-10T08:00:00.000Z"
  }
}

ping

You click “Send test event” on an endpoint.

Never part of a subscription. It is attempted once and is not retried.

{
  "endpoint_id": "463e8ab8-f6bd-457e-b677-eaa4be1566e1"
}

7. Personal Data

Webhook events include personal data about your members and buyers, such as names and email addresses. You choose the endpoint, so you are responsible for keeping it, and any service it forwards to, secure, and for using the data lawfully, including under the Data Privacy Act of 2012. See the Business Service Terms and the Privacy Policy.