API reference
Automatic emails
An automatic email goes out on its own when something happens on your Sublaunch, like the welcome email when someone joins or the sign in code. The API lists them, reads and rewrites their words, pauses, resets and deletes them.
The welcome, the activity notifications, the affiliate welcome and the payment received email can be paused or deleted. The payment received email, the receipt of each renewal, starts paused, so a renewal does not remind a member to cancel, and you turn it on by resuming it. The others are always sent, and their words can change. What sends each one and when stays Sublaunch's, and no new one can be made.
A change is live at once for the next emails sent, with no draft to publish. Each email's variables, like {firstName} or {{firstName}}, are filled for each person, and {firstName|there} writes there when the first name is empty.
An email's words also change block by block with Content, the document email:<template>, like email:spaceWelcome.
The automatic email object
An email Sublaunch sends on its own when something happens on your Sublaunch.
Attributes
- objectstringAlways
automatic_email. - templatestringWhich email it is, its unique identifier.
spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite - namestringIts name, like
Welcome. - kindstring
automaticfor the welcome, the activity notifications, the affiliate welcome and the payment received email, which can be paused or deleted.transactionalfor the ones always sent, like the sign in code.automatictransactional - triggerstringWhat sends it, like
New member. - descriptionstringWhen it goes out.
- statusstring
pausedwhen nobody gets it until it is resumed. The payment received email startspaused.activepaused - can_pausebooleanWhether it can be paused.
- can_deletebooleanWhether it can be deleted.
- customizedbooleanTrue when its words are yours, false when they are Sublaunch's.
- updated_atstring or nullWhen it last changed, ISO 8601. Null when it never did.
{
"object": "automatic_email",
"template": "spaceWelcome",
"name": "Welcome",
"kind": "automatic",
"trigger": "New member",
"description": "Sent when someone joins your Sublaunch, free or paid.",
"status": "active",
"can_pause": true,
"can_delete": true,
"customized": true,
"updated_at": "2026-11-16T08:11:05.000Z"
}List automatic emails
Returns the Sublaunch's automatic emails, the welcome first, in one page. A deleted one is not listed.
Returns
A list of automatic email objects.
Errors
- 409not_v4The Sublaunch is still on the former app. Its automatic emails change in the app.
curl https://api.sublaunch.com/v1/automatic_emails \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"object": "list",
"data": [
{
"object": "automatic_email",
"template": "spaceWelcome",
"name": "Welcome",
"kind": "automatic",
"trigger": "New member",
"description": "Sent when someone joins your Sublaunch, free or paid.",
"status": "active",
"can_pause": true,
"can_delete": true,
"customized": true,
"updated_at": "2026-11-16T08:11:05.000Z"
},
{
"object": "automatic_email",
"template": "spaceNotification",
"name": "Activity notifications",
"kind": "automatic",
"trigger": "New activity",
"description": "Sent when a member gets a new post, reply, like or vote. Each member can turn them off.",
"status": "active",
"can_pause": true,
"can_delete": true,
"customized": false,
"updated_at": null
},
{
"object": "automatic_email",
"template": "spaceAuthCode",
"name": "Sign in code",
"kind": "transactional",
"trigger": "Sign in",
"description": "Sent when a member signs in to your Sublaunch.",
"status": "active",
"can_pause": false,
"can_delete": false,
"customized": false,
"updated_at": null
}
],
"has_more": false,
"next_cursor": null
}Pause an automatic email
Pauses an automatic email at once. Nobody gets it until you resume it. Only the ones whose can_pause is true can be paused.
Path parameters
- templatestringRequiredWhich email, its
templateas List automatic emails returns it.spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite
Returns
Errors
- No automatic email with this
template, or it was deleted. - 409always_sentThe email is always sent, like the sign in code. It cannot be paused, only rewritten.
- 409not_v4The Sublaunch is still on the former app. Its automatic emails change in the app.
curl -X POST \
https://api.sublaunch.com/v1/automatic_emails/spaceNotification/pause \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"object": "automatic_email",
"template": "spaceNotification",
"name": "Activity notifications",
"kind": "automatic",
"trigger": "New activity",
"description": "Sent when a member gets a new post, reply, like or vote. Each member can turn them off.",
"status": "paused",
"can_pause": true,
"can_delete": true,
"customized": false,
"updated_at": "2026-11-17T09:30:00.000Z"
}Resume an automatic email
Turns a paused automatic email on at once. It goes out each time what sends it happens. This is also how you turn on the payment received email, which starts paused.
Path parameters
- templatestringRequiredWhich email, its
templateas List automatic emails returns it.spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite
Returns
Errors
- No automatic email with this
template, or it was deleted. - 409always_sentThe email is always sent, like the sign in code. It cannot be paused, only rewritten.
- 409not_v4The Sublaunch is still on the former app. Its automatic emails change in the app.
curl -X POST \
https://api.sublaunch.com/v1/automatic_emails/spaceNotification/resume \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"object": "automatic_email",
"template": "spaceNotification",
"name": "Activity notifications",
"kind": "automatic",
"trigger": "New activity",
"description": "Sent when a member gets a new post, reply, like or vote. Each member can turn them off.",
"status": "active",
"can_pause": true,
"can_delete": true,
"customized": false,
"updated_at": "2026-11-17T09:30:00.000Z"
}Delete an automatic email
Deletes an automatic email at once. It is never sent again and leaves the list, which cannot be undone. Only the ones whose can_delete is true can be deleted. To stop one for a while, pause it.
Path parameters
- templatestringRequiredWhich email, its
templateas List automatic emails returns it.spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite
Returns
An object with the email's template and deleted true.
Errors
- No automatic email with this
template, or it was deleted. - 409always_sentThe email is always sent, like the sign in code. It cannot be deleted, only rewritten.
- 409not_v4The Sublaunch is still on the former app. Its automatic emails change in the app.
curl -X DELETE \
https://api.sublaunch.com/v1/automatic_emails/affiliateJoined \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"object": "automatic_email",
"template": "affiliateJoined",
"deleted": true
}The automatic email with its content
An automatic email with its words, yours when you rewrote it, Sublaunch's otherwise.
Attributes
- objectstringAlways
automatic_email. - templatestringWhich email it is, its unique identifier.
spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite - namestringIts name, like
Welcome. - kindstring
automaticfor the welcome, the activity notifications, the affiliate welcome and the payment received email, which can be paused or deleted.transactionalfor the ones always sent, like the sign in code.automatictransactional - triggerstringWhat sends it, like
New member. - descriptionstringWhen it goes out.
- statusstring
pausedwhen nobody gets it until it is resumed. The payment received email startspaused.activepaused - can_pausebooleanWhether it can be paused.
- can_deletebooleanWhether it can be deleted.
- customizedbooleanTrue when its words are yours, false when they are Sublaunch's.
- updated_atstring or nullWhen it last changed, ISO 8601. Null when it never did.
- subjectstringThe email's subject.
- preview_textstringThe line inboxes show after the subject.
- contentarray of objectsThe email's blocks in order.
- variablesarray of stringsThe variables this email fills for each person, like
firstName. Write them{firstName}, or{firstName|there}with the words used when it is empty.{{firstName}}works too. - required_blocksarray of stringsThe blocks it needs, like
codein the sign in code email.
{
"object": "automatic_email",
"template": "spaceWelcome",
"name": "Welcome",
"kind": "automatic",
"trigger": "New member",
"description": "Sent when someone joins your Sublaunch, free or paid.",
"status": "active",
"can_pause": true,
"can_delete": true,
"customized": true,
"updated_at": "2026-11-16T08:11:05.000Z",
"subject": "Welcome to {sublaunchName}, {firstName|friend}",
"preview_text": "Your first live session is tonight",
"content": [
{
"type": "h1",
"text": "Welcome to {sublaunchName}, {firstName}"
},
{
"type": "paragraph",
"text": "Your membership to **{sublaunchName}** is on."
},
{
"type": "facts",
"rows": [
{
"label": "Plan",
"value": "{plan}"
},
{
"label": "Amount paid",
"value": "{amount}"
}
]
},
{
"type": "button",
"id": "action",
"label": "Open Alpha Desk",
"member_link": true
},
{
"type": "small",
"text": "Sign in with **{email}** to find your membership."
}
],
"variables": [
"firstName",
"sublaunchName",
"email",
"plan",
"amount",
"date"
],
"required_blocks": []
}Retrieve an automatic email
Returns one automatic email with its subject, preview line and content, your words when you rewrote it, Sublaunch's otherwise. Its blocks go back as they are in Update an automatic email.
Path parameters
- templatestringRequiredWhich email, its
templateas List automatic emails returns it.spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite
Returns
The automatic email with its content.
Errors
- No automatic email with this
template, or it was deleted. - 409not_v4The Sublaunch is still on the former app. Its automatic emails change in the app.
- Sublaunch's words for an email you never rewrote could not be read. Nothing changed, try again in a minute.
curl \
https://api.sublaunch.com/v1/automatic_emails/spaceWelcome \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"object": "automatic_email",
"template": "spaceWelcome",
"name": "Welcome",
"kind": "automatic",
"trigger": "New member",
"description": "Sent when someone joins your Sublaunch, free or paid.",
"status": "active",
"can_pause": true,
"can_delete": true,
"customized": true,
"updated_at": "2026-11-16T08:11:05.000Z",
"subject": "Welcome to {sublaunchName}, {firstName|friend}",
"preview_text": "Your first live session is tonight",
"content": [
{
"type": "h1",
"text": "Welcome to {sublaunchName}, {firstName}"
},
{
"type": "paragraph",
"text": "Your membership to **{sublaunchName}** is on."
},
{
"type": "facts",
"rows": [
{
"label": "Plan",
"value": "{plan}"
},
{
"label": "Amount paid",
"value": "{amount}"
}
]
},
{
"type": "button",
"id": "action",
"label": "Open Alpha Desk",
"member_link": true
},
{
"type": "small",
"text": "Sign in with **{email}** to find your membership."
}
],
"variables": [
"firstName",
"sublaunchName",
"email",
"plan",
"amount",
"date"
],
"required_blocks": []
}Update an automatic email
Rewrites an automatic email's subject, preview line or content, live at once for the next emails sent. content replaces the whole email, so get it first, change its blocks and send them all back, or change some blocks with Content. The sign in code email keeps its code block.
Path parameters
- templatestringRequiredWhich email, its
templateas List automatic emails returns it.spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite
Body parameters
- subjectstringThe subject, 300 characters at most. The email's variables work, like
{firstName}or{firstName|there}. - preview_textstringThe line inboxes show after the subject, 300 characters at most, with the email's variables as in the subject.
- contentarray of objectsThe email's blocks in order, from 1 to 100. They replace the whole email, so send back every block of Retrieve an automatic email you keep.
Returns
The automatic email with its content.
Errors
- No automatic email with this
template, or it was deleted. - A parameter has a value the API does not accept, like an empty subject, a
keepblock with no suchref, a new button with no httpshref, or nocodeblock in the sign in code email.paramnames it. - The body has a field this endpoint does not take.
- 409not_v4The Sublaunch is still on the former app. Its automatic emails change in the app.
- Sublaunch's words for an email you never rewrote could not be read. Nothing changed, try again in a minute.
curl -X PATCH \
https://api.sublaunch.com/v1/automatic_emails/spaceWelcome \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject": "Welcome to {sublaunchName}, {firstName|friend}",
"preview_text": "Your first live session is tonight"
}'{
"object": "automatic_email",
"template": "spaceWelcome",
"name": "Welcome",
"kind": "automatic",
"trigger": "New member",
"description": "Sent when someone joins your Sublaunch, free or paid.",
"status": "active",
"can_pause": true,
"can_delete": true,
"customized": true,
"updated_at": "2026-11-16T08:11:05.000Z",
"subject": "Welcome to {sublaunchName}, {firstName|friend}",
"preview_text": "Your first live session is tonight",
"content": [
{
"type": "h1",
"text": "Welcome to {sublaunchName}, {firstName}"
},
{
"type": "paragraph",
"text": "Your membership to **{sublaunchName}** is on."
},
{
"type": "facts",
"rows": [
{
"label": "Plan",
"value": "{plan}"
},
{
"label": "Amount paid",
"value": "{amount}"
}
]
},
{
"type": "button",
"id": "action",
"label": "Open Alpha Desk",
"member_link": true
},
{
"type": "small",
"text": "Sign in with **{email}** to find your membership."
}
],
"variables": [
"firstName",
"sublaunchName",
"email",
"plan",
"amount",
"date"
],
"required_blocks": []
}Reset an automatic email
Drops your subject, preview line and content of an automatic email. Sublaunch's words are back at once, and yours cannot be got back.
Path parameters
- templatestringRequiredWhich email, its
templateas List automatic emails returns it.spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite
Returns
The automatic email with its content.
Errors
- No automatic email with this
template, or it was deleted. - 409not_v4The Sublaunch is still on the former app. Its automatic emails change in the app.
- Sublaunch's words for an email you never rewrote could not be read. Nothing changed, try again in a minute.
curl -X POST \
https://api.sublaunch.com/v1/automatic_emails/spaceWelcome/reset \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"object": "automatic_email",
"template": "spaceWelcome",
"name": "Welcome",
"kind": "automatic",
"trigger": "New member",
"description": "Sent when someone joins your Sublaunch, free or paid.",
"status": "active",
"can_pause": true,
"can_delete": true,
"customized": false,
"updated_at": "2026-11-17T09:30:00.000Z",
"subject": "Welcome to {sublaunchName}",
"preview_text": "Thank you! Your payment went through and your membership to {sublaunchName} is on.",
"content": [
{
"type": "h1",
"text": "Welcome to {sublaunchName}, {firstName}"
},
{
"type": "paragraph",
"text": "Your membership to **{sublaunchName}** is on."
},
{
"type": "facts",
"rows": [
{
"label": "Plan",
"value": "{plan}"
},
{
"label": "Amount paid",
"value": "{amount}"
}
]
},
{
"type": "button",
"id": "action",
"label": "Open Alpha Desk",
"member_link": true
},
{
"type": "small",
"text": "Sign in with **{email}** to find your membership."
}
],
"variables": [
"firstName",
"sublaunchName",
"email",
"plan",
"amount",
"date"
],
"required_blocks": []
}