Skip to main content
API Reference

Community Developer API

RESTful JSON API with scoped API keys, rate limiting, and full coverage of chat, members, content, courses, events, and more.

Authentication

Authenticate every request by including your API key in the X-Api-Key header. Create keys from Admin → Developer API in your community dashboard.

# Include your API key in every request
curl -X GET https://api.memberpad.com/dev/v1/members \
  -H "X-Api-Key: sk_live_your_api_key_here" \
  -H "Content-Type: application/json"
Keep your API keys secret. Never expose them in client-side code, public repositories, or browser requests. API keys are for server-to-server communication only.

Base URL

https://api.memberpad.com/dev/v1

All endpoints are relative to this base URL. Use HTTPS: a plain HTTP request is redirected, and your client may drop the API key or the request body when it follows the redirect. Any HTTP client works, including a script that sends its library's default user agent.

Length limits ("up to 200 characters") count UTF-16 code units, as JavaScript's length does: an emoji or any other character outside the Basic Multilingual Plane counts as two.

Error Responses

The API uses standard HTTP status codes. Error responses include a JSON body with error and message fields.

StatusCodeDescription
400bad_requestInvalid request body or parameters
401unauthorizedMissing, invalid, inactive or expired API key
403forbiddenAPI key lacks the required scope, or the community is suspended
404not_foundResource does not exist or belongs to another community. With a valid key, an id that is not a valid GUID, a path that does not exist or a method a path does not take also returns 404 not_found
429rate_limitedToo many requests (see Rate Limits). The body includes retryAfter in seconds
500server_errorInternal server error

One exception to the shape: a request body that is not valid JSON, a field of the wrong type, or a field sent as null where a value is required gets a standard validation response (title, status and an errors object) with status 400. That includes a required field such as a post's title or htmlBody, and an optional field that has a default (such as accessLevel when creating, or a chat message's format): leave those out rather than sending null. A required text field that is left out or blank gets the usual bad_request with a message, such as "Title is required". A required field of another kind is different: an empty string for a date or id (such as startsAt or memberId) gets the standard validation response, and a lesson completion sent without memberId gets 404 not_found ("Member not found"). On posts, slug, publishedAt, excerpt and coverImageId are the exception to that: a value that is not a string is ignored, as if it had not been sent, so send them as strings.

Send JSON bodies with the header Content-Type: application/json. Without it (curl's -d on its own sends form encoding) a JSON endpoint answers 415 with the same standard shape (title and status, no error field).

Error Response Example
{
  "error": "forbidden",
  "message": "API key lacks required scope: chat:write"
}

Rate Limits

LimitDescription
100/minOverall requests per API key per minute
30/minWrite operations (POST, PUT, PATCH, DELETE) per key per minute
10/secBurst limit: max requests per second
30/minInvalid, inactive or expired keys per client IP. Past this, that IP gets a 429 for any key that has not worked in the last hour, apart from one try a second, until a minute has passed since its first bad key (a fixed window, not a sliding one). Keys that have worked in the last hour are not affected
200/dayMember invitations per community (resets at midnight UTC)
2,000/dayPost image uploads per community (resets at midnight UTC). Past this, an upload is refused with a 400 and a message, not a 429

Every limit is per API key except where noted, and the windows slide rather than reset on the minute. Check X-RateLimit-Remaining (requests left in the current minute) to monitor your budget. On 429, wait the retryAfter seconds (also sent as a Retry-After header) before retrying.

Chat Messages

Post messages to chat rooms from bots and external systems. Messages appear in real-time with a bot indicator badge.

GET/chat/roomschat:read

List your community's active chat rooms. memberCount is the community's member count, the same for every room.

Response
{
  "rooms": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "General",
      "description": "General discussion",
      "memberCount": 142
    }
  ]
}
POST/chat/rooms/{roomId}/messageschat:write

Post a message to a chat room as a bot. Supports plain text and a structured card. Messages are delivered to members in real time.

Request Body

FieldTypeDescription
contentstringrequired The message text, up to 4,000 characters. Shown as plain text: HTML tags appear literally. With a card, it shows above the card. Text that itself begins with a [card]{...}[/card] block shows that block as a card, under the same limits as format: "card"
formatstringoptional"text" (default) or "card". Any other value, including "html", posts plain text
cardobjectoptional Structured card, used when format is "card"
card.titlestringCard heading, up to 120 characters
card.fieldsarrayUp to 10 {label, value} string pairs, labels up to 40 characters and values up to 200
card.colorstringHex accent: #RGB, #RGBA, #RRGGBB or #RRGGBBAA. Anything else uses the default

Card text over a limit is trimmed, not rejected.

Request: Plain Text
{
  "content": "Hello from my trading bot!"
}
Request: Rich Card
{
  "content": "BUY Signal - AAPL",
  "format": "card",
  "card": {
    "title": "BUY Signal - AAPL",
    "fields": [
      { "label": "Entry", "value": "$185.20" },
      { "label": "Target", "value": "$192.00 (+3.7%)" },
      { "label": "Stop Loss", "value": "$181.50 (-2.0%)" }
    ],
    "color": "#22c55e"
  }
}
Response: 201 Created
{
  "success": true,
  "message": {
    "id": "msg_f1e2d3c4-b5a6-7890-abcd-ef1234567890",
    "roomId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "content": "BUY Signal - AAPL",
    "createdAt": "2026-03-28T14:30:00Z",
    "editedAt": null,
    "isBot": true,
    "botName": "Trading Bot",
    "authorName": "Trading Bot (Bot)"
  }
}

The response's content is your request's content exactly as you sent it. It is not what was stored: it has no card block, even with format: "card", and any mention or emoji markup you sent is still in it. Read the message back with GET (below) to see the stored text.

GET/chat/rooms/{roomId}/messageschat:read

Retrieve recent messages from a chat room, newest first. Deleted messages are left out. Message ids are opaque strings; treat them as such rather than parsing them. Bot messages, the ones posted with an API key and chat action replies, carry isBot: true and botName.

Query Parameters

ParamTypeDescription
limitintegeroptional Number of messages, 1-100 (default 50)
beforestringoptional ISO 8601 timestamp. Returns only messages created before it. Pass the createdAt of the oldest message you have to fetch the next page
Response
{
  "messages": [
    {
      "id": "msg_f1e2d3c4-b5a6-7890-abcd-ef1234567890",
      "roomId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "content": "Thanks @[Jane Smith](8c1d...) :[hype](4f2e...)",
      "createdAt": "2026-03-28T14:30:00Z",
      "editedAt": null,
      "isBot": false,
      "botName": null,
      "authorName": "Sam Lee"
    }
  ]
}

Message Object

FieldTypeDescription
idstringMessage id
roomIdstringThe room's id
contentstringThe text as stored (see below)
createdAt, editedAtstringUTC timestamps. editedAt is null until the message is edited
isBotbooleanTrue for a bot message
botNamestringThe bot's name (for an API key, the key's name). Null on a member's message
authorNamestringThe author's first and last name; for an API key, its name followed by (Bot)

content is returned as stored, not as the app displays it. It can carry:

  • Mention markup, @[Name](userId), where a member picked someone to mention.
  • Custom emoji markup, :[key](id), where a member picked one of the community's emoji.
  • A [card]{...}[/card] block at the start of a card message (a bot's card, or a chat action's reply). The JSON inside has title, fields (label and value pairs) and color, and a chat action's card also has via, the command that ran. Any text after [/card] is the message text.
  • A single zero-width space (U+200B), and nothing else, for a member's message that is only an attachment, such as an image, a GIF, a file or a video. The response has no attachment field, so there is nothing more to show for it.

For plain text, replace each @[Name](id) with @Name and each :[key](id) with :key:, read the JSON between [card] and [/card] for a card, and treat a lone zero-width space as an empty message.

A message posted with an API key is cleaned up before it is stored: mention and emoji markup in its text is reduced to plain @Name and :key:, a [card] block it starts with is held to the card limits, and with format: "card" the card is put in front as a [card] block. In a card sent with format: "card" (its title and fields), @[ is stored as @ [ and emoji markup is kept as sent; in a [card] block at the start of content, both are reduced the same way as the text. Either way, read card text as plain text. So its content here can differ from the content the POST returned.

DELETE/chat/rooms/{roomId}/messages/{messageId}chat:write

Delete a message posted by this API key. Only messages created by the same key can be deleted; any other message returns 403.

Members

Read member data for CRM sync, analytics, or external dashboards. Invite new members programmatically.

GET/membersmembers:read

List community members, newest first, with pagination and search. Blocked and removed members are left out. id is the member's id in this community, the memberId the other endpoints take. role is one of Member, PaidMember, Admin or Owner. avatarUrl is a signed link that stops working after an hour or two, so fetch it again rather than storing it.

Query Parameters

ParamTypeDescription
pageintegeroptional Page number (default 1)
pageSizeintegeroptional Items per page, 1-100 (default 25)
searchstringoptional Matches anywhere in first name, last name or email
Response
{
  "members": [
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "displayName": "Jane Smith",
      "email": "[email protected]",
      "role": "PaidMember",
      "planName": "Pro Monthly",
      "joinedAt": "2026-01-15T10:00:00Z",
      "avatarUrl": "https://...blob.core.windows.net/...?sv=..."
    }
  ],
  "totalCount": 1432,
  "page": 1,
  "pageSize": 25
}
GET/members/{memberId}members:read

Get a single member, with the same fields as the list. A blocked or removed member returns 404.

POST/members/invitemembers:write

Send an invitation email to join your community. email is required; name (up to 100 characters) and message (up to 1,000) are optional and trimmed to those lengths. Neither may contain a link, because the invitation already links to your community. Addresses that already belong to a member, that asked not to receive mail, or that opted out of MemberPad invitations are refused. An address your community invited within the invitation cool-off (180 days by default) is not sent another: the answer is still a 200, with a message saying so. Each community can send 200 invitations a day.

Request Body
{
  "email": "[email protected]",
  "name": "New Member",
  "message": "Welcome! Join our community."
}

Posts

Create and manage community posts from external content systems, AI pipelines, or RSS feeds, or bring a whole archive over from another site.

GET/postsposts:read

List published posts, newest first. Scheduled posts are included: their publishedAt is in the future. The body is not included; read one post to get it. The posts are in a posts array, alongside totalCount, page and pageSize.

Query Parameters

ParamTypeDescription
pageintegeroptional Page number (default 1)
pageSizeintegeroptional Items per page, 1-50 (default 20)
statusstringoptionalpublished (default), draft or all. draft and all also need the posts:write scope
slugstringoptional Return only the post with this slug

Post Object

FieldTypeDescription
idstringPost id
titlestring
excerptstringShort summary shown in lists. Null in the response to an update
htmlBodystringThe body. Returned when you create a post or read one, null elsewhere
isPublishedboolean
accessLevelstring"all" or "paid"
membersOnlybooleanTrue when accessLevel is "all" but only members of your community can read the post. It is not public and has no permalink
viewCount, likeCountintegerFilled in by the list and by reading one post
createdAt, updatedAtstringUTC timestamps. updatedAt is null until the post is first updated
publishedAtstringWhen the post was published. Null for a draft that was never published; a post unpublished through the API keeps its date, so check isPublished
slugstringThe last part of the post's address
urlstringWhere the post is read, on your own domain once that is connected. Null until the post is live. For a paid post this is its preview page
permalinkstringA link that keeps working if the slug or the domain changes. Null until the post is live, and null for a paid post
coverImageUrlstringThe cover image, as a link that does not expire. Null when there is none
GET/posts/{postId}posts:read

Read one post, including its htmlBody. A post that is not live (a draft, a scheduled post or an archived one) also needs the posts:write scope; without it the answer is a 403. Returns { "post": { ... } }.

POST/postsposts:write

Create a new community post. Published posts appear in members' feeds and fire the post.published webhook. No email or push notification is sent for a post created here. Returns { "success": true, "post": { ... } } with status 201.

Request Body

FieldTypeDescription
titlestringrequired Post title, up to 200 characters. Plain text: HTML tags and entities such as ’ are shown exactly as sent, so decode them first
htmlBodystringrequired HTML content. Unsafe markup is removed. Images use an <img> tag; a YouTube video uses its standard <iframe> embed
isPublishedbooleanoptional Publish immediately (default false, a draft)
accessLevelstringoptional"all" or "paid", not case-sensitive (default "all"). "all" makes the post public: anyone on the internet can read it without signing in. "paid" opens the post to every paid plan in your community
membersOnlybooleanoptional With accessLevel"all", true lets every member of your community read the post, on any plan, and nobody outside it: it is never shared, embedded or listed in search. false makes it public. Left out, a new post is public and an update leaves it as it is, whatever accessLevel you send
slugstringoptional The last part of the post's address. 1 to 200 characters: lowercase letters, digits and single hyphens. Uppercase is lowered for you. Left out, it is made from the title, with a number added if that is taken. A slug you send is never altered: if another post already uses it, the request is refused
publishedAtstringoptional ISO 8601 date and time the post was first published, for example 2021-05-14T09:30:00Z. An offset is honored; a value with none is read as UTC. Not before 1970 and not in the future. Only with isPublished: true. Left out, the post is dated now
excerptstringoptional Short summary shown in lists. Stored as plain text: HTML tags are removed and entities decoded. Longer than 500 characters is cut. Left out or empty, the first 500 characters of the body's text are used
coverImageIdstringoptional The id returned by an image upload (below)

A post dated more than 25 hours in the past is brought in quietly. It is not pushed into members' feeds and earns no points, and it sits at its own date everywhere posts are listed by date. The post.published webhook still fires. A post dated within the last 25 hours is published like any other.

Do not send id in the body. When the body carries a post id, slug, publishedAt, excerpt and coverImageId are ignored without an error. This keeps integrations that send a returned post object straight back working as they always have.

Request Body
{
  "title": "Weekly Market Recap",
  "htmlBody": "<p>This week the S&P 500 rallied...</p>",
  "isPublished": true,
  "accessLevel": "paid"
}
PUT/posts/{postId}posts:write

Update an existing post. Only include the fields you want to change: an omitted or null field is left as it is, and so is a blank title. Setting accessLevel to "paid" keeps any plans the post is already locked to; if it has none, it opens to every paid plan. Setting it to "all" on a paid post with a video is refused with a 400 and a message when the video would go past the community's allowance of video for free members, as it is in the app. Going live fires post.published, an edit to a live post fires post.updated, and editing a draft or a scheduled post, or unpublishing, fires neither.

Takes the same fields as create, with these differences:

FieldOn update
excerptChanges only when you send it. Editing htmlBody alone leaves the excerpt as it is. An empty string clears it
slugChanging it changes the post's address: the old url stops working, while permalink keeps working
publishedAtMoves the post to that date. The post must be published, or be published by the same request. Publishing a draft with a date more than 25 hours in the past brings it in quietly, as on create, unless that date is the one it already has (see below)
coverImageIdAn empty string removes the cover

Sending a value equal to the one already stored changes nothing, so sending the same request twice is safe. As on create, a body that carries id has these four fields ignored.

Unpublishing keeps the post's date. Publishing it again announces it to members' feeds like any publish, whether you leave publishedAt out or send the date it already has: a value equal to the stored one counts as not sent. To bring it back quietly, send a different date more than 25 hours in the past.

DELETE/posts/{postId}posts:write

Delete a post. It leaves members' feeds and the public site, and its slug becomes free to send as slug again. A post created without slug still gets a number added if its title's slug belonged to a deleted post. Returns { "success": true }. Images uploaded for the post are not deleted.

POST/posts/imagesposts:write

Upload an image to use in a post. Send it as multipart/form-data in a field named file, not as JSON. Returns status 201 with the image's id and url.

RuleDetail
FormatsJPEG, PNG, GIF, WebP, AVIF, BMP, ICO. SVG is refused
SizeUp to 10 MB. JPEG, PNG, WebP and BMP images are re-encoded and resized so the long edge is at most 2048 pixels. Stored as uploaded instead: GIF, AVIF and ICO files, animated images, a WebP already within 2048 pixels with no photo metadata, and images over about 24 megapixels that cannot be scaled while decoding (PNG, BMP, progressive JPEG, transparent or lossless WebP). A JPEG, PNG, GIF, WebP or BMP file whose content is not that type is refused with a 400 and a message, and so is a JPEG, PNG, GIF or BMP whose header shows it wider or taller than 12,000 pixels
LimitsCounts as a write (30 per minute). 2,000 uploads per community per day; past that, a 400 with a message. Refused when the community is over its storage allowance
Request
curl -X POST https://api.memberpad.com/dev/v1/posts/images \
  -H "X-Api-Key: sk_live_your_api_key_here" \
  -F "[email protected]"
Response
{
  "success": true,
  "image": {
    "id": "3f2a9c1e-7b4d-4c0a-9e61-d2f5a8b7c6d4.webp",
    "url": "https://api.memberpad.com/api/media/user-content/3f2a9c1e-7b4d-4c0a-9e61-d2f5a8b7c6d4.webp"
  }
}

Use url as the src of an <img> tag in htmlBody; it does not expire. Use id as a post's coverImageId.

Migrating an archive

To bring existing articles over from another site with their original dates and addresses:

  1. For each image in an article, download it from the old site and upload it to /posts/images. Replace the image's address in the article's HTML with the returned url. An image left pointing at the old site breaks when that site goes away.
  2. Create the post in one request with isPublished: true, accessLevel, slug, publishedAt and, if you have one, coverImageId. Send the title as plain text: an export that gives HTML titles (WordPress's title.rendered carries entities like &#8217;) needs them decoded first, or they show as typed.
  3. Space writes a little more than two seconds apart (2.1 seconds is safe) to stay under 30 writes in any 60 seconds. On a 429, wait the Retry-After seconds. A write refused with a 400 still counts toward the limit; one refused with a 429 does not.
  4. If a run stops partway, run it again. A post whose slug already exists is refused instead of being created twice.
Request Body
{
  "title": "Episode 12: The Long Road",
  "htmlBody": "<p>Show notes...</p><img src=\"https://api.memberpad.com/api/media/user-content/3f2a....webp\">",
  "isPublished": true,
  "accessLevel": "all",
  "slug": "episode-12-the-long-road",
  "publishedAt": "2021-05-14T09:30:00Z",
  "coverImageId": "3f2a9c1e-7b4d-4c0a-9e61-d2f5a8b7c6d4.webp"
}

Good to know:

  • With your own domain connected, a post is at yourdomain.com/posts/{slug}. Until then it is at memberpad.com/c/{community}/posts/{slug}. The url field always gives the current one.
  • Every post is authored by the community owner. There are no tags or categories.
  • If a post is retitled in the app before it is live, its slug follows the new title. Once live, the slug stays.
  • Unpublishing a post in the app clears its date. Publishing it there again dates it today and announces it; set publishedAt again through the API to restore the original date.
  • Uploaded images are kept even if the post that used them is deleted.

Courses

Read course data and track member progress from external learning systems.

GET/coursescourses:read

List courses, newest first, with id, title, description, lessonCount (published lessons, optional quizzes and assignments included, so it can be higher than the progress endpoint's totalLessons), isPublished and createdAt, in a courses array alongside totalCount, page and pageSize. Supports page and pageSize (1-50, default 20). Lessons are not listed.

GET/courses/{courseId}/progress/{memberId}courses:read

Get a member's progress in a specific course. It answers for removed and banned members too, unlike GET /members/{memberId}. Counts the lessons that count toward finishing it, the same ones the app and certificates use: published lessons, not optional quizzes or assignments. progressPercent rounds down, so 100 means every one is done. completedAt is set once the course is complete.

Response
{
  "courseId": "...",
  "memberId": "...",
  "totalLessons": 24,
  "completedLessons": 18,
  "progressPercent": 75,
  "completedAt": null
}
POST/courses/{courseId}/lessons/{lessonId}/completecourses:write

Mark a lesson as completed for a member, exactly as if they had completed it in the app: it counts toward their points and badges and fires course.lesson_completed. If that finishes the course, the course is recorded as complete, which makes the member's certificate available, and course.completed fires once. Completing a lesson again does nothing. Only ordinary lessons can be completed this way (quizzes, assignments and other track items cannot), and not before the lesson is released to the member (owners and admins are not held to the release schedule). A removed or banned member returns 404. The response is { "success": true, "completed": true, "courseComplete": false }.

No endpoint lists a course's lessons, so take the lessonId from one of two places: the lesson's address in the app, which ends in /course/{courseId}/lesson/{lessonId}, or the lessonId (with its courseId) on a course.lesson_completed webhook.

Request Body
{ "memberId": "b2c3d4e5-f6a7-8901-bcde-f12345678901" }

Events

Create and manage community events from external calendar or scheduling systems.

GET/eventsevents:read

List upcoming and past events, latest start first. Canceled events are left out. Supports page and pageSize (1-50, default 25).

Response
{
  "events": [
    {
      "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "title": "Live Trading Session",
      "description": "Join us for live market analysis.",
      "startsAt": "2026-04-15T14:00:00Z",
      "endsAt": "2026-04-15T15:30:00Z",
      "location": "https://zoom.us/j/123456789",
      "accessLevel": "paid",
      "createdAt": "2026-04-01T09:12:00Z"
    }
  ],
  "totalCount": 18,
  "page": 1,
  "pageSize": 25
}

endsAt, description and location are null when the event has none. accessLevel is "all" or "paid".

POST/eventsevents:write

Create a new event. Returns { "success": true, "event": { ... } } with status 201, where event has the same fields as in the list.

Request Body

FieldTypeDescription
titlestringrequired Event title, up to 200 characters
descriptionstringoptional Event description (HTML supported)
startsAtstringrequired ISO 8601 date-time. Send UTC (ending in Z) or with an offset
endsAtstringoptional ISO 8601 date-time. Not checked against startsAt, so make sure it is later
locationstringoptional Location or meeting URL, up to 500 characters
accessLevelstringoptional"all" or "paid", not case-sensitive (default "all"). "paid" opens the event to every paid plan in your community
Request Body
{
  "title": "Live Trading Session",
  "description": "Join us for live market analysis.",
  "startsAt": "2026-04-15T14:00:00Z",
  "endsAt": "2026-04-15T15:30:00Z",
  "location": "https://zoom.us/j/123456789",
  "accessLevel": "paid"
}
PUT/events/{eventId}events:write

Update an existing event. Only include the fields you want to change: an omitted or null field is left as it is, and so is a blank title. Moving startsAt later lets members be reminded of the new time. Moving startsAt without endsAt moves the end by the same amount when it would otherwise fall at or before the new start. An event that gates a live broadcast stays paid: accessLevel: "all" on one is refused with a 400. Returns { "success": true, "event": { ... } } with status 200: the whole event as it now stands, with the same fields as in the list.

Stock Picks

Post stock picks and trade alerts from automated trading systems.

GET/stock-picks/listsstock-picks:read

List all stock pick lists in your community, newest first, in one response (no paging), each with its pickCount.

Response
{
  "lists": [
    {
      "id": "d4e5f6a7-b8c9-0123-def0-234567890123",
      "name": "Swing Trades",
      "description": "Two to six week holds",
      "pickCount": 12,
      "createdAt": "2026-01-10T16:00:00Z"
    }
  ]
}
GET/stock-picks/lists/{listId}/picksstock-picks:read

Get paginated stock picks for a specific list, newest first. action is "BUY" for a pick that opens or adds to a position and "SELL" for one that closes it. pickAction gives the exact step ("open", "add", "partial_close" or "close") and isShort whether the position is a short. entryPrice is 0 when none was given (the create response shows it as null).

Query Parameters

FieldTypeDescription
pageintoptional Page number (default 1)
pageSizeintoptional Items per page, 1-100 (default 50)
Response
{
  "totalCount": 12,
  "page": 1,
  "pageSize": 50,
  "picks": [
    {
      "id": "...",
      "ticker": "AAPL",
      "action": "BUY",
      "pickAction": "open",
      "isShort": false,
      "entryPrice": 185.20,
      "targetPrice": 192.00,
      "stopLoss": 181.50,
      "notes": "Strong support at 184",
      "createdAt": "2026-03-29T..."
    }
  ]
}
POST/stock-picks/lists/{listId}/picksstock-picks:write

Add a new stock pick to a list. "BUY" opens a position and "SELL" closes it. Neither posts a chat message or fires a webhook.

Request Body

FieldTypeDescription
tickerstringrequired Symbol, up to 20 characters (e.g. "AAPL"). Stored uppercase
actionstringoptional"BUY" (default) or "SELL", uppercase
entryPricenumberoptional Entry price
targetPricenumberoptional Target price
stopLossnumberoptional Stop loss price
notesstringoptional Analysis or reasoning, up to 2,000 characters
Request Body
{
  "ticker": "AAPL",
  "action": "BUY",
  "entryPrice": 185.20,
  "targetPrice": 192.00,
  "stopLoss": 181.50,
  "notes": "Strong support at 184, earnings catalyst next week"
}
Response: 201 Created
{
  "success": true,
  "pick": {
    "id": "...",
    "ticker": "AAPL",
    "action": "BUY",
    "pickAction": "open",
    "isShort": false,
    "entryPrice": 185.20,
    "targetPrice": 192.00,
    "stopLoss": 181.50,
    "notes": "Strong support at 184, earnings catalyst next week",
    "createdAt": "2026-03-29T13:05:00Z"
  }
}

The prices are the ones you sent, null where you left one out. pickAction is "open" for a BUY and "close" for a SELL.

Payments

Read-only access to subscription and payment data for external dashboards and accounting.

GET/subscriptionspayments:read

List subscriptions of every status, newest first, with memberId, memberName, email, planName, status (Active, PastDue, Canceled or Incomplete), billingInterval, currentPeriodEnd, canceledAt and createdAt. Add ?status=Active to list one status; any other value is ignored and lists every status. The subscriptions are in a subscriptions array, alongside totalCount, page and pageSize. Supports page and pageSize (1-100, default 25).

GET/paymentspayments:read

List payments received, newest first, with amount (the gross amount, before fees), currency (what the member paid in, lowercase ISO 4217), type (SubscriptionPayment, OneTimePurchase, CourtesyCredit or Tip) and paidAt. status carries the same value as type, for older integrations. A refund appears as its own row with a negative amount. A CourtesyCredit row is money MemberPad paid a member from its own balance, not your revenue or loss; it carries platformFunded: true (absent on other rows), so leave those rows out of revenue totals. amount is a decimal in major units of its currency (9.99 is $9.99, not cents). Most payments are in usd; an App Store payment from outside the US is in the buyer's own currency, so total by currency. The payments are in a payments array, alongside totalCount, page and pageSize. Supports page and pageSize (1-100, default 25).

Digital Products

Read product catalog and purchase data.

GET/productsproducts:read

List published digital products, newest first, with id, name, description, price, purchaseCount (every purchase, refunded ones included) and createdAt, in a products array alongside totalCount, page and pageSize. price is the web price in US dollars, as a decimal in major units (9.99, not cents); there is no currency field because products are priced in US dollars. Supports page and pageSize (1-50, default 25).

GET/products/{productId}/purchasesproducts:read

List purchases of a product, newest first, with buyerName, buyerEmail, amount, purchasedAt and status (Completed, Refunded, PartiallyRefunded or Revoked: access was taken away, after a chargeback or by an admin, and an admin can restore it to Completed). The purchases are in a purchases array, alongside totalCount, page and pageSize. amount is what the buyer paid, as a decimal in major units, and a purchase carries no currency. A purchase on the web is in US dollars. One made through the App Store is Apple's price, which can differ from the web price and, for a buyer outside the US, is in their own currency; GET /payments gives each payment's currency. Supports page and pageSize (1-100, default 25).

Redirects

Old-link redirects for your custom domain. If the domain had a site before, list each old address and where it lives now, and a visitor who follows an old link gets a permanent (301) redirect to the right page. This is the same list as Settings, Custom Domain in the app: a change made either way shows in the other.

GET/redirectsredirects:read

List your redirects, ordered by old address. Supports page and pageSize (default 50, at most 200). hits is an approximate count of how often the redirect has been followed.

Response
{
  "redirects": [
    {
      "id": "7c1e0d2a-4b53-4f0e-9a51-0d6f2f3b8a10",
      "from": "/about-us.html",
      "to": "/about",
      "match": "exact",
      "hits": 42,
      "createdAt": "2026-11-26T16:00:00Z",
      "updatedAt": "2026-11-26T16:00:00Z"
    }
  ],
  "totalCount": 1,
  "page": 1,
  "pageSize": 50
}
GET/redirects/{redirectId}redirects:read

Get one redirect.

POST/redirectsredirects:write

Create a redirect. Answers 201 with the redirect. A real page always wins: a redirect is only used for an address none of your own pages or posts lives at.

Request Body

FieldTypeDescription
fromstringrequired The old address, starting with a slash, up to 400 characters. A whole old URL is accepted and its host is dropped. Matching ignores letter case, a trailing slash and anything after ? or #. End it in /* to cover everything under it
tostringrequired A path on the same domain, starting with a slash, up to 600 characters. For a /* rule it may also end in /*, which carries the rest of the old address across
Request Body
{
  "from": "/blog/*",
  "to": "/posts/*"
}

Refused with 400 and a message when the old address already has a redirect, when the destination is itself a redirected address (a chain or a loop), for the home page, for an address MemberPad answers itself on your domain (such as /login, /rss.xml, /robots.txt or a sitemap), for a rule over all of /posts/* or /pages/* (your own posts and pages live there; redirect old addresses under them one at a time), or past the limit of 2,000 redirects (50 of them ending in /*). The response to a create or a change also carries note: null, or a sentence about what was saved (for example that a query string was dropped from from). If another change to your list is being saved at the same moment, the answer is 429 with retryAfter: send it again.

PUT/redirects/{redirectId}redirects:write

Change a redirect. Send from, to or both: a field you leave out is unchanged.

DELETE/redirects/{redirectId}redirects:write

Delete a redirect. The old address goes back to sending visitors to your home page.

POST/redirects/batchredirects:write

Create or update up to 500 redirects in one call, matched by old address. All or nothing: if any row is refused, nothing is saved and the 400 lists each refusal with its 1-based row.

Request Body
{
  "redirects": [
    { "from": "/about-us.html", "to": "/about" },
    { "from": "/2019/05/my-first-post", "to": "/posts/my-first-post" }
  ]
}
Response
{
  "created": 2,
  "updated": 0,
  "note": null
}

A saved change reaches your live domain within a minute or two.

Chat Actions

Slash commands members run in chat. MemberPad calls you, and posts your reply back as a card.

Chat actions invert the usual direction. Instead of subscribing to events, you expose one HTTPS endpoint and a community host points a command at it. When a member types /stock AAPL, MemberPad POSTs to you, waits, and renders the JSON you return. Your response body is the whole point, and the call is never retried, because re-running a command like /buy would be wrong.

There is nothing to register through this API: hosts configure actions in their community's Developers area, which is also where the signing secret is issued.

Request

// POST to the URL the host configured
{
  "type": "chat_action.invoke",
  "invocationId": "3f2a...",
  "command": "stock",
  "argsRaw": "AAPL",
  "args": { "symbol": "AAPL" },
  "timestamp": "2026-07-21T14:03:11Z",
  "community": { "id": "...", "name": "Finance Hero" },
  "room": { "id": "...", "name": "general" },
  "user": {
    "id": "...",
    "displayName": "Jane D.",
    "role": "paidmember",
    "isPaid": true
  }
}

The payload deliberately excludes member email addresses and profile images: your endpoint is a third party the member never chose to trust. user.id is the member's account id, the same userId the webhooks carry. It is not the community member id that GET /members/{memberId} and the course endpoints take, and the API has no way to look a member up by account id. To match the two, keep the pairs from webhooks that carry both memberId and userId, such as member.joined and course.lesson_completed. role is one of member, paidmember, admin or owner, and isPaid is true for paid members, admins and owners. args is filled only for actions set to named arguments, with declared parameters; otherwise it is empty and only argsRaw carries what the member typed.

Headers

HeaderTypeDescription
X-MemberPad-Signaturestringsha256=<hex>, see below
X-MemberPad-TimestampnumberUnix seconds, signed so it cannot be altered
X-MemberPad-InvocationstringUnique per run. Use it to make your side idempotent
X-MemberPad-CommandstringThe command that ran, without the slash
X-MemberPad-EventstringAlways chat_action.invoke
User-AgentstringMemberPad-ChatAction/1.0

Verifying the signature

HMAC-SHA256 over timestamp + "." + rawBody, compared in constant time. Reject anything older than five minutes; binding the timestamp into the signature is what stops a captured request being replayed.

const ts = req.headers['x-memberpad-timestamp'];
const sig = req.headers['x-memberpad-signature'];

if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return res.sendStatus(400);

const expected = 'sha256=' + crypto
  .createHmac('sha256', SIGNING_SECRET)
  .update(ts + '.' + rawBody)
  .digest('hex');

// timingSafeEqual throws when the byte lengths differ, so compare those first
const got = Buffer.from(typeof sig === 'string' ? sig : '');
const want = Buffer.from(expected);
if (got.length !== want.length || !crypto.timingSafeEqual(got, want)) {
  return res.sendStatus(401);
}

Response

// 200 application/json
{
  "title": "AAPL, Apple Inc.",
  "color": "#22c55e",
  "text": "optional line above the card",
  "fields": [
    { "label": "Price", "value": "$231.40" }
  ]
}

Return { "error": "..." } with a 2xx status (such as 200) to report a handled failure; a status outside 2xx counts as your endpoint failing. No card is posted, and the member sees that the command could not be completed (your error text is not shown to them). For a room-visible action the member's own command line is already in the room and stays there. Labels and values must be strings.

Limits

LimitValueNotes
Response size16 KBDefault. A larger body fails as invalid JSON
Card title120 charsTrimmed, not rejected
Text line500 charsTrimmed, not rejected
Fields1040 char labels, 200 char values
ColorHex only#RGB, #RGBA, #RRGGBB or #RRGGBBAA
RedirectsNot followedYour URL must be public HTTPS, with no username or password in it
RetriesNoneBy design: actions are not idempotent
TimeoutSet per action8 seconds unless the host changes it, up to the platform maximum. A timeout counts as a failure
CacheSet per actionOff by default. When the host sets one, the same command with the same arguments (not case-sensitive) in the same room is answered from the cache without calling you. For an action only the person who ran it sees, the cache is kept per member. Saving the action clears it

An endpoint that fails repeatedly (errors, timeouts or unusable replies) is paused automatically and its host is notified. Handled { "error": "..." } replies do not count, and only runs since the action was last saved are considered.