API reference

Posts

Posts make your Sublaunch's Community. The API reads them with their comments and counts, and posts, pins, changes and deletes them as the Sublaunch's creator.

Posts and comments are live at once, never in the draft. Members get a notification for a new post, and a comment's author for a reply.

The post object

A post of your Sublaunch's Community, as its creator sees it.

Attributes

  • idstring
    Unique identifier for the post.
  • objectstring
    Always post.
  • titlestring
    The post's title.
  • textstring
    The post's text. Plain text, a blank line between paragraphs.
  • category_idstring or null
    Its category.
  • accessstring
    Who reads it. public is anyone, signed out too. A paid post is bought on its own, at price.
    memberspublicpaid
  • pricenumber or null
    Its price in the Sublaunch's currency, for a paid post.
  • pinnedboolean
    Whether it is pinned at the top of the feed.
  • comments_offboolean
    Whether comments are turned off.
  • author_idstring or null
    The member who wrote it, null for the Sublaunch's creator.
  • by_creatorboolean
    Whether the Sublaunch's creator wrote it.
  • mediaarray of objects
    Its images and videos.
  • attachmentsarray of objects
    Its files.
  • pollobject or null
    Its poll.
  • likesinteger
    How many likes it has.
  • comments_countinteger
    How many comments it has, replies included.
  • statusstring
    Its status, published once it is up.
  • urlstring
    The post in the Sublaunch's Community.
  • published_atstring
    When it was published, ISO 8601.
  • updated_atstring or null
    When it last changed, ISO 8601.
Post object
{
  "id": "Pt9xK3mQ2L",
  "object": "post",
  "title": "Weekly outlook",
  "text": "Three levels I watch this week on the S&P.\n\nCharts below, questions welcome.",
  "category_id": "x7Lp2QaZ",
  "access": "members",
  "price": null,
  "pinned": true,
  "comments_off": false,
  "author_id": null,
  "by_creator": true,
  "media": [
    {
      "kind": "image",
      "url": "https://example.com/weekly-chart.png"
    }
  ],
  "attachments": [],
  "poll": null,
  "likes": 48,
  "comments_count": 12,
  "status": "published",
  "url": "https://sublaunch.com/alphadesk/community/weekly-outlook",
  "published_at": "2026-11-15T17:02:40.000Z",
  "updated_at": "2026-11-16T08:11:05.000Z"
}

List posts

GET/v1/postsread scopeMCPlist_posts

Returns the Community's posts, pinned first then the newest, or in another order.

Query parameters

  • category_idstring
    Only this category's posts.
  • sortstring
    default puts pinned posts first, then the newest. new is the newest first, top the most liked first.
    defaultnewtop
  • limitinteger
    How many objects to return, from 1 to 100. 25 by default.
  • cursorstring
    The next_cursor of the previous page, to get the page after it. Keep the other parameters the same. See Pagination.

Returns

A list of post objects.

Errors

  • A parameter has a value the API does not accept. param names it.
  • The cursor is not one this list gave, was made for other filters, or goes deeper than its limit.
GET/v1/posts
curl -G https://api.sublaunch.com/v1/posts \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -d sort=new \
  -d limit=10
Response200
{
  "object": "list",
  "data": [
    {
      "id": "Pt9xK3mQ2L",
      "object": "post",
      "title": "Weekly outlook",
      "text": "Three levels I watch this week on the S&P.\n\nCharts below, questions welcome.",
      "category_id": "x7Lp2QaZ",
      "access": "members",
      "price": null,
      "pinned": true,
      "comments_off": false,
      "author_id": null,
      "by_creator": true,
      "media": [
        {
          "kind": "image",
          "url": "https://example.com/weekly-chart.png"
        }
      ],
      "attachments": [],
      "poll": null,
      "likes": 48,
      "comments_count": 12,
      "status": "published",
      "url": "https://sublaunch.com/alphadesk/community/weekly-outlook",
      "published_at": "2026-11-15T17:02:40.000Z",
      "updated_at": "2026-11-16T08:11:05.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ0IjoiMjAyNi0xMS0xNVQxNzowMjo0MC4wMDBaIn0"
}

Retrieve a post

GET/v1/posts/:post_idread scopeMCPget_post

Returns one post with its text, media, poll and counts.

Path parameters

  • post_idstringRequired
    The post's ID, as List posts returns it.

Returns

A post object.

Errors

GET/v1/posts/:post_id
curl https://api.sublaunch.com/v1/posts/Pt9xK3mQ2L \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "id": "Pt9xK3mQ2L",
  "object": "post",
  "title": "Weekly outlook",
  "text": "Three levels I watch this week on the S&P.\n\nCharts below, questions welcome.",
  "category_id": "x7Lp2QaZ",
  "access": "members",
  "price": null,
  "pinned": true,
  "comments_off": false,
  "author_id": null,
  "by_creator": true,
  "media": [
    {
      "kind": "image",
      "url": "https://example.com/weekly-chart.png"
    }
  ],
  "attachments": [],
  "poll": null,
  "likes": 48,
  "comments_count": 12,
  "status": "published",
  "url": "https://sublaunch.com/alphadesk/community/weekly-outlook",
  "published_at": "2026-11-15T17:02:40.000Z",
  "updated_at": "2026-11-16T08:11:05.000Z"
}

Create a post

POST/v1/postswrite scopeMCPcreate_post

Publishes a post in the Community as the Sublaunch's creator, at once. Members see it and get a notification.

Body parameters

  • titlestringRequired
    The post's title, from 1 to 150 characters.
  • textstring
    The post's text, 20 000 characters at most. Plain text, a blank line between paragraphs.
  • category_idstring
    A category's ID, from List categories. Empty for none.
  • accessstring
    Who reads it. members by default, public for anyone even signed out, paid for a post bought on its own at price.
    memberspublicpaid
  • pricenumber
    With access set to paid, its price in the Sublaunch's currency, 1 or more.
  • mediaarray of objects
    Images and videos, 4 at most.
  • attachmentsarray of objects
    Files, 10 at most.
  • pollobject or null
    A poll under the post, from 2 to 10 options. null removes it, before anyone votes.

Returns

The new post object.

Errors

POST/v1/posts
curl -X POST https://api.sublaunch.com/v1/posts \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Live session tonight",
    "text": "We go live at 8pm New York time.\n\nWhich market first?",
    "category_id": "x7Lp2QaZ",
    "poll": {
      "options": ["Indices", "Crypto"]
    }
  }'
Response201
{
  "id": "Pq4mX8kR2T",
  "object": "post",
  "title": "Live session tonight",
  "text": "We go live at 8pm New York time.\n\nWhich market first?",
  "category_id": "x7Lp2QaZ",
  "access": "members",
  "price": null,
  "pinned": false,
  "comments_off": false,
  "author_id": null,
  "by_creator": true,
  "media": [],
  "attachments": [],
  "poll": {
    "options": [
      {
        "id": "o1",
        "text": "Indices",
        "votes": 0
      },
      {
        "id": "o2",
        "text": "Crypto",
        "votes": 0
      }
    ],
    "votes_count": 0
  },
  "likes": 0,
  "comments_count": 0,
  "status": "published",
  "url": "https://sublaunch.com/alphadesk/community/live-session-tonight",
  "published_at": "2026-11-17T09:30:00.000Z",
  "updated_at": null
}

Update a post

PATCH/v1/posts/:post_idwrite scopeMCPupdate_post

Changes a post. Its title, text, media, attachments, poll, access and price change only while nobody liked, voted or commented. Its category and comments always can.

Path parameters

  • post_idstringRequired
    The post's ID, as List posts returns it.

Body parameters

  • titlestring
    The post's title, from 1 to 150 characters.
  • textstring
    The post's text, 20 000 characters at most. Plain text, a blank line between paragraphs.
  • category_idstring
    A category's ID, from List categories. Empty for none.
  • accessstring
    Who reads it. members by default, public for anyone even signed out, paid for a post bought on its own at price.
    memberspublicpaid
  • pricenumber
    With access set to paid, its price in the Sublaunch's currency, 1 or more.
  • mediaarray of objects
    Images and videos, 4 at most.
  • attachmentsarray of objects
    Files, 10 at most.
  • pollobject or null
    A poll under the post, from 2 to 10 options. null removes it, before anyone votes.
  • comments_offboolean
    true turns comments off, false turns them back on.

Returns

The updated post object.

Errors

PATCH/v1/posts/:post_id
curl -X PATCH https://api.sublaunch.com/v1/posts/Pt9xK3mQ2L \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "comments_off": true
  }'
Response200
{
  "id": "Pt9xK3mQ2L",
  "object": "post",
  "title": "Weekly outlook",
  "text": "Three levels I watch this week on the S&P.\n\nCharts below, questions welcome.",
  "category_id": "x7Lp2QaZ",
  "access": "members",
  "price": null,
  "pinned": true,
  "comments_off": true,
  "author_id": null,
  "by_creator": true,
  "media": [
    {
      "kind": "image",
      "url": "https://example.com/weekly-chart.png"
    }
  ],
  "attachments": [],
  "poll": null,
  "likes": 48,
  "comments_count": 12,
  "status": "published",
  "url": "https://sublaunch.com/alphadesk/community/weekly-outlook",
  "published_at": "2026-11-15T17:02:40.000Z",
  "updated_at": "2026-11-17T09:30:00.000Z"
}

Delete a post

DELETE/v1/posts/:post_idwrite scopeMCPdelete_post

Deletes a post with its comments. It cannot be undone.

Path parameters

  • post_idstringRequired
    The post's ID, as List posts returns it.

Returns

An object with the post's id and deleted set to true.

Errors

DELETE/v1/posts/:post_id
curl -X DELETE https://api.sublaunch.com/v1/posts/Pq4mX8kR2T \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "id": "Pq4mX8kR2T",
  "object": "post",
  "deleted": true
}

Pin a post

POST/v1/posts/:post_id/pinwrite scopeMCPpin_post

Pins a post at the top of the feed, or unpins it.

Path parameters

  • post_idstringRequired
    The post's ID, as List posts returns it.

Body parameters

  • pinnedboolean
    true pins it, false unpins it. true by default.

Returns

The post object.

Errors

POST/v1/posts/:post_id/pin
curl -X POST \
  https://api.sublaunch.com/v1/posts/Pt9xK3mQ2L/pin \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "pinned": true
  }'
Response200
{
  "id": "Pt9xK3mQ2L",
  "object": "post",
  "title": "Weekly outlook",
  "text": "Three levels I watch this week on the S&P.\n\nCharts below, questions welcome.",
  "category_id": "x7Lp2QaZ",
  "access": "members",
  "price": null,
  "pinned": true,
  "comments_off": false,
  "author_id": null,
  "by_creator": true,
  "media": [
    {
      "kind": "image",
      "url": "https://example.com/weekly-chart.png"
    }
  ],
  "attachments": [],
  "poll": null,
  "likes": 48,
  "comments_count": 12,
  "status": "published",
  "url": "https://sublaunch.com/alphadesk/community/weekly-outlook",
  "published_at": "2026-11-15T17:02:40.000Z",
  "updated_at": "2026-11-16T08:11:05.000Z"
}

The comment object

A comment on a post, or a reply to a comment.

Attributes

  • idstring
    Unique identifier for the comment.
  • objectstring
    Always comment.
  • post_idstring
    The post it is on.
  • parent_idstring or null
    The comment it replies to, null for a comment on the post.
  • textstring
    The comment.
  • author_idstring or null
    The user who wrote it.
  • likesinteger
    How many likes it has.
  • statusstring
    Its status, published once it is up.
  • created_atstring
    When it was written, ISO 8601.
Comment object
{
  "id": "Cm2kX8pQ7R",
  "object": "comment",
  "post_id": "Pt9xK3mQ2L",
  "parent_id": null,
  "text": "Thanks, the 4 hour chart helps a lot.",
  "author_id": "Us4kP9xQ2M",
  "likes": 3,
  "status": "published",
  "created_at": "2026-11-15T18:20:13.000Z"
}

List comments

GET/v1/posts/:post_id/commentsread scopeMCPlist_comments

Returns a post's comments and replies, oldest first. A reply has the parent_id of its comment.

Path parameters

  • post_idstringRequired
    The post's ID, as List posts returns it.

Query parameters

  • limitinteger
    How many objects to return, from 1 to 100. 25 by default.
  • cursorstring
    The next_cursor of the previous page, to get the page after it. Keep the other parameters the same. See Pagination.

Returns

A list of comment objects.

Errors

  • No post with this ID in the key's Sublaunch.
  • A parameter has a value the API does not accept. param names it.
  • The cursor is not one this list gave, was made for other filters, or goes deeper than its limit.
GET/v1/posts/:post_id/comments
curl https://api.sublaunch.com/v1/posts/Pt9xK3mQ2L/comments \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "object": "list",
  "data": [
    {
      "id": "Cm2kX8pQ7R",
      "object": "comment",
      "post_id": "Pt9xK3mQ2L",
      "parent_id": null,
      "text": "Thanks, the 4 hour chart helps a lot.",
      "author_id": "Us4kP9xQ2M",
      "likes": 3,
      "status": "published",
      "created_at": "2026-11-15T18:20:13.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ0IjoiMjAyNi0xMS0xNVQxNzowMjo0MC4wMDBaIn0"
}

Create a comment

POST/v1/posts/:post_id/commentswrite scopeMCPcreate_comment

Comments a post as the Sublaunch's creator, or replies to a comment with parent_id. It is posted at once, and its post's or comment's author notified.

Path parameters

  • post_idstringRequired
    The post's ID, as List posts returns it.

Body parameters

  • textstringRequired
    The comment, from 1 to 2 000 characters.
  • parent_idstring
    The comment it replies to, from List comments.

Returns

The new comment object.

Errors

POST/v1/posts/:post_id/comments
curl -X POST \
  https://api.sublaunch.com/v1/posts/Pt9xK3mQ2L/comments \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Glad it helps. Same levels on Thursday.",
    "parent_id": "Cm2kX8pQ7R"
  }'
Response201
{
  "id": "Cr7mQ2xK9P",
  "object": "comment",
  "post_id": "Pt9xK3mQ2L",
  "parent_id": "Cm2kX8pQ7R",
  "text": "Glad it helps. Same levels on Thursday.",
  "author_id": null,
  "likes": 0,
  "status": "published",
  "created_at": "2026-11-17T09:30:00.000Z"
}

Delete a comment

DELETE/v1/comments/:comment_idwrite scopeMCPdelete_comment

Deletes a comment with every reply under it. It cannot be undone.

Path parameters

  • comment_idstringRequired
    The comment's ID, as List comments returns it.

Returns

An object with the comment's id and deleted set to true.

Errors

DELETE/v1/comments/:comment_id
curl -X DELETE \
  https://api.sublaunch.com/v1/comments/Cm2kX8pQ7R \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Response200
{
  "id": "Cm2kX8pQ7R",
  "object": "comment",
  "deleted": true
}