Getting started

Authentication

Every request carries a secret key of the Sublaunch it works on. You make keys in the app, can limit them to reading, and they stop working the moment you revoke them.

API keys

  • A key is sl_live_ followed by 24 letters and digits. The app shows its first 12 characters, like sl_live_AbCd, so you can tell your keys apart.
  • Each key belongs to one Sublaunch and only sees that Sublaunch's members, payments, Community and courses.
  • The whole key shows once, when you create it. Sublaunch keeps only a hash of it, so a lost key cannot be shown again. Create a new one.
  • A Sublaunch can have 20 active keys.
  • A team member whose role edits the Sublaunch's settings can make keys too. Their keys have their rights, and stop working when they leave the team.

The API comes with the Business and Premium plans. When the Sublaunch's owner is on the Starter plan, requests answer 403 with the code plan_required. The keys stay and work again once the Sublaunch is on Business or Premium.

Send the key

Send the key as a bearer token in the Authorization header. The X-Api-Key header works too, for the tools that cannot set a bearer token.

A request without a key answers 401 with the code api_key_missing, a wrong key api_key_invalid and a revoked one api_key_revoked.

Terminal
# As a bearer token
curl https://api.sublaunch.com/v1/sublaunch \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"

# Or in X-Api-Key, for tools that cannot set a bearer token
curl https://api.sublaunch.com/v1/sublaunch \
  -H "X-Api-Key: $SUBLAUNCH_API_KEY"

Scopes

A key has the read scope, or read and write. Give write only to the tools that change data.

ScopeAllows
readEvery GET.
writeEvery request that changes data, POST, PATCH and DELETE.

A read key that tries to change data gets 403 with the code insufficient_scope.

Retrieve the Sublaunch

GET/v1/sublaunchread scopeMCPget_sublaunch

Returns the key's Sublaunch with its tiers, prices, categories and what its draft changes. Call it first to know which Sublaunch a key opens.

Returns

The Sublaunch object.

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"]
  }
}

Keep keys safe

  • Call the API from your server only, never from a browser, a mobile app or the code of a public repository.
  • Keep keys in a secret manager or an environment variable like SUBLAUNCH_API_KEY.
  • Give each tool its own key, so you can revoke one without touching the others.
  • To rotate a key, create the new one, deploy it, then revoke the old one in the app.

AI apps

Claude and ChatGPT connect to the MCP server with OAuth. You sign in to Sublaunch and pick the Sublaunch, there is no key to copy. Cursor and Claude Code can use a key, sent the same way as above.