Skip to content

content_publications_schedule

Queue an approved post for publication to one channel at a given time.

Tool

content_publications_schedule

Queue an approved post for publication to one channel at a given time.

Queue an approved post for publication to one channel at a given time. On a reminder channel this does not call the network: at the scheduled time a person is notified to publish by hand, and confirms afterwards with content_publications_confirm.

Behavior

HTTP
POST /content/publications

Arguments

NameTypeRequiredDescription
textstringPer-channel variant of the text, in markdown. Omit to use the post text. It is rendered to plain network text before it is stored — call content_publications_validate first if you want to see the result.
postIdstringThe post to publish. It must already be approved — an unapproved text never publishes.
channelIdstringThe channel to publish to. Get its character limit from content_channels_get first.
scheduledAtstringISO-8601 time to publish. In the past means "as soon as the next tick runs".
idempotencyKeystringYour own key for this publishing intent, unique within the product. Resending the same key returns the SAME publication instead of creating a second one — a duplicate in a client feed is the worst defect this product can ship. Omit it and one is derived from post, channel and time.

Response

FieldTypeAlwaysDescription
idstringPublication id.
textstringThe exact text that will be published to this channel — markdown already flattened to plain network text at schedule time. Not the markdown source; that stays on the post.
statestringpending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
postIdstringThe post being published.
costUsdnumberWhat publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
attemptsintegerHow many dispatch attempts have been made.
channelIdstringThe channel it is published to.
costBasisstringWhich rate produced costUsd: "plain", "link" or "free".
createdAtstringISO-8601 creation time.
lastErrorstringThe most recent failure, if any.
updatedAtstringISO-8601 time of the last change.
externalIdstringThe network's id for the published post, once known.
externalUrlstringURL of the published post, once known.
publishedAtstringISO-8601 time it was confirmed published.
scheduledAtstringISO-8601 time the publication is due.
reminderCountintegerHow many reminders have been sent for this publication.
idempotencyKeystringThe key that makes a retry the same publication.
reminderSentAtstringISO-8601 time the most recent reminder went out, or null if none has.

Try it

Queue an approved post for publication to one channel at a given time.

When to use

Queue an approved post for publication to one channel at a given time. On a reminder channel this does not call the network: at the scheduled time a person is notified to publish by hand, and confirms afterwards with content_publications_confirm.

Example

Ask your agent something like this:

Queue an approved post for publication to one channel at a given time.

The agent will invoke content_publications_schedule with these arguments:

{
  "postId": "<postId>",
  "channelId": "<channelId>",
  "scheduledAt": "<scheduledAt>"
}

Esc

Start typing to search the docs.

navigateselect