memberora
Menu ▾
Developers

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.

Download the OpenAPI spec (openapi.json)

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": 7900 is CA$79.00.
  • Times are ISO 8601 in UTC; each business has a timezone.
  • Lists return { data, hasMore, nextCursor }; pass limit (max 500) and cursor.
  • 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/businessYour business profile, modules and settingsAPI key
patch/businessUpdate profile, hours, modules or settingsAPI key
post/business/starterApply the starter set for your type of business (plans, classes + weekly schedule, rank ladders)API key
get/business/planYour Memberora plan, trial and active-member countAPI key
post/business/planChange your Memberora plan (starts a 14-day trial if no card yet)API key
post/business/plan/cardLink to put a card on file for your Memberora planAPI key
post/business/stripe/connectStart or resume Stripe Connect onboarding (member payments go to your own Stripe account)API key
post/business/stripe/refreshRe-check Stripe Connect statusAPI key

Events

get/eventsAudit log of everything that happened (newest first)API key
get/event-typesEvery webhook event typepublic

Members

get/membersList or search membersAPI key
post/membersCreate 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 historyAPI key
patch/members/{id}Update a memberAPI key
delete/members/{id}Delete a member and their history (privacy request)API key
post/members/{id}/payment-methodsAdd a card or PAD account (test mode) or a Stripe payment method id (live)API key
get/members/{id}/qr.svgThe member's check-in QR code (SVG)API key
post/householdsGroup members into a household with one payerAPI key

Ranks

post/members/{id}/promoteAward a rank (belt)API key
get/ranksRank ladders (belts) by programAPI key
post/ranksAdd a rank to a ladderAPI key
patch/ranks/{id}Change a rank's requirementsAPI key
delete/ranks/{id}Remove an unused rankAPI key
get/ranks/promotion-listWho is ready to test (attendance + time in grade)API key

Waivers

post/members/{id}/waiverRecord a waiver signed at the desk (typed name)API key
get/waiversWaiver versions and signature countsAPI key
post/waiversPublish a new waiver version (members re-sign on their next visit)API key
get/waiver-signatures/{id}/pdfThe signed waiver as a PDFAPI key

Plans

get/plansMemberships, packs, drop-ins, trials and intro offersAPI key
post/plansCreate 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/subscriptionsMemberships, packs and passesAPI key
post/subscriptionsSell a plan to a member (charges their saved card/PAD, or record cash)API key
post/subscriptions/{id}/freezeFreeze between two dates (billing pauses)API key
post/subscriptions/{id}/unfreezeEnd a freeze nowAPI key
post/subscriptions/{id}/cancelCancel (end of term/period by default; immediate=true ends it now)API key
post/subscriptions/{id}/chargeCharge the current period now (or retry an open failed payment)API key

Payments

get/paymentsPayments (newest first)API key
post/paymentsCharge a member (saved card/PAD) or record a cash paymentAPI key
post/payments/{id}/refundRefund a payment in fullAPI key
post/billing/runRun billing now: renewals, retries, dunning (test mode: settleTestDebits settles PAD instantly)API key
get/dunningFailed-payment cases (open first)API key

Schedule

get/class-typesClasses, appointment types and eventsAPI key
post/class-typesCreate a class typeAPI key
patch/class-types/{id}Update a class typeAPI key
post/schedule-templatesAdd 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/sessionsScheduled classes in a date range (default: today + 7 days)API key
post/sessionsOne-off class, event, grading or appointmentAPI key
get/sessions/{id}A class with its roster and waitlistAPI key
patch/sessions/{id}Change coach, capacity, notes or the WODAPI key
post/sessions/{id}/cancelCancel a class (members are told, credits returned)API key
get/appointment-slotsOpen appointment times for a class type on a date (YYYY-MM-DD)API key
post/appointmentsBook an appointment (creates a 1:1 session and the booking)API key
get/roomsRooms and seat mapsAPI key
post/roomsAdd a room (rows x cols seat map for reformers/bikes)API key

Staff

get/staffOwner, managers, coaches and front deskAPI key
post/staffAdd 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/availabilitySet a coach's weekly appointment hours for a typeAPI key

Bookings

get/bookingsBookings (filter by class or member)API key
post/bookingsBook a member into a class (waitlists automatically when full)API key
post/bookings/{id}/cancelCancel a booking (promotes the waitlist)API key

Check-in

post/checkinsCheck a member in by QR (kiosk scan) or member id (owner, API key or a paired kiosk tablet)API key
get/checkinsAttendance historyAPI key

WOD

post/wod-resultsLog a WOD / benchmark resultAPI key
get/wod-resultsLeaderboard for a WOD title or sessionAPI key

Leads

get/leadsLeads (newest first)API key
post/leadsAdd a lead (consent flags are your record of CASL consent)API key
patch/leads/{id}Update a lead's status or notesAPI key
post/leads/{id}/convertMake the lead a memberAPI key

Inbox

get/conversationsFront-desk conversations (handoffs first)API key
get/conversations/{id}A conversation with all messagesAPI key
post/conversations/{id}/replyReply as the owner (also sent by email/SMS when the person left contact details)API key
get/messagesOutbox: every email/SMS sent on your behalf, with status and CASL basisAPI key

Reports

get/reports/summaryMRR, churn, attendance, revenue by plan, failed paymentsAPI key
get/reports/owner-emailThe 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/importsUpload a CSV export from your old software; returns the detected source and column mappingAPI key
get/importsPast importsAPI key
get/imports/{id}One import with its mapping and resultsAPI key
post/imports/{id}/runRun the import (optionally override the mapping); safe to re-runAPI key

Developers

get/api-keysAPI keys (the secret is shown once, at creation)API key
post/api-keysCreate an API key (full access to this business; keep it secret)API key
delete/api-keys/{id}Revoke an API keyAPI key
get/webhooksWebhook endpointsAPI key
post/webhooksSubscribe a URL to events (signed with Memberora-Signature: t=,v1=HMAC-SHA256)API key
patch/webhooks/{id}Pause, resume or change eventsAPI key
delete/webhooks/{id}Delete a webhook endpointAPI key
post/webhooks/{id}/testSend a webhook.test event nowAPI key
get/webhooks/{id}/deliveriesRecent deliveries with response codesAPI key
get/webhook-sinkWhat the built-in test endpoint received (point a webhook at testEndpoint to try it)API key

Auth

post/signupCreate a business and its owner login (no card needed)public
post/auth/loginOwner/staff login (sets a session cookie)public
post/auth/reset-requestEmail an owner/staff password-reset linkpublic
post/auth/resetSet a new owner/staff password from a reset linkpublic
post/auth/logoutLog out (owner)public
post/demoSpin up a 24-hour demo business with sample data and log inpublic

Member app

get/public/{slug}A business's public page: profile, hours, pricespublic
get/public/{slug}/scheduleUpcoming classes with spots leftpublic
post/public/{slug}/joinJoin online: account, family, waiver, payment method and first plan in one steppublic
post/public/{slug}/leadsLead capture (website widget, lander forms)public
post/public/{slug}/chatAI front desk (web chat). Send text, or an action from a button.public
post/public/{slug}/loginMember loginpublic
post/public/{slug}/logoutMember logoutpublic
post/public/{slug}/magic-linkEmail a set-up / sign-in link (imported members and forgotten passwords)public
post/public/{slug}/claimSet a password from an emailed linkpublic
get/public/{slug}/pay/{token}What a failed-payment link is forpublic
post/public/{slug}/pay/{token}Update the card/PAD from a failed-payment link and retry nowpublic
get/meMe: family, memberships, payment methods, upcoming bookings, waiver statusmember
patch/meUpdate contact details and message preferencesmember
post/me/passwordChange passwordmember
post/me/switchAct for a family member (book, check in, sign)member
post/me/householdAdd a child or partner to my familymember
post/me/bookingsBook a class for me or a family membermember
post/me/bookings/{id}/cancelCancel my booking (late cancels may carry a fee)member
post/me/subscriptionsBuy a membership, pack or passmember
post/me/subscriptions/{id}/freezeFreeze my membership (self-serve)member
post/me/subscriptions/{id}/cancelCancel my membership (no phone call, no exit fee)member
post/me/payment-methodsAdd a card or PAD accountmember
post/me/payment-methods/setupStripe SetupIntent for the secure card/PAD form (live mode)member
post/me/waiverSign the waiver (for me or a child, as guardian)member
get/me/qr.svgMy (or a family member's) check-in QRmember
get/me/referralMy refer-a-friend link (tracked through AdJump)member
get/me/messagesMy conversation with the front deskmember
post/me/messagesMessage the front desk (AI answers; the owner sees everything)member

Website

post/sitesPublish the public website: a zip, files as JSON, or {url} to snapshot. Live at https://<slug>.memberora.com/ unless publish=false.API key
get/sitesWebsite versions (newest first) and which one is liveAPI key
post/sites/{id}/publishMake a version live (also the one-click rollback)API key
delete/sites/liveTake the custom site down (the default member page returns)API key
post/sites/handoff-tokensStart a Build-with-AI session: a 24-hour token that can only publish this website, and the one-line prompt for each AIAPI key
get/sites/handoff-tokensBuild-with-AI tokens (the secret is only shown at creation)API key
delete/sites/handoff-tokens/{id}Revoke a Build-with-AI tokenAPI key
post/sites/build-clicksRecord a Build-with-AI click and what happened (opened=app|web|pending); feeds the 'what worked' table and AdJump site_build_startedAPI key
get/sites/build-clicks/statsWhich launch route worked, per AI and platformAPI key
get/sites/publishable-keyThe publishable key used in the AI kit (public by design: reads + lead capture)API key
get/sites/{id}One version with its file listAPI key

Website data

get/public/{slug}/plansPublic plans with prices, terms and a join link eachAPI key
get/public/{slug}/classesClass types (name, length, size, description, ages)API key
get/public/{slug}/coachesCoaches and staff shown publicly (name, role, bio)API key
get/public/{slug}/ranksRank / belt laddersAPI key

Kiosk

post/kiosk/pairing-codesMake a 6-digit code to pair a front-desk tablet (valid 10 minutes, one use)API key
post/kiosk/pairRedeem a pairing code on the tablet (sets the device cookie)public
get/kiosk/meWhich business and device this tablet is paired toAPI key
get/kiosk/lookupFind a member by name at the desk (first name + last initial only)API key
post/kiosk/unpairUnpair this tablet (forgets the device token)API key
get/kiosk/devicesPaired tabletsAPI key
delete/kiosk/devices/{id}Revoke a tablet (it shows the pairing screen again)API key