The Memberora API
Everything the dashboard does is a call to this API, so anything you can click you can automate. JSON over HTTPS, OpenAPI 3.1, signed webhooks for every event.
Authentication
Create a key in your dashboard under Developers. Send it as a bearer token. A key has full access to its own business only; keep it on your server.
curl https://memberora.com/api/v1/members?limit=10 \ -H "Authorization: Bearer mo_live_xxxxxxxxxx_..."
Base URL: https://memberora.com/api/v1
Conventions
- Money is integer cents in CAD:
"priceCents": 7900is CA$79.00. - Times are ISO 8601 in UTC; each business has a
timezone. - Lists return
{ data, hasMore, nextCursor }; passlimit(max 500) andcursor. - Errors return
{ "error": { "code", "message" } }with a 4xx/5xx status. - Sign-up, chat and join endpoints are rate-limited per IP.
Webhooks
Add an endpoint (dashboard or POST /webhooks) and choose events, or * for all. Each delivery is a JSON POST with headers Memberora-Event, Memberora-Delivery and Memberora-Signature: t=<unix>,v1=<hex>, where v1 is an HMAC-SHA256 of <t>.<raw body> with the endpoint secret. Failed deliveries retry after 1, 5, 30, 120 and 720 minutes. Return any 2xx to acknowledge.
import crypto from "node:crypto";
// rawBody: the exact request body string; header: req.headers["memberora-signature"]
export function verifyMemberora(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
const a = Buffer.from(expected), b = Buffer.from(parts.v1 || "");
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
return fresh && a.length === b.length && crypto.timingSafeEqual(a, b);
}Payload: { "id", "type", "created", "business_id", "data" }. Every business also has a built-in test endpoint that records what it receives, so you can see real payloads before wiring up Zapier or your own code.
Events: member.created member.updated member.deleted subscription.created subscription.updated subscription.frozen subscription.unfrozen subscription.cancelled payment.succeeded payment.failed payment.refunded booking.created booking.waitlisted booking.promoted booking.cancelled checkin.created lead.created lead.updated lead.converted rank.awarded waiver.signed dunning.opened dunning.recovered dunning.suspended import.completed conversation.handoff session.cancelled plan.created plan.updated site.published site.unpublished kiosk.paired kiosk.revoked
Endpoints
Business
| get | /business | Your business profile, modules and settings | API key |
| patch | /business | Update profile, hours, modules or settings | API key |
| post | /business/starter | Apply the starter set for your type of business (plans, classes + weekly schedule, rank ladders) | API key |
| get | /business/plan | Your Memberora plan, trial and active-member count | API key |
| post | /business/plan | Change your Memberora plan (starts a 14-day trial if no card yet) | API key |
| post | /business/plan/card | Link to put a card on file for your Memberora plan | API key |
| post | /business/stripe/connect | Start or resume Stripe Connect onboarding (member payments go to your own Stripe account) | API key |
| post | /business/stripe/refresh | Re-check Stripe Connect status | API key |
Events
| get | /events | Audit log of everything that happened (newest first) | API key |
| get | /event-types | Every webhook event type | public |
Members
| get | /members | List or search members | API key |
| post | /members | Create a member (pass guardianId to add a child to a family) | API key |
| get | /members/{id} | A member with memberships, bookings, payments, family and rank history | API key |
| patch | /members/{id} | Update a member | API key |
| delete | /members/{id} | Delete a member and their history (privacy request) | API key |
| post | /members/{id}/payment-methods | Add a card or PAD account (test mode) or a Stripe payment method id (live) | API key |
| get | /members/{id}/qr.svg | The member's check-in QR code (SVG) | API key |
| post | /households | Group members into a household with one payer | API key |
Ranks
| post | /members/{id}/promote | Award a rank (belt) | API key |
| get | /ranks | Rank ladders (belts) by program | API key |
| post | /ranks | Add a rank to a ladder | API key |
| patch | /ranks/{id} | Change a rank's requirements | API key |
| delete | /ranks/{id} | Remove an unused rank | API key |
| get | /ranks/promotion-list | Who is ready to test (attendance + time in grade) | API key |
Waivers
| post | /members/{id}/waiver | Record a waiver signed at the desk (typed name) | API key |
| get | /waivers | Waiver versions and signature counts | API key |
| post | /waivers | Publish a new waiver version (members re-sign on their next visit) | API key |
| get | /waiver-signatures/{id}/pdf | The signed waiver as a PDF | API key |
Plans
| get | /plans | Memberships, packs, drop-ins, trials and intro offers | API key |
| post | /plans | Create a plan (contract rules are validated per province) | API key |
| patch | /plans/{id} | Update a plan (existing members keep their locked-in price) | API key |
| delete | /plans/{id} | Retire a plan (hidden; current members keep it) | API key |
Memberships
| get | /subscriptions | Memberships, packs and passes | API key |
| post | /subscriptions | Sell a plan to a member (charges their saved card/PAD, or record cash) | API key |
| post | /subscriptions/{id}/freeze | Freeze between two dates (billing pauses) | API key |
| post | /subscriptions/{id}/unfreeze | End a freeze now | API key |
| post | /subscriptions/{id}/cancel | Cancel (end of term/period by default; immediate=true ends it now) | API key |
| post | /subscriptions/{id}/charge | Charge the current period now (or retry an open failed payment) | API key |
Payments
| get | /payments | Payments (newest first) | API key |
| post | /payments | Charge a member (saved card/PAD) or record a cash payment | API key |
| post | /payments/{id}/refund | Refund a payment in full | API key |
| post | /billing/run | Run billing now: renewals, retries, dunning (test mode: settleTestDebits settles PAD instantly) | API key |
| get | /dunning | Failed-payment cases (open first) | API key |
Schedule
| get | /class-types | Classes, appointment types and events | API key |
| post | /class-types | Create a class type | API key |
| patch | /class-types/{id} | Update a class type | API key |
| post | /schedule-templates | Add a weekly recurring slot (generates sessions 4 weeks ahead) | API key |
| delete | /schedule-templates/{id} | Stop a recurring slot (future empty sessions are removed) | API key |
| get | /sessions | Scheduled classes in a date range (default: today + 7 days) | API key |
| post | /sessions | One-off class, event, grading or appointment | API key |
| get | /sessions/{id} | A class with its roster and waitlist | API key |
| patch | /sessions/{id} | Change coach, capacity, notes or the WOD | API key |
| post | /sessions/{id}/cancel | Cancel a class (members are told, credits returned) | API key |
| get | /appointment-slots | Open appointment times for a class type on a date (YYYY-MM-DD) | API key |
| post | /appointments | Book an appointment (creates a 1:1 session and the booking) | API key |
| get | /rooms | Rooms and seat maps | API key |
| post | /rooms | Add a room (rows x cols seat map for reformers/bikes) | API key |
Staff
| get | /staff | Owner, managers, coaches and front desk | API key |
| post | /staff | Add a coach or staff member (no login needed for coaches) | API key |
| patch | /staff/{id} | Update a coach or staff member (bio and photo text show on the public website kit) | API key |
| post | /availability | Set a coach's weekly appointment hours for a type | API key |
Bookings
| get | /bookings | Bookings (filter by class or member) | API key |
| post | /bookings | Book a member into a class (waitlists automatically when full) | API key |
| post | /bookings/{id}/cancel | Cancel a booking (promotes the waitlist) | API key |
Check-in
| post | /checkins | Check a member in by QR (kiosk scan) or member id (owner, API key or a paired kiosk tablet) | API key |
| get | /checkins | Attendance history | API key |
WOD
| post | /wod-results | Log a WOD / benchmark result | API key |
| get | /wod-results | Leaderboard for a WOD title or session | API key |
Leads
| get | /leads | Leads (newest first) | API key |
| post | /leads | Add a lead (consent flags are your record of CASL consent) | API key |
| patch | /leads/{id} | Update a lead's status or notes | API key |
| post | /leads/{id}/convert | Make the lead a member | API key |
Inbox
| get | /conversations | Front-desk conversations (handoffs first) | API key |
| get | /conversations/{id} | A conversation with all messages | API key |
| post | /conversations/{id}/reply | Reply as the owner (also sent by email/SMS when the person left contact details) | API key |
| get | /messages | Outbox: every email/SMS sent on your behalf, with status and CASL basis | API key |
Reports
| get | /reports/summary | MRR, churn, attendance, revenue by plan, failed payments | API key |
| get | /reports/owner-email | The daily owner email (format=html renders it) | API key |
Exports
| get | /exports/{kind} | Download a CSV (members, memberships, payments, attendance, bookings, leads, plans, ranks, waivers) or all.zip. Always free. | API key |
Imports
| post | /imports | Upload a CSV export from your old software; returns the detected source and column mapping | API key |
| get | /imports | Past imports | API key |
| get | /imports/{id} | One import with its mapping and results | API key |
| post | /imports/{id}/run | Run the import (optionally override the mapping); safe to re-run | API key |
Developers
| get | /api-keys | API keys (the secret is shown once, at creation) | API key |
| post | /api-keys | Create an API key (full access to this business; keep it secret) | API key |
| delete | /api-keys/{id} | Revoke an API key | API key |
| get | /webhooks | Webhook endpoints | API key |
| post | /webhooks | Subscribe a URL to events (signed with Memberora-Signature: t=,v1=HMAC-SHA256) | API key |
| patch | /webhooks/{id} | Pause, resume or change events | API key |
| delete | /webhooks/{id} | Delete a webhook endpoint | API key |
| post | /webhooks/{id}/test | Send a webhook.test event now | API key |
| get | /webhooks/{id}/deliveries | Recent deliveries with response codes | API key |
| get | /webhook-sink | What the built-in test endpoint received (point a webhook at testEndpoint to try it) | API key |
Auth
| post | /signup | Create a business and its owner login (no card needed) | public |
| post | /auth/login | Owner/staff login (sets a session cookie) | public |
| post | /auth/reset-request | Email an owner/staff password-reset link | public |
| post | /auth/reset | Set a new owner/staff password from a reset link | public |
| post | /auth/logout | Log out (owner) | public |
| post | /demo | Spin up a 24-hour demo business with sample data and log in | public |
Member app
| get | /public/{slug} | A business's public page: profile, hours, prices | public |
| get | /public/{slug}/schedule | Upcoming classes with spots left | public |
| post | /public/{slug}/join | Join online: account, family, waiver, payment method and first plan in one step | public |
| post | /public/{slug}/leads | Lead capture (website widget, lander forms) | public |
| post | /public/{slug}/chat | AI front desk (web chat). Send text, or an action from a button. | public |
| post | /public/{slug}/login | Member login | public |
| post | /public/{slug}/logout | Member logout | public |
| post | /public/{slug}/magic-link | Email a set-up / sign-in link (imported members and forgotten passwords) | public |
| post | /public/{slug}/claim | Set a password from an emailed link | public |
| get | /public/{slug}/pay/{token} | What a failed-payment link is for | public |
| post | /public/{slug}/pay/{token} | Update the card/PAD from a failed-payment link and retry now | public |
| get | /me | Me: family, memberships, payment methods, upcoming bookings, waiver status | member |
| patch | /me | Update contact details and message preferences | member |
| post | /me/password | Change password | member |
| post | /me/switch | Act for a family member (book, check in, sign) | member |
| post | /me/household | Add a child or partner to my family | member |
| post | /me/bookings | Book a class for me or a family member | member |
| post | /me/bookings/{id}/cancel | Cancel my booking (late cancels may carry a fee) | member |
| post | /me/subscriptions | Buy a membership, pack or pass | member |
| post | /me/subscriptions/{id}/freeze | Freeze my membership (self-serve) | member |
| post | /me/subscriptions/{id}/cancel | Cancel my membership (no phone call, no exit fee) | member |
| post | /me/payment-methods | Add a card or PAD account | member |
| post | /me/payment-methods/setup | Stripe SetupIntent for the secure card/PAD form (live mode) | member |
| post | /me/waiver | Sign the waiver (for me or a child, as guardian) | member |
| get | /me/qr.svg | My (or a family member's) check-in QR | member |
| get | /me/referral | My refer-a-friend link (tracked through AdJump) | member |
| get | /me/messages | My conversation with the front desk | member |
| post | /me/messages | Message the front desk (AI answers; the owner sees everything) | member |
Website
| post | /sites | Publish the public website: a zip, files as JSON, or {url} to snapshot. Live at https://<slug>.memberora.com/ unless publish=false. | API key |
| get | /sites | Website versions (newest first) and which one is live | API key |
| post | /sites/{id}/publish | Make a version live (also the one-click rollback) | API key |
| delete | /sites/live | Take the custom site down (the default member page returns) | API key |
| post | /sites/handoff-tokens | Start a Build-with-AI session: a 24-hour token that can only publish this website, and the one-line prompt for each AI | API key |
| get | /sites/handoff-tokens | Build-with-AI tokens (the secret is only shown at creation) | API key |
| delete | /sites/handoff-tokens/{id} | Revoke a Build-with-AI token | API key |
| post | /sites/build-clicks | Record a Build-with-AI click and what happened (opened=app|web|pending); feeds the 'what worked' table and AdJump site_build_started | API key |
| get | /sites/build-clicks/stats | Which launch route worked, per AI and platform | API key |
| get | /sites/publishable-key | The publishable key used in the AI kit (public by design: reads + lead capture) | API key |
| get | /sites/{id} | One version with its file list | API key |
Website data
| get | /public/{slug}/plans | Public plans with prices, terms and a join link each | API key |
| get | /public/{slug}/classes | Class types (name, length, size, description, ages) | API key |
| get | /public/{slug}/coaches | Coaches and staff shown publicly (name, role, bio) | API key |
| get | /public/{slug}/ranks | Rank / belt ladders | API key |
Kiosk
| post | /kiosk/pairing-codes | Make a 6-digit code to pair a front-desk tablet (valid 10 minutes, one use) | API key |
| post | /kiosk/pair | Redeem a pairing code on the tablet (sets the device cookie) | public |
| get | /kiosk/me | Which business and device this tablet is paired to | API key |
| get | /kiosk/lookup | Find a member by name at the desk (first name + last initial only) | API key |
| post | /kiosk/unpair | Unpair this tablet (forgets the device token) | API key |
| get | /kiosk/devices | Paired tablets | API key |
| delete | /kiosk/devices/{id} | Revoke a tablet (it shows the pairing screen again) | API key |