Developers

API, MCP & webhooks

One endpoint speaks the Model Context Protocol (JSON-RPC 2.0 over Streamable HTTP). Agents discover tools with tools/list; a plain GET returns the manifest without auth. Agent-readable version: /llms.txt.

Connect in two steps

  1. Create a key: Account → API & MCP (format mbc_xxxx_…).
  2. Point your client at https://community.maxbio.link/api/mcp with header Authorization: Bearer mbc_….
curl -s https://community.maxbio.link/api/mcp \
  -H "Authorization: Bearer $MBC_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_communities","arguments":{}}}'

Tools (54)

Community tools need community (slug) and staff or admin rights. approval = queued as an approval card when called by the in-app Operator.

list_communitiesaccountList the communities you own or help run, with your role and live counts. Call this first to get slugs.
create_communityapprovalaccountCreate a new community you own. It starts with one 'General' category and a 5-level Expedition ladder.
name *stringCommunity name
descriptionstringWho it's for, one sentence
slugstringOptional URL slug
community_statsstaffCounts and setup progress: members, published/draft courses, posts, upcoming events, cart connection, and the next setup step.
community *stringCommunity slug (run list_communities to see yours)
community_healthstaffEngagement summary: new members, active posters, posts & comments, unanswered posts, at-risk members (joined but silent), top posts.
community *stringCommunity slug (run list_communities to see yours)
daysintegerLook-back window in days (default 14)
update_settingsapprovaladminChange general settings: name, description, about page, privacy, join mode, posting/DM permissions, office hours.
community *stringCommunity slug (run list_communities to see yours)
namestringCommunity name
descriptionstringOne-line description
aboutstringAbout page (Markdown)
is_publicbooleanShow the public front door
join_modestring: open | approval | invite | paidHow people join
members_can_postbooleanMembers may create posts
members_can_dmbooleanMembers may DM each other
office_hours_enabledbooleanHold member posts outside office hours
office_hours_fromstringHH:MM
office_hours_untilstringHH:MM
office_hours_tzstringIANA timezone e.g. Europe/London
office_hours_daysarrayOpen days
update_brandingapprovaladminRestyle the whole community: colours, surface, typeface, corners and images (by URL).
community *stringCommunity slug (run list_communities to see yours)
brand_colorstringHex e.g. #7C3AED (buttons)
accent_colorstringHex (highlights, progress)
surfacestring: snow | tinted | linen | dusk | midnightBackground style
typefacestring: inter | poppins | grotesk | editorial | dm | fraunces | syne | archivoFont pairing
cornersstring: soft | sharpCorner style
icon_urlstringSquare icon image URL
cover_urlstringCover banner URL (1200×400)
header_logo_urlstringWide header logo URL
cover_fitstring: contain | covercontain = show whole banner, cover = crop to fill
set_labelsapprovaladminRename tabs (e.g. Members → Club) and Expedition level names/emoji so the room speaks the client's language.
community *stringCommunity slug (run list_communities to see yours)
tabsobjectTab names to rename
levelsarrayRename Expedition levels
list_categoriesstaffList feed categories in order, with post counts and which is the default.
community *stringCommunity slug (run list_communities to see yours)
create_categoryapprovaladminAdd a feed category (iGloo's AI can't do this — ours can).
community *stringCommunity slug (run list_communities to see yours)
name *stringCategory name
emojistringOne emoji
staff_onlybooleanOnly staff can post here (announcements)
update_categoryapprovaladminRename a category, change its emoji, staff-only flag, or make it the default.
community *stringCommunity slug (run list_communities to see yours)
category_id *stringCategory id
namestringNew name
emojistringEmoji
staff_onlybooleanStaff-only posting
make_defaultbooleanMake this the default
get_onboardingstaffRead the joining questions and join mode.
community *stringCommunity slug (run list_communities to see yours)
configure_onboardingapprovaladminSet the joining questions new members answer. Existing answers are kept (old questions are archived, not deleted).
community *stringCommunity slug (run list_communities to see yours)
questions *arrayReplaces the joining questions (max 8)
list_level_rewardsstaffRead the Expedition ladder: level names, thresholds and rewards.
community *stringCommunity slug (run list_communities to see yours)
set_level_rewardapprovaladminAttach a reward to an Expedition level (and optionally rename it or change its points threshold).
community *stringCommunity slug (run list_communities to see yours)
level *integerLevel number 1-5
type *string: text | course | chat | webhook | nonetext = promise you deliver; course = auto-unlock; chat = owner DMs the text; webhook = signed reward.unlocked
textstringWhat members see / the DM text
course_slugstringFor type=course: which course unlocks
thresholdintegerPoints needed (optional change)
namestringRename the level
emojistringLevel emoji
list_payment_eventsadminRecent cart deliveries and what each one granted or revoked (or why not).
community *stringCommunity slug (run list_communities to see yours)
limitintegerDefault 20
list_membersstaffList members (name, handle, role, level, points, joined). Email addresses are never exposed to AI.
community *stringCommunity slug (run list_communities to see yours)
statusstring: active | pending | banned | removedDefault active
searchstringName or handle contains
limitintegerDefault 50
list_postsstaffList posts with like/comment counts. 'unanswered' = published posts with no comments yet; 'held' = waiting in the office-hours queue.
community *stringCommunity slug (run list_communities to see yours)
filterstring: latest | unanswered | drafts | scheduled | held | pinnedDefault latest
category_idstringOnly this category
limitintegerDefault 20
read_poststaffRead a post in full with its whole comment thread.
community *stringCommunity slug (run list_communities to see yours)
post_id *stringPost id
create_postapprovalstaffCreate a feed post as you. Use draft:true to leave it for human review. Staff posts ignore office hours.
community *stringCommunity slug (run list_communities to see yours)
title *stringHeadline
bodystringMarkdown body
category_idstringCategory id (list_categories); default category if omitted
draftbooleanSave as draft (recommended — review before publishing)
publish_atstringSchedule: ISO date-time, e.g. 2026-10-05T09:00 (community timezone)
pinnedbooleanPin to the top of the feed
video_urlstringOptional YouTube/Vimeo/Loom URL
update_postapprovalstaffEdit a post's title, body, category or comment setting.
community *stringCommunity slug (run list_communities to see yours)
post_id *stringPost id
titlestringNew title
bodystringNew body
category_idstringMove to category
comments_offbooleanTurn comments off/on
publish_postapprovalstaffPublish a draft, scheduled or held post now.
community *stringCommunity slug (run list_communities to see yours)
post_id *stringDraft/held/scheduled post id
pin_postapprovalstaffPin or unpin a post (iGloo's AI can't — ours can).
community *stringCommunity slug (run list_communities to see yours)
post_id *stringPost id
pinned *booleantrue to pin, false to unpin
list_commentsstaffRecent comments across the community (or one post). unanswered:true finds comments still waiting for a reply.
community *stringCommunity slug (run list_communities to see yours)
post_idstringOnly this post
unansweredbooleanOnly comments nobody has replied to
limitintegerDefault 30
reply_to_postapprovalstaffComment on a post as you.
community *stringCommunity slug (run list_communities to see yours)
post_id *stringPost id
body *stringReply text
reply_to_commentapprovalstaffReply to a specific comment (threads stay one level deep).
community *stringCommunity slug (run list_communities to see yours)
comment_id *stringComment id
body *stringReply text
list_conversationsstaffYour own direct-message threads in this community (never anyone else's).
community *stringCommunity slug (run list_communities to see yours)
read_conversationstaffRead one of your own DM threads.
community *stringCommunity slug (run list_communities to see yours)
conversation_id *stringConversation id
send_chat_messageapprovalstaffSend a direct message as you to a member.
community *stringCommunity slug (run list_communities to see yours)
to_handle *stringRecipient @handle
body *stringMessage
invite_memberapprovaladminCreate an invite link (optionally locked to one email). Share the returned URL — nothing is emailed automatically.
community *stringCommunity slug (run list_communities to see yours)
emailstringEmail to invite (optional: omit for a shareable link)
rolestring: member | moderator | admin | client_adminDefault member
days_validintegerDefault 14
approve_memberapprovalstaffApprove a pending join request.
community *stringCommunity slug (run list_communities to see yours)
handle *stringPending member @handle
set_member_roleapprovaladminChange a member's role. The owner role can only be transferred in the app.
community *stringCommunity slug (run list_communities to see yours)
handle *string@handle
role *string: member | moderator | client_admin | adminNew role
list_eventsstaffList events with their next occurrence and RSVP counts.
community *stringCommunity slug (run list_communities to see yours)
include_draftsbooleanInclude drafts
include_pastbooleanInclude past one-off events
create_eventapprovalstaffCreate an event. Unlike iGloo, events can be drafts and can repeat weekly, fortnightly or monthly.
community *stringCommunity slug (run list_communities to see yours)
title *stringEvent name
starts_at *stringLocal start, e.g. 2026-10-08T19:00
timezonestringIANA timezone (default community office-hours tz)
duration_minintegerDefault 60
descriptionstringWhat it's about
platformstring: zoom | meet | teams | gotowebinar | demio | custom | inpersonWhere it happens
linkstringJoining link
locationstringAddress if in person
recurrencestring: none | weekly | fortnightly | monthlyRepeat (monthly = same weekday of month)
repeat_untilstringStop repeating after this date (YYYY-MM-DD)
capacityintegerMax attendees
host_namestringHost
draftbooleanSave as a draft (not on the calendar yet) — recommended for AI proposals
update_eventapprovalstaffEdit an event, publish a draft, or cancel it.
community *stringCommunity slug (run list_communities to see yours)
event_id *stringEvent id
statusstring: draft | published | cancelledPublish, unpublish or cancel
titlestringTitle
descriptionstringDescription
linkstringJoining link
capacityintegerCapacity
starts_atstringNew local start time
list_coursesstaffList courses with published state, access type and lesson counts.
community *stringCommunity slug (run list_communities to see yours)
create_courseapprovalstaffCreate a course (always starts unpublished). Then add modules and lessons.
community *stringCommunity slug (run list_communities to see yours)
title *stringCourse title
descriptionstringCard blurb
accessstring: free | paid | levelfree = included with membership
cover_urlstring16:9 cover image URL
create_moduleapprovalstaffAdd a module to the end of a course.
community *stringCommunity slug (run list_communities to see yours)
course_slug *stringCourse slug
title *stringModule title
drip_daysintegerUnlock N days after the member joins
create_lessonapprovalstaffAdd a lesson to the end of a module. Video links auto-embed.
community *stringCommunity slug (run list_communities to see yours)
module_id *stringModule id (from create_module/get_course)
title *stringLesson title
bodystringLesson notes (Markdown)
video_urlstringYouTube / Vimeo / Wistia / Loom URL
resource_urlstringDownload link
minutesintegerLength in minutes
update_lessonapprovalstaffEdit a lesson.
community *stringCommunity slug (run list_communities to see yours)
lesson_id *stringLesson id
titlestringTitle
bodystringNotes
video_urlstringVideo URL
resource_urlstringDownload link
minutesintegerMinutes
get_coursestaffRead a course's whole tree: modules (with drip) and lessons in order.
community *stringCommunity slug (run list_communities to see yours)
course_slug *stringCourse slug
publish_courseapprovalstaffPublish or unpublish a course.
community *stringCommunity slug (run list_communities to see yours)
course_slug *stringCourse slug
published *booleantrue = members can open it
set_course_dripapprovalstaffControl when a module unlocks: N days after a member joins, or on a fixed date.
community *stringCommunity slug (run list_communities to see yours)
module_id *stringModule id
drip_daysintegerDays after join (0 or empty = immediately)
drip_datestringOr fixed date YYYY-MM-DD
set_course_accessapprovaladminMake a course free with membership, paid (unlocked by a cart product), or an Expedition reward.
community *stringCommunity slug (run list_communities to see yours)
course_slug *stringCourse slug
access *string: free | paid | levelWho can open it
product_refstringCart product id/slug that unlocks it (paid)
price_labelstringDisplay price e.g. £47
checkout_urlstringBuy button link
delete_itemapprovaladminTwo-step delete. First call returns what would be deleted plus a confirm_token; only a second call with that token deletes. Nothing is deleted on the first call.
community *stringCommunity slug (run list_communities to see yours)
type *string: post | comment | event | course | module | lesson | categoryWhat to delete
id *stringIts id (course accepts slug)
confirm_tokenstringLeave empty on the first call. Show the human what will be deleted, then call again with the token returned.
list_support_ticketsstaffMember support tickets, newest activity first.
community *stringCommunity slug (run list_communities to see yours)
statusstring: open | pending | closed | allDefault open
read_support_ticketstaffRead a support ticket's full conversation.
community *stringCommunity slug (run list_communities to see yours)
ticket_id *stringTicket id
reply_to_support_ticketapprovalstaffReply to a ticket as you (sets it to pending).
community *stringCommunity slug (run list_communities to see yours)
ticket_id *stringTicket id
body *stringReply
set_support_ticket_statusstaffOpen, pend or close a ticket.
community *stringCommunity slug (run list_communities to see yours)
ticket_id *stringTicket id
status *string: open | pending | closedNew status
import_prospectsaccountAdd local businesses to your prospect pipeline (duplicates by name+city are skipped).
prospects *arrayBusinesses to add
list_prospectsaccountList prospects in your pipeline.
statusstring: new | contacted | call_booked | proposal | won | lostFilter by stage
nichestringFilter by niche
limitintegerDefault 50
read_prospectaccountRead a prospect with your notes and saved research.
prospect_id *stringProspect id
save_prospect_workaccountSave research, append notes, or link a demo community to a prospect.
prospect_id *stringProspect id
researchstringResearch / opportunity write-up (replaces)
notesstringAppend a note
community_slugstringLink a demo community
set_prospect_statusaccountMove a prospect to a pipeline stage.
prospect_id *stringProspect id
status *string: new | contacted | call_booked | proposal | won | lostStage
prospect_pipelineaccountCounts per pipeline stage.

Outgoing webhooks

Events: member.joinedmember.leftreward.unlockedcourse.completedevent.rsvpaccess.grantedaccess.revoked. Headers: x-mbc-event, x-mbc-delivery, x-mbc-signature: sha256=<hex HMAC-SHA256 of raw body>. Retries: 1m, 5m, 30m, 2h, 12h.

// Node.js verification
import { createHmac, timingSafeEqual } from "node:crypto";
const expected = "sha256=" + createHmac("sha256", SECRET).update(rawBody).digest("hex");
const ok = timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers["x-mbc-signature"]));

Incoming cart webhooks

POST /api/carts/{provider}/{secret-token} — providers: maxbiopay, stripe, paypal, thrivecart, samcart, jvzoo, custom. Custom payload:

POST /api/carts/custom/<token>
x-mbc-signature: sha256=<HMAC(secret, body)>
{"event":"purchase","email":"jane@example.com","name":"Jane","product":"vip-club","order_id":"A1001"}