API reference

Sublaunch affiliate

Sublaunch's own affiliate program pays the owner 5% to 50% of what the creators they bring pay Sublaunch, for life. The rate climbs with the creators who paid in the last 30 days, the same on all of them. It is the Affiliate page under Plans in the app.

The earnings go to the owner's affiliate balance, which Manage payouts reads and cashes out. A Sublaunch's own program for its members is Affiliates.

Only the owner's keys and AI app connections reach it, never a team member's.

The Sublaunch affiliate object

The owner's place in Sublaunch's own affiliate program, as the Affiliate page under Plans in the app.

Attributes

  • objectstring
    Always sublaunch_affiliate.
  • joinedboolean
    Whether the owner is in the program. join puts them in.
  • rate_percentnumber
    What the owner earns, in percent of what the creators they brought pay Sublaunch.
  • on_tiersboolean
    true when the rate follows the tiers. false for a fixed rate from before them.
  • tiers_percentarray of numbers
    The tiers' rates, for 1, 2, 3, 4, 5, then 6 or more active creators.
  • next_rate_percentnumber or null
    The rate with one more active creator. Null on the last tier or a fixed rate.
  • max_rate_percentnumber or null
    The program's highest rate.
  • active_creatorsinteger
    How many creators the owner brought paid Sublaunch in the last active_window_days. It sets the tier.
  • active_window_daysinteger
    How many days back a payment makes a creator active.
  • referral_codestring or null
    The code of the owner's link.
  • linkstring or null
    The link to share. Null until the owner joins.
  • referred_creator_discountobject
    What a creator who signs up through the link gets.
  • referralsarray of objects
    The creators the owner brought, as the page's History, 50 at most.
  • balancestring
    Where the earnings go. Manage payouts reads the affiliate balance and cashes it out.
  • creator_programsarray of objects or null
    The affiliate programs of other creators the owner promotes, as Your creator programs on the page. Each keeps its own balance. Null when they cannot be read.
  • messagestring
    Only when something needs saying, like the owner not in the program yet.
Sublaunch affiliate object
{
  "object": "sublaunch_affiliate",
  "joined": true,
  "rate_percent": 20,
  "on_tiers": true,
  "tiers_percent": [5, 10, 20, 30, 40, 50],
  "next_rate_percent": 30,
  "max_rate_percent": 50,
  "active_creators": 3,
  "active_window_days": 30,
  "referral_code": "alphadk",
  "link": "https://sublaunch.com?via=alphadk",
  "referred_creator_discount": {
    "percent": 10,
    "days": 30
  },
  "referrals": [
    {
      "name": "Nadia Brooks",
      "email": "nadia@example.com",
      "plan": "business",
      "earned_usd": 42.6
    }
  ],
  "balance": "manage_payouts affiliate_balance (and cashout) holds what it earned.",
  "creator_programs": [
    {
      "object": "creator_program",
      "id": "Kp3mX9qLt2",
      "username": "chartroom",
      "name": "Chart Room",
      "rate_percent": 30,
      "url": "https://sublaunch.com/chartroom/affiliate"
    }
  ]
}

Manage Sublaunch affiliate

POST/v1/sublaunch_affiliateread scopeMCPmanage_sublaunch_affiliate

Reads and changes the owner's place in Sublaunch's own affiliate program, as the Affiliate page in the app. get returns their rate, tier, link, the creators they brought and the creators' programs they promote. join puts them in at once, with a link, as opening the page in the app does. set_code changes the code of the link, and the old link stops bringing creators, so ask the owner first. stats returns the page's charts, with the periods of the dashboard.

Body parameters

  • actionstringRequired
    What to do. get and stats with a read key, the others with a write key.
    getjoinset_codestats
  • codestring
    For set_code, the part after ?via=, 1 to 8 lowercase letters, digits, - or _.
  • chartsarray of strings
    For stats, only these cards, by key. Every card by default.
    total_commissionscreator_commissionssubscriber_commissionscommission_countlast_commissionsnew_creatorscreators_by_planlast_new_creatorsvisitorsconversion_rate
  • timestring
    For stats, the Time menu's choice. last_4_weeks by default.
    todaylast_7_dayslast_4_weekslast_3_monthslast_12_monthsmonth_to_datequarter_to_dateyear_to_dateall_timecustom
  • startstring
    For stats, a custom period's first day, 2026-11-01, with end.
  • endstring
    For stats, a custom period's last day, today at the latest.
  • scalestring
    For stats, the step of the curves, one of period.scales.
    hourdayweekmonth
  • comparisonstring
    For stats, what the period is compared to. previous_period by default.
    previous_periodprevious_monthprevious_quarterprevious_yearno_comparison
  • seriesboolean
    For stats, whether to add each line card's curve and its compared curve.

Returns

With get, join and set_code, the Sublaunch affiliate object. With stats, the Sublaunch affiliate stats object.

Errors

  • A value the API does not accept, or a field another action takes, like code with get. param names it. Nothing changed.
  • The key or AI app is a team member's. Only the owner's keys and connections reach it.
  • A read key asks for an action that changes something. Use a key with write.
  • Sublaunch refused the join. The message says why.
  • The join did not take. Try again, or open the Affiliate page in the app.
  • set_code before the owner is in the program. join first.
  • Another affiliate has the code, or it is reserved. The link stays the same.
POST/v1/sublaunch_affiliate
curl -X POST \
  https://api.sublaunch.com/v1/sublaunch_affiliate \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "get"
  }'
Response200
{
  "object": "sublaunch_affiliate",
  "joined": true,
  "rate_percent": 20,
  "on_tiers": true,
  "tiers_percent": [5, 10, 20, 30, 40, 50],
  "next_rate_percent": 30,
  "max_rate_percent": 50,
  "active_creators": 3,
  "active_window_days": 30,
  "referral_code": "alphadk",
  "link": "https://sublaunch.com?via=alphadk",
  "referred_creator_discount": {
    "percent": 10,
    "days": 30
  },
  "referrals": [
    {
      "name": "Nadia Brooks",
      "email": "nadia@example.com",
      "plan": "business",
      "earned_usd": 42.6
    }
  ],
  "balance": "manage_payouts affiliate_balance (and cashout) holds what it earned.",
  "creator_programs": [
    {
      "object": "creator_program",
      "id": "Kp3mX9qLt2",
      "username": "chartroom",
      "name": "Chart Room",
      "rate_percent": 30,
      "url": "https://sublaunch.com/chartroom/affiliate"
    }
  ]
}

The Sublaunch affiliate stats object

The cards of the Affiliate page's stats, for the owner's link only.

Attributes

  • objectstring
    Always sublaunch_affiliate_stats.
  • joinedboolean
    Whether the owner is in the program. Before, the line cards are at zero and the lists are left out, as on the page.
  • timezonestring
    The owner's timezone, which sets the days.
  • currencystring
    Always usd.
  • stats_fromstring
    The program's stats start on this date, ISO 8601. Nothing before it is counted.
  • periodobject
    The period, its scale and what it is compared to, as the dashboard object's, without a tag.
  • chartsarray of objects
    The cards, in the page's order. Line cards have the dashboard's value, compared_value and change. last_commissions and last_new_creators are lists, creators_by_plan a breakdown.
  • messagestring
    Only when the owner is not in the program yet.
Sublaunch affiliate stats object
{
  "object": "sublaunch_affiliate_stats",
  "joined": true,
  "timezone": "Europe/Paris",
  "currency": "usd",
  "stats_from": "2026-11-29T13:57:00.000Z",
  "period": {
    "time": "last_4_weeks",
    "start": "2026-11-03T23:00:00.000Z",
    "end": "2026-12-01T22:59:59.999Z",
    "scale": "day",
    "scales": ["day"],
    "comparison": "previous_period",
    "compared_start": "2026-10-06T22:00:00.000Z",
    "compared_end": "2026-11-03T22:59:59.999Z"
  },
  "charts": [
    {
      "key": "total_commissions",
      "title": "Total commissions",
      "type": "line",
      "unit": "currency",
      "value": 42.6,
      "compared_value": 0,
      "change": null
    },
    {
      "key": "new_creators",
      "title": "New creators",
      "type": "line",
      "unit": "number",
      "value": 1,
      "compared_value": 0,
      "change": null
    },
    {
      "key": "last_new_creators",
      "title": "Last new creators",
      "type": "list",
      "rows": [
        {
          "name": "Nadia Brooks",
          "email": "nadia@example.com",
          "plan": "business",
          "joined_at": "2026-11-30T10:12:04.000Z"
        }
      ]
    }
  ]
}