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
- objectstringAlways
sublaunch_affiliate. - joinedbooleanWhether the owner is in the program.
joinputs them in. - rate_percentnumberWhat the owner earns, in percent of what the creators they brought pay Sublaunch.
- on_tiersboolean
truewhen the rate follows the tiers.falsefor a fixed rate from before them. - tiers_percentarray of numbersThe tiers' rates, for 1, 2, 3, 4, 5, then 6 or more active creators.
- next_rate_percentnumber or nullThe rate with one more active creator. Null on the last tier or a fixed rate.
- max_rate_percentnumber or nullThe program's highest rate.
- active_creatorsintegerHow many creators the owner brought paid Sublaunch in the last
active_window_days. It sets the tier. - active_window_daysintegerHow many days back a payment makes a creator active.
- referral_codestring or nullThe code of the owner's link.
- linkstring or nullThe link to share. Null until the owner joins.
- referred_creator_discountobjectWhat a creator who signs up through the link gets.
- referralsarray of objectsThe creators the owner brought, as the page's History, 50 at most.
- balancestringWhere the earnings go. Manage payouts reads the affiliate balance and cashes it out.
- creator_programsarray of objects or nullThe 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.
- messagestringOnly when something needs saying, like the owner not in the program yet.
{
"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
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
- actionstringRequiredWhat to do.
getandstatswith areadkey, the others with awritekey.getjoinset_codestats - codestringFor
set_code, the part after?via=, 1 to 8 lowercase letters, digits,-or_. - chartsarray of stringsFor
stats, only these cards, bykey. Every card by default.total_commissionscreator_commissionssubscriber_commissionscommission_countlast_commissionsnew_creatorscreators_by_planlast_new_creatorsvisitorsconversion_rate - timestringFor
stats, the Time menu's choice.last_4_weeksby default.todaylast_7_dayslast_4_weekslast_3_monthslast_12_monthsmonth_to_datequarter_to_dateyear_to_dateall_timecustom - startstringFor
stats, a custom period's first day,2026-11-01, withend. - endstringFor
stats, a custom period's last day, today at the latest. - scalestringFor
stats, the step of the curves, one ofperiod.scales.hourdayweekmonth - comparisonstringFor
stats, what the period is compared to.previous_periodby default.previous_periodprevious_monthprevious_quarterprevious_yearno_comparison - seriesbooleanFor
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
codewithget.paramnames it. Nothing changed. - 403forbiddenThe key or AI app is a team member's. Only the owner's keys and connections reach it.
- A
readkey asks for an action that changes something. Use a key withwrite. - 400join_refusedSublaunch refused the join. The message says why.
- 409join_failedThe join did not take. Try again, or open the Affiliate page in the app.
- 409not_joined
set_codebefore the owner is in the program.joinfirst. - 409code_takenAnother affiliate has the code, or it is reserved. The link stays the same.
curl -X POST \
https://api.sublaunch.com/v1/sublaunch_affiliate \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "get"
}'{
"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
- objectstringAlways
sublaunch_affiliate_stats. - joinedbooleanWhether the owner is in the program. Before, the line cards are at zero and the lists are left out, as on the page.
- timezonestringThe owner's timezone, which sets the days.
- currencystringAlways
usd. - stats_fromstringThe program's stats start on this date, ISO 8601. Nothing before it is counted.
- periodobjectThe period, its scale and what it is compared to, as the dashboard object's, without a tag.
- chartsarray of objectsThe cards, in the page's order. Line cards have the dashboard's
value,compared_valueandchange.last_commissionsandlast_new_creatorsare lists,creators_by_plana breakdown. - messagestringOnly when the owner is not in the program yet.
{
"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"
}
]
}
]
}