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

  • objectstring
    Always automatic_email.
  • templatestring
    Which email it is, its unique identifier.
    spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite
  • namestring
    Its name, like Welcome.
  • kindstring
    automatic for the welcome, the activity notifications, the affiliate welcome and the payment received email, which can be paused or deleted. transactional for the ones always sent, like the sign in code.
    automatictransactional
  • triggerstring
    What sends it, like New member.
  • descriptionstring
    When it goes out.
  • statusstring
    paused when nobody gets it until it is resumed. The payment received email starts paused.
    activepaused
  • can_pauseboolean
    Whether it can be paused.
  • can_deleteboolean
    Whether it can be deleted.
  • customizedboolean
    True when its words are yours, false when they are Sublaunch's.
  • updated_atstring or null
    When it last changed, ISO 8601. Null when it never did.
Automatic email object
{
  "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

GET/v1/automatic_emailsread scopeMCPlist_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

  • The Sublaunch is still on the former app. Its automatic emails change in the app.
GET/v1/automatic_emails
curl https://api.sublaunch.com/v1/automatic_emails \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "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

POST/v1/automatic_emails/:template/pausewrite scopeMCPpause_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

  • templatestringRequired
    Which email, its template as List automatic emails returns it.
    spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite

Returns

An automatic email object.

Errors

  • No automatic email with this template, or it was deleted.
  • The email is always sent, like the sign in code. It cannot be paused, only rewritten.
  • The Sublaunch is still on the former app. Its automatic emails change in the app.
POST/v1/automatic_emails/:template/pause
curl -X POST \
  https://api.sublaunch.com/v1/automatic_emails/spaceNotification/pause \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "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

POST/v1/automatic_emails/:template/resumewrite scopeMCPresume_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

  • templatestringRequired
    Which email, its template as List automatic emails returns it.
    spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite

Returns

An automatic email object.

Errors

  • No automatic email with this template, or it was deleted.
  • The email is always sent, like the sign in code. It cannot be paused, only rewritten.
  • The Sublaunch is still on the former app. Its automatic emails change in the app.
POST/v1/automatic_emails/:template/resume
curl -X POST \
  https://api.sublaunch.com/v1/automatic_emails/spaceNotification/resume \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "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

DELETE/v1/automatic_emails/:templatewrite scopeMCPdelete_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

  • templatestringRequired
    Which email, its template as 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.
  • The email is always sent, like the sign in code. It cannot be deleted, only rewritten.
  • The Sublaunch is still on the former app. Its automatic emails change in the app.
DELETE/v1/automatic_emails/:template
curl -X DELETE \
  https://api.sublaunch.com/v1/automatic_emails/affiliateJoined \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "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

  • objectstring
    Always automatic_email.
  • templatestring
    Which email it is, its unique identifier.
    spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite
  • namestring
    Its name, like Welcome.
  • kindstring
    automatic for the welcome, the activity notifications, the affiliate welcome and the payment received email, which can be paused or deleted. transactional for the ones always sent, like the sign in code.
    automatictransactional
  • triggerstring
    What sends it, like New member.
  • descriptionstring
    When it goes out.
  • statusstring
    paused when nobody gets it until it is resumed. The payment received email starts paused.
    activepaused
  • can_pauseboolean
    Whether it can be paused.
  • can_deleteboolean
    Whether it can be deleted.
  • customizedboolean
    True when its words are yours, false when they are Sublaunch's.
  • updated_atstring or null
    When it last changed, ISO 8601. Null when it never did.
  • subjectstring
    The email's subject.
  • preview_textstring
    The line inboxes show after the subject.
  • contentarray of objects
    The email's blocks in order.
  • variablesarray of strings
    The 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 strings
    The blocks it needs, like code in the sign in code email.
Automatic email with its content
{
  "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

GET/v1/automatic_emails/:templateread scopeMCPget_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

  • templatestringRequired
    Which email, its template as List automatic emails returns it.
    spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite

Returns

The automatic email with its content.

Errors

  • No automatic email with this template, or it was deleted.
  • The 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.
GET/v1/automatic_emails/:template
curl \
  https://api.sublaunch.com/v1/automatic_emails/spaceWelcome \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "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

PATCH/v1/automatic_emails/:templatewrite scopeMCPupdate_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

  • templatestringRequired
    Which email, its template as List automatic emails returns it.
    spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite

Body parameters

  • subjectstring
    The subject, 300 characters at most. The email's variables work, like {firstName} or {firstName|there}.
  • preview_textstring
    The line inboxes show after the subject, 300 characters at most, with the email's variables as in the subject.
  • contentarray of objects
    The 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 keep block with no such ref, a new button with no https href, or no code block in the sign in code email. param names it.
  • The body has a field this endpoint does not take.
  • The 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.
PATCH/v1/automatic_emails/:template
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"
  }'
Response200
{
  "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

POST/v1/automatic_emails/:template/resetwrite scopeMCPreset_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

  • templatestringRequired
    Which email, its template as List automatic emails returns it.
    spaceWelcomespaceNotificationaffiliateJoinedspaceAuthCodespaceRenewedspaceUnlockedspacePaymentFailedspaceCancelScheduledspaceEndedaffiliateCommissionChangedaffiliateDisabledaffiliateDeletedteamInvite

Returns

The automatic email with its content.

Errors

  • No automatic email with this template, or it was deleted.
  • The 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.
POST/v1/automatic_emails/:template/reset
curl -X POST \
  https://api.sublaunch.com/v1/automatic_emails/spaceWelcome/reset \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "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": []
}