Skip to content

content_publications_publish

Publish NOW: the same queue, scheduled for this instant.

Tool

content_publications_publish

Publish NOW: the same queue, scheduled for this instant.

Publish NOW: the same queue, scheduled for this instant. There is no separate synchronous path — a fast path would differ exactly where it matters, on failure.

Behavior

HTTP
POST /content/publications/publish

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.
channelIdstringThe channel to publish to.
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

Publish NOW: the same queue, scheduled for this instant.

When to use

Publish NOW: the same queue, scheduled for this instant. There is no separate synchronous path — a fast path would differ exactly where it matters, on failure.

Example

Ask your agent something like this:

Publish NOW: the same queue, scheduled for this instant.

The agent will invoke content_publications_publish with these arguments:

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

Esc

Start typing to search the docs.

navigateselect