Getting started

Sublaunch API

Bring your Sublaunch's members, payments and Community into your own tools. A REST API, signed webhooks and an MCP server for AI apps, all on one key.

Before you start

The API and the MCP server come with the Business and Premium plans. Every endpoint lives under https://api.sublaunch.com/v1, takes and returns JSON with snake_case fields, and writes every date and time in ISO 8601, in UTC.

Base URL
https://api.sublaunch.com/v1

Get an API key

In Sublaunch, open your Sublaunch's API page at sublaunch.com/<sublaunch>/a/api, <sublaunch> being your Sublaunch's link. Name the key and choose its scopes, read alone or read and write.

The key starts with sl_live_ and shows once, so put it right away in your secret manager or in your environment. A key belongs to one Sublaunch and only ever sees its data.

Terminal
export SUBLAUNCH_API_KEY="sl_live_…"

Make your first request

Check the key with Retrieve the Sublaunch. Every request sends the key in the Authorization header, as a bearer token.

The answer is the Sublaunch the key belongs to, its tiers and prices, and its owner's plan.

GET/v1/sublaunch
curl https://api.sublaunch.com/v1/sublaunch \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "id": "q7RkX2LmPv",
  "object": "sublaunch",
  "username": "alphadesk",
  "url": "https://sublaunch.com/alphadesk",
  "name": "Alpha Desk",
  "slogan": "Daily setups and a private community for traders.",
  "logo_url": "https://example.com/alpha-desk-logo.png",
  "language": "en",
  "currency": "usd",
  "private": true,
  "status": "live",
  "tiers": [
    {
      "id": "tier1",
      "object": "tier",
      "name": "Inner Circle",
      "prices": [
        {
          "id": "pR8sK2xLmQ",
          "object": "price",
          "tier_id": "tier1",
          "amount": 29,
          "currency": "usd",
          "interval": "month",
          "interval_count": 1,
          "default": true,
          "hidden": false,
          "trial_days": 7,
          "status": "active",
          "discount": null,
          "members_active": 212,
          "members_total": 340,
          "created_at": "2026-03-12T10:04:22.000Z"
        },
        {
          "id": "pY3kQ9xLmR",
          "object": "price",
          "tier_id": "tier1",
          "amount": 290,
          "currency": "usd",
          "interval": "year",
          "interval_count": 1,
          "default": false,
          "hidden": false,
          "trial_days": null,
          "status": "active",
          "discount": null,
          "members_active": 41,
          "members_total": 58,
          "created_at": "2026-03-12T10:04:22.000Z"
        }
      ],
      "members_active": 253,
      "members_total": 398,
      "created_at": "2026-03-12T10:04:22.000Z"
    }
  ],
  "members_active": 253,
  "members_total": 398,
  "plan": "business",
  "created_at": "2026-03-12T10:04:22.000Z",
  "categories": [
    {
      "id": "general",
      "object": "category",
      "name": "General",
      "who_can_post": "members",
      "who_can_comment": "members",
      "who_can_view": "members",
      "tier_ids": [],
      "sort": "default"
    },
    {
      "id": "x7Lp2QaZ",
      "object": "category",
      "name": "Trade ideas",
      "who_can_post": "members",
      "who_can_comment": "members",
      "who_can_view": "tiers",
      "tier_ids": ["tier1"],
      "sort": "new"
    }
  ],
  "draft": {
    "has_draft": true,
    "changed": ["coupons", "page", "prices"],
    "courses": ["Hc4mQ9xRt2"],
    "affiliates": ["Af6tR2kQxM"],
    "pages": ["Pg4mX9kQ2T"],
    "broadcasts": ["Bc8nR4kQ1X"]
  }
}

List your members

Members come newest first. Ask for the active ones with status=active, and add tier_id, email or a date to narrow the list down.

Lists come a page at a time. Follow next_cursor while has_more is true, as Pagination shows.

GET/v1/members
curl -G https://api.sublaunch.com/v1/members \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -d status=active \
  -d limit=25
Response200
{
  "object": "list",
  "data": [
    {
      "id": "Ms8kL2QpXz",
      "object": "member",
      "email": "sam@example.com",
      "name": "Sam Carter",
      "first_name": "Sam",
      "last_name": "Carter",
      "user_id": "Us4kP9xQ2M",
      "status": "active",
      "type": "recurring",
      "tier": {
        "id": "tier1",
        "name": "Inner Circle"
      },
      "price": {
        "id": "pR8sK2xLmQ",
        "amount": 29,
        "currency": "usd",
        "interval": "month"
      },
      "payments_count": 3,
      "joined_at": "2026-09-02T18:41:07.000Z",
      "cancel_at": null,
      "canceled_at": null,
      "affiliate_id": null
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ0IjoiMjAyNi0xMS0xNVQxNzowMjo0MC4wMDBaIn0"
}

Receive your first webhook

Webhooks push events to your server the moment they happen, so you never poll. Register a public HTTPS URL for member.joined and payment.succeeded, keep the secret of the answer, then send yourself a test event. lead.created sends every email your lead magnets collect.

Check every request with its Sublaunch-Signature header, as Verify signatures shows. You can also add the endpoint in the app, on your Sublaunch's API page.

POST/v1/webhook_endpoints
curl -X POST https://api.sublaunch.com/v1/webhook_endpoints \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/webhooks/sublaunch",
    "events": ["member.joined", "payment.succeeded"],
    "description": "CRM sync",
    "filters": {
      "tier_ids": ["tier1"]
    }
  }'
POST/v1/webhook_endpoints/:id/test
curl -X POST \
  https://api.sublaunch.com/v1/webhook_endpoints/wh3LpX9dKe/test \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"

Connect an AI app

Sublaunch's MCP server at https://api.sublaunch.com/mcp lets Claude, ChatGPT and Cursor read your members and revenue, write your posts and run your Sublaunch, right in the chat.

In Claude Code, one command connects it with your key. For the others, follow MCP setup.

Claude Code
claude mcp add --transport http sublaunch https://api.sublaunch.com/mcp \
  --header "Authorization: Bearer $SUBLAUNCH_API_KEY"