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
- idstringUnique identifier for the post.
- objectstringAlways
post. - titlestringThe post's title.
- textstringThe post's text. Plain text, a blank line between paragraphs.
- category_idstring or nullIts category.
- accessstringWho reads it.
publicis anyone, signed out too. Apaidpost is bought on its own, atprice.memberspublicpaid - pricenumber or nullIts price in the Sublaunch's currency, for a
paidpost. - pinnedbooleanWhether it is pinned at the top of the feed.
- comments_offbooleanWhether comments are turned off.
- author_idstring or nullThe member who wrote it,
nullfor the Sublaunch's creator. - by_creatorbooleanWhether the Sublaunch's creator wrote it.
- mediaarray of objectsIts images and videos.
- attachmentsarray of objectsIts files.
- pollobject or nullIts poll.
- likesintegerHow many likes it has.
- comments_countintegerHow many comments it has, replies included.
- statusstringIts status,
publishedonce it is up. - urlstringThe post in the Sublaunch's Community.
- published_atstringWhen it was published, ISO 8601.
- updated_atstring or nullWhen it last changed, ISO 8601.
{
"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
Returns the Community's posts, pinned first then the newest, or in another order.
Query parameters
- category_idstringOnly this category's posts.
- sortstring
defaultputs pinned posts first, then the newest.newis the newest first,topthe most liked first.defaultnewtop - limitintegerHow many objects to return, from 1 to 100. 25 by default.
- cursorstringThe
next_cursorof 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.
paramnames it. - The
cursoris not one this list gave, was made for other filters, or goes deeper than its limit.
curl -G https://api.sublaunch.com/v1/posts \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
-d sort=new \
-d limit=10{
"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
Returns one post with its text, media, poll and counts.
Path parameters
- post_idstringRequiredThe post's ID, as List posts returns it.
Returns
A post object.
Errors
- No post with this ID in the key's Sublaunch.
curl https://api.sublaunch.com/v1/posts/Pt9xK3mQ2L \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"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
Publishes a post in the Community as the Sublaunch's creator, at once. Members see it and get a notification.
Body parameters
- titlestringRequiredThe post's title, from 1 to 150 characters.
- textstringThe post's text, 20 000 characters at most. Plain text, a blank line between paragraphs.
- category_idstringA category's ID, from List categories. Empty for none.
- accessstringWho reads it.
membersby default,publicfor anyone even signed out,paidfor a post bought on its own atprice.memberspublicpaid - pricenumberWith
accessset topaid, its price in the Sublaunch's currency, 1 or more. - mediaarray of objectsImages and videos, 4 at most.
- attachmentsarray of objectsFiles, 10 at most.
- pollobject or nullA poll under the post, from 2 to 10 options.
nullremoves it, before anyone votes.
Returns
The new post object.
Errors
- A required parameter is missing.
paramnames it. - A parameter has a value the API does not accept.
paramnames it. - The body has a field this endpoint does not take.
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"]
}
}'{
"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
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_idstringRequiredThe post's ID, as List posts returns it.
Body parameters
- titlestringThe post's title, from 1 to 150 characters.
- textstringThe post's text, 20 000 characters at most. Plain text, a blank line between paragraphs.
- category_idstringA category's ID, from List categories. Empty for none.
- accessstringWho reads it.
membersby default,publicfor anyone even signed out,paidfor a post bought on its own atprice.memberspublicpaid - pricenumberWith
accessset topaid, its price in the Sublaunch's currency, 1 or more. - mediaarray of objectsImages and videos, 4 at most.
- attachmentsarray of objectsFiles, 10 at most.
- pollobject or nullA poll under the post, from 2 to 10 options.
nullremoves it, before anyone votes. - comments_offboolean
trueturns comments off,falseturns them back on.
Returns
The updated post object.
Errors
- No post with this ID in the key's Sublaunch.
- A parameter has a value the API does not accept.
paramnames it. - The body has a field this endpoint does not take.
- 409post_lockedSomeone liked, voted or commented, so its words can't change anymore.
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
}'{
"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
Deletes a post with its comments. It cannot be undone.
Path parameters
- post_idstringRequiredThe post's ID, as List posts returns it.
Returns
An object with the post's id and deleted set to true.
Errors
- No post with this ID in the key's Sublaunch.
curl -X DELETE https://api.sublaunch.com/v1/posts/Pq4mX8kR2T \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"id": "Pq4mX8kR2T",
"object": "post",
"deleted": true
}Pin a post
Pins a post at the top of the feed, or unpins it.
Path parameters
- post_idstringRequiredThe post's ID, as List posts returns it.
Body parameters
- pinnedboolean
truepins it,falseunpins it.trueby default.
Returns
The post object.
Errors
- No post with this ID in the key's Sublaunch.
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
}'{
"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
- idstringUnique identifier for the comment.
- objectstringAlways
comment. - post_idstringThe post it is on.
- parent_idstring or nullThe comment it replies to,
nullfor a comment on the post. - textstringThe comment.
- author_idstring or nullThe user who wrote it.
- likesintegerHow many likes it has.
- statusstringIts status,
publishedonce it is up. - created_atstringWhen it was written, ISO 8601.
{
"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
Returns a post's comments and replies, oldest first. A reply has the parent_id of its comment.
Path parameters
- post_idstringRequiredThe post's ID, as List posts returns it.
Query parameters
- limitintegerHow many objects to return, from 1 to 100. 25 by default.
- cursorstringThe
next_cursorof 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.
paramnames it. - The
cursoris not one this list gave, was made for other filters, or goes deeper than its limit.
curl https://api.sublaunch.com/v1/posts/Pt9xK3mQ2L/comments \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"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
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_idstringRequiredThe post's ID, as List posts returns it.
Body parameters
- textstringRequiredThe comment, from 1 to 2 000 characters.
- parent_idstringThe comment it replies to, from List comments.
Returns
The new comment object.
Errors
- No post with this ID in the key's Sublaunch.
- A required parameter is missing.
paramnames it. - A parameter has a value the API does not accept.
paramnames it. - 409comments_offComments are turned off for this post.
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"
}'{
"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
Deletes a comment with every reply under it. It cannot be undone.
Path parameters
- comment_idstringRequiredThe comment's ID, as List comments returns it.
Returns
An object with the comment's id and deleted set to true.
Errors
- No comment with this ID in the key's Sublaunch.
curl -X DELETE \
https://api.sublaunch.com/v1/comments/Cm2kX8pQ7R \
-H "Authorization: Bearer $SUBLAUNCH_API_KEY"{
"id": "Cm2kX8pQ7R",
"object": "comment",
"deleted": true
}