API reference
Account
The account is the Sublaunch owner's own, with their name, email, plan, credits and every Sublaunch they run. The API reads and changes them as Account and the Communities page in the app, and makes, rolls and revokes the Sublaunch's API keys.
Only the owner's keys and AI app connections reach these endpoints. A team member's key gets forbidden. A read key lists and reads, every other action needs a write key.
Each endpoint takes an action, what to do, with the fields that action takes. A field another action takes answers parameter_invalid, and nothing changes.
Some changes are confirmed where they happen. A plan change, a cancellation and credits go through Stripe's own page, a url the owner opens, and nothing changes before. The email changes only in SublaunchAI, with a code sent to the new inbox. Deleting a Sublaunch takes its username in confirm_username, deleting the account takes confirm set to DELETE ACCOUNT. Ask the owner first, neither can be undone.
The account object
The Sublaunch owner's own account, as General in the app's Account.
Attributes
- objectstringAlways
account. - idstringUnique identifier for the account, the owner's user ID.
- emailstring or nullThe email the owner signs in with.
- first_namestringTheir first name.
- last_namestringTheir last name.
- photo_urlstring or nullTheir profile photo's URL.
- languagestringThe language Sublaunch shows in for them.
enfresitderuptnlja - timezonestringTheir timezone, an IANA name like
Europe/Paris, orUTC.
{
"object": "account",
"id": "Uo7kR2mQ9x",
"email": "sam@alphadesk.com",
"first_name": "Sam",
"last_name": "Moreau",
"photo_url": "https://example.com/sam-moreau.png",
"language": "en",
"timezone": "Europe/Paris"
}Manage the account
Reads and changes the owner's account, as General in the app's Account. get returns it. update changes the first name, the last name, the photo, the language or the timezone, only the fields you send. change_email moves the account to a new email in two steps, only in SublaunchAI, where the owner is signed in. A first call with new_email sends a 6 digit code to that inbox, a second one with new_email and code applies it. delete deletes the account and every Sublaunch it owns once confirm is DELETE ACCOUNT. It is refused while the plan is paid or the account has active members. Every session, API key and connection stops working, so ask the owner first.
Body parameters
- actionstringRequiredWhat to do.
getwith areadkey, the others with awritekey.getupdatechange_emaildelete - first_namestringFor
update, the first name, 80 characters at most. - last_namestringFor
update, the last name, 80 characters at most. - photo_urlstring or nullFor
update, the profile photo, a public HTTPS URL.nullremoves it. - languagestringFor
update, the language Sublaunch shows in.enfresitderuptnlja - timezonestringFor
update, an IANA timezone likeEurope/Paris, orUTC. - new_emailstringFor
change_email, the new email. Withoutcode, a 6 digit code is sent to that inbox. - codestringFor
change_email, the 6 digit code the owner reads in the new inbox. It expires in 10 minutes. - confirmstringFor
delete, exactlyDELETE ACCOUNT, as the app asks to type it.
Returns
With get and update, the account object, with updated, the fields changed, after an update. With change_email, an email_change object with its status, code_sent then changed, its email and a message. A code asked again within a minute is not sent again, and resend_in_seconds says when it can be. With delete, the account's id and deleted set to true.
Errors
- A required parameter is missing.
paramnames it. - A value the API does not accept, or a field another action takes, or a
confirmthat is not exactlyDELETE ACCOUNT.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. - 403chat_only
change_emailwith an API key or an AI app connected through OAuth. The email changes only in the Sublaunch app or SublaunchAI. - The new email is not a valid email address.
- 400code_invalidThe code is not the one sent. Check it in the email, or call
change_emailwithnew_emailalone for a new one. - 400code_expiredThe code expired or was used. Call
change_emailwithnew_emailalone for a new one. - 409email_sameThe new email is the account's already.
- 409email_takenAnother account uses this email.
- The plan is still paid or the account still has active members, so it is not deleted. The message says which, contact Sublaunch's support.
- 5 codes were sent from this account in the hour. Wait for
Retry-Afterseconds.
curl -X POST https://api.sublaunch.com/v1/account \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "update",
"first_name": "Sam",
"timezone": "America/New_York"
}'{
"object": "account",
"id": "Uo7kR2mQ9x",
"email": "sam@alphadesk.com",
"first_name": "Sam",
"last_name": "Moreau",
"photo_url": "https://example.com/sam-moreau.png",
"language": "en",
"timezone": "America/New_York",
"updated": ["first_name", "timezone"]
}The listed Sublaunch object
A Sublaunch the account owns or helps run, as the Communities page in the app lists it.
Attributes
- objectstringAlways
sublaunch. - idstringUnique identifier for the Sublaunch.
- usernamestringThe name in its link, like
alphadesk. - namestringIts name.
- photo_urlstring or nullIts photo's URL.
- kindstring
community, orlandingfor a Showcase page.communitylanding - linkstringIts address on Sublaunch.
- rolestring
ownerwhen the account owns it,collaboratorwhen it helps run it.ownercollaborator - active_subscribersintegerHow many active members it has.
- archivedbooleanWhether it is archived in the account's list. It stays online for its members.
- currentbooleanWhether it is the key's own Sublaunch.
{
"object": "sublaunch",
"id": "q7RkX2LmPv",
"username": "alphadesk",
"name": "Alpha Desk",
"photo_url": "https://example.com/alpha-desk-logo.png",
"kind": "community",
"link": "https://sublaunch.com/alphadesk",
"role": "owner",
"active_subscribers": 253,
"archived": false,
"current": true
}Manage your Sublaunch
Lists every Sublaunch the account owns or helps run and changes them, as the Communities page in the app. list returns them all, archived or not. duplicate copies the key's Sublaunch with its content and prices, none of its members, payments, coupons or stats. The copy's link shows enrollment closed until its first publish. archive and unarchive take a Sublaunch out of the account's list or put it back, and it stays online for its members. delete deletes the key's Sublaunch once confirm_username is its username, and its API keys and AI app connections stop working with it. It is refused while the Sublaunch has members, archive it instead. Ask the owner before deleting, it cannot be undone. claim makes a page with no owner yet the account's own, from its username. SublaunchAI's onboarding makes such a page for a visitor who is not signed in, live at its link until an account claims it, and the first one gets it. Its drafted courses come back in drafted_courses, to make with a key of that Sublaunch. Ask the owner before claiming.
Body parameters
- actionstringRequiredWhat to do.
listwith areadkey, the others with awritekey.listduplicatearchiveunarchivedeleteclaim - sublaunch_idstringFor
archiveandunarchive, a Sublaunch aslistreturns it. The key's own by default. - confirm_usernamestringFor
delete, the username of the key's Sublaunch, likealphadesk, as the app asks to type it. Nothing is deleted when it does not match. - usernamestringFor
claim, the username of the page with no owner, likealphadesk, or its linksublaunch.com/alphadesk.
Returns
With list, a list of listed Sublaunch objects, whole in one page. With duplicate, the copy's id, username, name and link, with duplicated_from and published set to false. With archive and unarchive, its id and archived. With delete, its id, username and deleted set to true. With claim, its id, username, link, claimed set to true and drafted_courses. Each change comes with a message.
Errors
- A required parameter is missing.
paramnames it. - A value the API does not accept, or a field another action takes, or a
confirm_usernamethat is not the Sublaunch's username.paramnames it. Nothing changed. - 403forbiddenThe key or AI app is a team member's, or
sublaunch_idis not a Sublaunch the account runs. - A
readkey asks for an action that changes something. Use a key withwrite. - With
claim, no page has that username. - The Sublaunch has active members, so it is not deleted. Archive it instead, or contact Sublaunch's support once it is archived.
- With
claim, the page already has an owner.
curl -X POST \
https://api.sublaunch.com/v1/account/sublaunches \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "list"
}'{
"object": "list",
"data": [
{
"object": "sublaunch",
"id": "q7RkX2LmPv",
"username": "alphadesk",
"name": "Alpha Desk",
"photo_url": "https://example.com/alpha-desk-logo.png",
"kind": "community",
"link": "https://sublaunch.com/alphadesk",
"role": "owner",
"active_subscribers": 253,
"archived": false,
"current": true
},
{
"object": "sublaunch",
"id": "Lp3wN8kQ2v",
"username": "alphadesk-guide",
"name": "Alpha Desk Guide",
"photo_url": null,
"kind": "landing",
"link": "https://sublaunch.com/alphadesk-guide",
"role": "owner",
"active_subscribers": 0,
"archived": true,
"current": false
}
],
"has_more": false,
"next_cursor": null
}The plan object
The owner's own Sublaunch plan, as Plans in the app's Account, with its credits, every plan's price and the credit packs.
Attributes
- objectstringAlways
sublaunch_plan. - planstringThe plan the account is on.
starterbusinesspremium - namestringIts name, like
Business. - billing_periodstringHow it is billed. Starter is
monthly.monthlyquarterlyannually - statusstring or nullIts subscription's status, like
active. - renews_atstring or nullWhen it renews, ISO 8601. Null on Starter.
- priceobjectWhat it costs.
- transaction_fee_percentnumberSublaunch's fee on each payment, in percent.
- creditsobjectThe account's credits, which pay for emails and images.
- affiliate_discount_untilstring or nullUntil when a gift code's or an affiliate's discount applies, ISO 8601.
- plansarray of objectsEvery plan, as the Plans page shows them.
- credit_packsarray of objectsThe credit packs on sale.
- manage_urlstringThe Plans page in the app.
{
"object": "sublaunch_plan",
"plan": "business",
"name": "Business",
"billing_period": "monthly",
"status": "active",
"renews_at": "2026-12-12T10:04:22.000Z",
"price": {
"amount": 99,
"currency": "usd",
"every_months": 1,
"per_month": 99
},
"transaction_fee_percent": 4,
"credits": {
"balance": 1200,
"per_period": 100,
"auto_recharge_pack": null,
"auto_recharge_below": 300
},
"affiliate_discount_until": null,
"plans": [
{
"plan": "starter",
"name": "Starter",
"price_per_month": 0,
"quarterly_price_per_month": null,
"quarterly_on_sale": false,
"transaction_fee_percent": 15,
"credits_per_month": 0
},
{
"plan": "business",
"name": "Business",
"price_per_month": 99,
"quarterly_price_per_month": 89,
"quarterly_on_sale": true,
"transaction_fee_percent": 4,
"credits_per_month": 100
},
{
"plan": "premium",
"name": "Premium",
"price_per_month": 169,
"quarterly_price_per_month": 152,
"quarterly_on_sale": true,
"transaction_fee_percent": 3,
"credits_per_month": 200
}
],
"credit_packs": [
{
"id": "mini",
"credits": 1000,
"amount": 6,
"currency": "usd",
"available": true
},
{
"id": "small",
"credits": 2500,
"amount": 14,
"currency": "usd",
"available": true
},
{
"id": "medium",
"credits": 10000,
"amount": 49,
"currency": "usd",
"available": true
},
{
"id": "large",
"credits": 25000,
"amount": 110,
"currency": "usd",
"available": true
},
{
"id": "xl",
"credits": 50000,
"amount": 199,
"currency": "usd",
"available": true
},
{
"id": "xxl",
"credits": 125000,
"amount": 450,
"currency": "usd",
"available": true
}
],
"manage_url": "https://sublaunch.com/alphadesk/a/plans"
}Manage the plan
Reads and changes the owner's own Sublaunch plan and credits, as Plans in the app's Account. A plan change, a cancellation and a credit pack go through Stripe's own page, a url the owner opens, which shows the amount and takes a promo code. Nothing changes until it is confirmed there. get returns the plan, its credits, every plan's price and the credit packs. change moves to another plan or billing period, and the plan and period the account is on already open its Manage subscription page instead. cancel moves back to Starter, the free plan. billing_portal opens the invoices and the payment card. buy_credits opens Stripe's checkout for a pack, added once it is paid. auto_recharge has the saved card buy a pack whenever the balance is under 300 credits, or turns that off. apply_gift_code applies a gift code from Sublaunch or an affiliate. Ask the owner before each change.
Body parameters
- actionstringRequiredWhat to do.
getwith areadkey, the others with awritekey.getchangecancelbilling_portalbuy_creditsauto_rechargeapply_gift_code - planstringFor
change, the plan to move to.starterbusinesspremium - billing_periodstringFor
change, how it is billed, its current period by default.quarterlyorannuallyonly when the plan has it on sale.monthlyquarterlyannually - packstringFor
buy_credits, the pack to buy. Forauto_recharge, the pack bought on its own, oroffto turn auto recharge off.minismallmediumlargexlxxloff - gift_codestringFor
apply_gift_code, a gift code from Sublaunch or an affiliate. It works once, within 24 hours of signing up.
Returns
With get, the plan object. With change and cancel, a plan_change object with Stripe's url, the plan, the billing_period and a message, and already_on_plan set to true when it opens the Manage subscription page. With billing_portal, a billing_portal object with its url. With buy_credits, a credits_checkout object with its url, the pack and its credits. With auto_recharge, an auto_recharge object with its pack and below. With apply_gift_code, a gift_code object with applied set to true.
Errors
- A required parameter is missing.
paramnames it. - A value the API does not accept, or a field another action takes.
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. - Credits come with Business and Premium. Move to one of them first.
- No gift for this code. A gift code works once, within 24 hours of signing up.
- The account is on this plan already, like Starter when it asks to cancel.
- This billing period is not on sale yet for this plan.
- Credit packs are not on sale yet.
- 409no_billingThe account has no billing yet. Starter is free, so there are no invoices or card to manage.
- Stripe did not answer. Nothing changed, try again in a minute.
curl -X POST https://api.sublaunch.com/v1/account/plan \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "change",
"plan": "premium",
"billing_period": "quarterly"
}'{
"object": "plan_change",
"url": "https://billing.stripe.com/p/session/live_a1B2c3D4e5F6g7H8i9J0",
"plan": "premium",
"billing_period": "quarterly",
"message": "Open this Stripe page to confirm Premium, billed quarterly: it shows the amount and takes a promo code. Nothing changes until it is confirmed there."
}The API key object
A key of the Sublaunch's API, as its API page in the app lists it. Its secret is never shown again once it is made.
Attributes
- idstringUnique identifier for the key.
- objectstringAlways
api_key. - namestringIts name, like
Zapier. - prefixstringIts first 12 characters, like
sl_live_7fK2, to tell the keys apart. Never the whole secret. - scopesarray of stringsWhat it can do.
readreads,writealso changes.readwrite - created_atstringWhen it was made, ISO 8601.
- last_used_atstring or nullWhen it last made a request, ISO 8601.
- currentbooleanWhether it is the key making this request.
- secretstringThe whole key, only in the answer of
createandroll, once. Keep it safe, it is never shown again.
{
"id": "Ak4mQ8xR2p",
"object": "api_key",
"name": "Zapier",
"prefix": "sl_live_7fK2",
"scopes": ["read", "write"],
"created_at": "2026-03-12T10:04:22.000Z",
"last_used_at": "2026-11-17T09:30:00.000Z",
"current": false
}Manage API keys
Lists and changes the Sublaunch's API keys, as its API page in the app. list returns them, never a secret. create makes a key with a name and scopes, never more than the asking key's own, and its secret comes once in the answer. roll gives a key a new secret, and the old one stops at once, the asking key's own too. revoke stops a key at once, and the webhook endpoints it made are turned off. A secret only goes to a secret key's own request. SublaunchAI makes and rolls keys with its API card, and an AI app connected through OAuth cannot. A Sublaunch has 20 active keys at most. Ask the owner before rolling or revoking a key.
Body parameters
- actionstringRequiredWhat to do.
listwith areadkey, the others with awritekey.listcreaterollrevoke - key_idstringFor
rollandrevoke, the key's ID, aslistreturns it. - namestringFor
create, the key's name, 60 characters at most.API keyby default. - scopesarray of stringsFor
create,readalone, the default, orreadandwrite. Never more than the asking key's own.readwrite
Returns
With list, a list of API key objects, whole in one page. With create and roll, the API key object with its secret and a message. With revoke, the key's id, revoked set to true and current.
Errors
- A required parameter is missing.
paramnames it. - A value the API does not accept, or a field another action takes.
paramnames it. Nothing changed. - 403forbiddenThe key or AI app is a team member's, or an AI app connected through OAuth asks to make or roll a key.
- A
readkey asks for a change, or a new key would have more access than the asking key. - SublaunchAI asks to make or roll a key. Its secret never reaches the chat, so it is made with the chat's API card or on the API page.
- No active API key with this ID in the key's Sublaunch.
- The Sublaunch has 20 active API keys. Revoke one first.
curl -X POST https://api.sublaunch.com/v1/api_keys \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "create",
"name": "Zapier",
"scopes": ["read", "write"]
}'{
"id": "Ak4mQ8xR2p",
"object": "api_key",
"name": "Zapier",
"prefix": "sl_live_7fK2",
"scopes": ["read", "write"],
"created_at": "2026-11-17T09:30:00.000Z",
"last_used_at": null,
"current": false,
"secret": "sl_live_7fK2mQ9xLp4RtV8nB3cW6yHd",
"message": "Copy the secret now: it is shown this once and never again."
}