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

  • objectstring
    Always account.
  • idstring
    Unique identifier for the account, the owner's user ID.
  • emailstring or null
    The email the owner signs in with.
  • first_namestring
    Their first name.
  • last_namestring
    Their last name.
  • photo_urlstring or null
    Their profile photo's URL.
  • languagestring
    The language Sublaunch shows in for them.
    enfresitderuptnlja
  • timezonestring
    Their timezone, an IANA name like Europe/Paris, or UTC.
Account object
{
  "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

POST/v1/accountread scopeMCPmanage_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

  • actionstringRequired
    What to do. get with a read key, the others with a write key.
    getupdatechange_emaildelete
  • first_namestring
    For update, the first name, 80 characters at most.
  • last_namestring
    For update, the last name, 80 characters at most.
  • photo_urlstring or null
    For update, the profile photo, a public HTTPS URL. null removes it.
  • languagestring
    For update, the language Sublaunch shows in.
    enfresitderuptnlja
  • timezonestring
    For update, an IANA timezone like Europe/Paris, or UTC.
  • new_emailstring
    For change_email, the new email. Without code, a 6 digit code is sent to that inbox.
  • codestring
    For change_email, the 6 digit code the owner reads in the new inbox. It expires in 10 minutes.
  • confirmstring
    For delete, exactly DELETE 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. param names it.
  • A value the API does not accept, or a field another action takes, or a confirm that is not exactly DELETE ACCOUNT. 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.
  • change_email with 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.
  • The code is not the one sent. Check it in the email, or call change_email with new_email alone for a new one.
  • The code expired or was used. Call change_email with new_email alone for a new one.
  • The new email is the account's already.
  • Another 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-After seconds.
POST/v1/account
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"
  }'
Response200
{
  "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

  • objectstring
    Always sublaunch.
  • idstring
    Unique identifier for the Sublaunch.
  • usernamestring
    The name in its link, like alphadesk.
  • namestring
    Its name.
  • photo_urlstring or null
    Its photo's URL.
  • kindstring
    community, or landing for a Showcase page.
    communitylanding
  • linkstring
    Its address on Sublaunch.
  • rolestring
    owner when the account owns it, collaborator when it helps run it.
    ownercollaborator
  • active_subscribersinteger
    How many active members it has.
  • archivedboolean
    Whether it is archived in the account's list. It stays online for its members.
  • currentboolean
    Whether it is the key's own Sublaunch.
Listed Sublaunch object
{
  "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

POST/v1/account/sublaunchesread scopeMCPmanage_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

  • actionstringRequired
    What to do. list with a read key, the others with a write key.
    listduplicatearchiveunarchivedeleteclaim
  • sublaunch_idstring
    For archive and unarchive, a Sublaunch as list returns it. The key's own by default.
  • confirm_usernamestring
    For delete, the username of the key's Sublaunch, like alphadesk, as the app asks to type it. Nothing is deleted when it does not match.
  • usernamestring
    For claim, the username of the page with no owner, like alphadesk, or its link sublaunch.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. param names it.
  • A value the API does not accept, or a field another action takes, or a confirm_username that is not the Sublaunch's username. param names it. Nothing changed.
  • The key or AI app is a team member's, or sublaunch_id is not a Sublaunch the account runs.
  • A read key asks for an action that changes something. Use a key with write.
  • 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.
POST/v1/account/sublaunches
curl -X POST \
  https://api.sublaunch.com/v1/account/sublaunches \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "list"
  }'
Response200
{
  "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

  • objectstring
    Always sublaunch_plan.
  • planstring
    The plan the account is on.
    starterbusinesspremium
  • namestring
    Its name, like Business.
  • billing_periodstring
    How it is billed. Starter is monthly.
    monthlyquarterlyannually
  • statusstring or null
    Its subscription's status, like active.
  • renews_atstring or null
    When it renews, ISO 8601. Null on Starter.
  • priceobject
    What it costs.
  • transaction_fee_percentnumber
    Sublaunch's fee on each payment, in percent.
  • creditsobject
    The account's credits, which pay for emails and images.
  • affiliate_discount_untilstring or null
    Until when a gift code's or an affiliate's discount applies, ISO 8601.
  • plansarray of objects
    Every plan, as the Plans page shows them.
  • credit_packsarray of objects
    The credit packs on sale.
  • manage_urlstring
    The Plans page in the app.
Plan object
{
  "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

POST/v1/account/planread scopeMCPmanage_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

  • actionstringRequired
    What to do. get with a read key, the others with a write key.
    getchangecancelbilling_portalbuy_creditsauto_rechargeapply_gift_code
  • planstring
    For change, the plan to move to.
    starterbusinesspremium
  • billing_periodstring
    For change, how it is billed, its current period by default. quarterly or annually only when the plan has it on sale.
    monthlyquarterlyannually
  • packstring
    For buy_credits, the pack to buy. For auto_recharge, the pack bought on its own, or off to turn auto recharge off.
    minismallmediumlargexlxxloff
  • gift_codestring
    For 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. param names it.
  • A value the API does not accept, or a field another action takes. 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.
  • 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.
  • The 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.
POST/v1/account/plan
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"
  }'
Response200
{
  "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

  • idstring
    Unique identifier for the key.
  • objectstring
    Always api_key.
  • namestring
    Its name, like Zapier.
  • prefixstring
    Its first 12 characters, like sl_live_7fK2, to tell the keys apart. Never the whole secret.
  • scopesarray of strings
    What it can do. read reads, write also changes.
    readwrite
  • created_atstring
    When it was made, ISO 8601.
  • last_used_atstring or null
    When it last made a request, ISO 8601.
  • currentboolean
    Whether it is the key making this request.
  • secretstring
    The whole key, only in the answer of create and roll, once. Keep it safe, it is never shown again.
API key object
{
  "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

POST/v1/api_keysread scopeMCPmanage_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

  • actionstringRequired
    What to do. list with a read key, the others with a write key.
    listcreaterollrevoke
  • key_idstring
    For roll and revoke, the key's ID, as list returns it.
  • namestring
    For create, the key's name, 60 characters at most. API key by default.
  • scopesarray of strings
    For create, read alone, the default, or read and write. 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. param names it.
  • A value the API does not accept, or a field another action takes. param names it. Nothing changed.
  • The key or AI app is a team member's, or an AI app connected through OAuth asks to make or roll a key.
  • A read key 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.
POST/v1/api_keys
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"]
  }'
Response200
{
  "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."
}