Workflows

Publishing

Markdown

A guide has a draft and, once it is on sale, a live version buyers see. Edits always go to the draft. Buyers keep the live version until the changes are published.

What a publish key can put live

Each of these needs a key with the publish scope, and the same rule as publishing changes below: only when the creator asks.

Confirm with the creator before anything that takes something offline or cannot be undone. Deleting a guide, money and tax settings, the creator agreement, payouts and the account stay in the studio (API keys and scopes).

Requesting a store listing

When the creator asks for a Sceniq Earth Store listing, call request_store_listing with a write key and the guide's productId. It submits the same admin review request as Request a listing in the studio. Draft guides may request review, and rejected guides may request another review. A pending request keeps its original queue position when retried.

The response is the guide, including storeReviewStatus and visibleOnStore. Read get_guide for later progress. An approved guide is unchanged, even when hidden. The operation never approves, publishes, shows or hides a guide. Admin approval, a published guide and store visibility are still required before it appears in the store.

Publishing a live guide's changes

With a key that has the publish scope (Publish ticked when the creator made it, see scopes), an agent can publish the changes of a guide that is already on sale, under these rules:

  1. Only when the creator asks. Never on your own initiative, never as a side effect of finishing a task.
  2. Check first. get_publish_status: go ahead only when live is true, hasUnpublishedChanges is true, pendingSince is null and blocking is empty.
  3. Publish once. publish_changes queues the same build as the Publish button at the foot of a guide's pages in the studio, for the guide as it is at the call, and returns the queued state. Leave the guide alone until it is live: a write that lands while the publish reads the guide drops it, and later writes wait for the next publish.
  4. Poll. Call get_publish_status every few seconds until pendingSince is null, usually within seconds. When published.version went up, tell the creator which version is live. When it stayed the same, the publish was dropped (the guide changed under it, or a check failed): read blocking and hasUnpublishedChanges, tell the creator, and publish again only if they ask.

Refusals

CodeMeans
api_scope_requiredThe key has no publish scope; the creator makes a new key with Publish ticked.
not_liveThe guide is a draft or archived: publish_guide puts it on sale.
no_changesBuyers already see every change.
not_publishableA publish gate is open (publish_changes, publish_guide); details.blocking lists each one.

While a build runs, calling publish_changes again queues nothing (queued: false), so a retry never publishes the same content twice.