Publishing API: Drafts, Thumbnails and YouTube Delivery

Prepare a FoxCue publishing draft, generate title and thumbnail text, and queue a YouTube upload with publishing:read, publishing:write and publishing:publish.

The publishing API prepares one finished output and then queues an explicit YouTube upload. Writes run only when native publishing is enabled on that server. If it is not, the app shows that YouTube uploads are not available right now. Do not treat a successful read of capabilities as a promise that upload is on.

Cancelling a delivery clears a native schedule. It does not delete a video that is already on YouTube.

Scopes

ScopeAllows
publishing:readRead capabilities, draft context, thumbnail candidates and deliveries
publishing:writeCreate and edit a draft, generate metadata and thumbnails
publishing:publishSubmit a reviewed draft, cancel or retry a delivery

Metadata generation also requires publishing:read. Thumbnail generation requires publishing:read as well as publishing:write.

How a publish runs

  1. GET /publishing/capabilities for the brand. This does not upload anything.
  2. POST /publishing/drafts with a completed output from the same brand.
  3. Edit the draft with PATCH /publishing/drafts/{id} and its current revision. This never publishes.
  4. Optional: POST /publishing/drafts/{id}/metadata-generations for a title, description, tags and thumbnail headline, and POST /publishing/drafts/{id}/thumbnails for one thumbnail. Read the receipt instead of calling the model again.
  5. POST /publishing/drafts/{id}/submit approves that exact draft and queues the upload.
  6. Poll GET /publishing/deliveries/{id} for progress and the confirmed URL.

POST /publishing/deliveries/{id}/cancel stops a delivery. POST /publishing/deliveries/{id}/retry repairs or reapproves one while keeping the provider identity.

In the app, connect the channel from YouTube performance and Brand → Websites & Channels. Publishing appears when it is enabled for the workspace. Every path is in the operations reference.

On this page