Schedule posts
A scheduled post is published automatically at the date you choose. Until then it is not visible in the community: it is an entry you can list, edit or cancel. Scheduled posts created through the API also show among the scheduled posts of your Dashboard, and a change made on either side applies to the same entry. These endpoints need the SCHEDULING permission.
Schedule a post
POST /v1/scheduled-posts queues a post.
Parameters
userId(required): the author, a linked member. A member who is not linked answers404.topicId(required): the topic to publish in.text(required): the post's text.publishAt(required): when to publish, as an ISO-8601 instant with seconds, in the future, such as2026-12-01T09:30:00Z(see Dates).cta(optional): a call-to-action button,{"text": "...", "targetLink": "https://..."}.poll(optional): 2 to 7 answers of at most 100 characters each.imageBase64(optional): one image, at most 10 MB once decoded.imageIds(optional): up to 10 photos uploaded withPOST /v1/media/images.videoId(optional): a video uploaded withPOST /v1/media/videos.blockCommentsRepliesanddiscussionReplyPushEnabled(optional): as on a post.
videoId excludes poll, imageBase64 and imageIds, and imageBase64 excludes imageIds. A poll can go with an image or photos.
curl https://connect.octopuscommunity.com/v1/scheduled-posts \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"userId": "<USER_ID>",
"topicId": "<TOPIC_ID>",
"text": "Our Christmas menu is live!",
"publishAt": "2026-12-01T09:30:00+01:00"
}'
{
"scheduledPostId": "<SCHEDULED_POST_ID>",
"status": "PENDING",
"topicId": "<TOPIC_ID>",
"text": "Our Christmas menu is live!",
"cta": null,
"blockCommentsReplies": false,
"discussionReplyPushEnabled": true,
"poll": null,
"videoId": null,
"hasImage": false,
"publishAt": "2026-12-01T08:30:00Z",
"postId": null,
"createdAt": "2026-11-18T10:02:11Z",
"updatedAt": "2026-11-18T10:02:11Z"
}
hasImage is true when an image or photos are attached. They are not returned while the post is scheduled: once its status is PUBLISHED, read the photos as content.imageUrls on the published post, with GET /v1/messages/post?postId=.
Images, photos and polls are validated when you schedule, so a faulty one answers 400 now rather than failing at publication. Photos are copied when you schedule: the post no longer depends on the upload. A video must be uploaded before the publication date, otherwise the scheduled post ends in ERROR.
A scheduled image is limited to 10 MB (limits.scheduledPostImageMaxBytes), while a post published right away accepts 50 MB (limits.imageMaxBytes). This is intended: publish an image between the two limits directly instead of scheduling it.
Scheduling is not idempotent: retrying a call that timed out or answered 502 can queue the post twice, because the post may have been queued before the error. List the member's pending posts before retrying.
Status of a scheduled post
status | Meaning |
|---|---|
PENDING | Waiting for publishAt. It can be edited or cancelled. |
PUBLISHED | Live in the community. postId is the id of the published post: read it with GET /v1/messages/post?postId=. |
ERROR | Publishing failed. |
CANCELLED | You cancelled it. |
scheduledPostId identifies the scheduled entry only. Once published, use postId for everything else (comments, reactions, moderation).
List and get scheduled posts
GET /v1/scheduled-posts lists the scheduled posts of your community, one page at a time (see Pagination): 20 per page by default, at most 100. Filter them with userId and status:
curl "https://connect.octopuscommunity.com/v1/scheduled-posts?userId=<USER_ID>&status=PENDING" \
--header "Authorization: Bearer $CONNECT_API_KEY"
{
"items": [{"scheduledPostId": "<SCHEDULED_POST_ID>", "status": "PENDING", "publishAt": "2026-12-01T08:30:00Z"}],
"nextPageCursor": null
}
Each item has the same fields as the response of POST /v1/scheduled-posts (trimmed above). GET /v1/scheduled-posts/{id} returns one scheduled post, with its current status.
Edit a scheduled post
PATCH /v1/scheduled-posts/{id} changes a scheduled post while it is PENDING; otherwise it answers 409 Conflict.
Parameters
text,topicId,publishAt(optional): the new values. Leave a field out to keep it.cta(optional): a new button.clearCta(optional):trueremoves the button. It cannot be combined withcta.
curl --request PATCH "https://connect.octopuscommunity.com/v1/scheduled-posts/<SCHEDULED_POST_ID>" \
--header "Authorization: Bearer $CONNECT_API_KEY" \
--header "Content-Type: application/json" \
--data '{"publishAt": "2026-12-02T09:30:00+01:00", "clearCta": true}'
Media cannot be changed: the poll, images, photos and video are fixed when the post is scheduled. To change them, cancel the scheduled post and create a new one.
Cancel a scheduled post
DELETE /v1/scheduled-posts/{id} cancels a PENDING scheduled post and answers 204 No Content. Its status becomes CANCELLED. A post that already published, failed or was cancelled answers 409 Conflict.
curl --request DELETE "https://connect.octopuscommunity.com/v1/scheduled-posts/<SCHEDULED_POST_ID>" \
--header "Authorization: Bearer $CONNECT_API_KEY"
To remove a post that already published, delete or moderate it with its postId.