Skip to main content
POST
Publish Content

Endpoint

Description

Manually publishes previously generated content to YouTube, bypassing the automated schedule. This is useful for immediate publishing or when you want to control the exact timing of content release.

Path Parameters

string
required
The unique identifier of the content to publish. This ID is returned from the /generate endpoint or can be retrieved from the /schedule endpoint.

Request Body

No request body required. All content details (title, description, tags, thumbnail) are retrieved from the database using the contentId.

Headers

Response

boolean
required
Indicates whether publishing succeeded.
object
Publishing result details.
string
YouTube video ID of the published content.
string
Full YouTube URL of the published video.
string
Publishing status: "published", "uploading", "processing".
string
ISO 8601 timestamp when the video was published.
string
Error message if success is false.

Example Requests

Example Response

Success

Error - Content Not Found

Error - Already Published

Error - API Failure

Response Codes

Publishing Process

When you call this endpoint, the Publishing & Scheduling Agent:
  1. Retrieves Content - Fetches content data from the database
  2. Prepares Upload - Packages video file, thumbnail, and metadata
  3. Authenticates - Uses YouTube API credentials
  4. Uploads Video - Transfers video file to YouTube
  5. Sets Metadata - Applies title, description, tags, and thumbnail
  6. Publishes - Makes the video public (or scheduled visibility)
  7. Updates Database - Marks content as published with video ID
Video upload and processing can take several minutes depending on file size and YouTube’s processing queue. The endpoint returns once the upload is initiated, but the video may still be processing on YouTube’s end.

Use Cases

Immediate Publishing

Publish breaking news or time-sensitive content immediately:

Workflow Integration

Integrate with content approval workflows:

Batch Publishing

Publish multiple pieces of content at once:

Scheduled Publishing Override

Publish content earlier than scheduled:

Error Handling

Common errors and solutions:

Important Notes

Manually publishing content will bypass the automated scheduling system. The content will be removed from the schedule and marked as published in the database.
Make sure your YouTube channel is properly verified and has no strikes. Channels with restrictions may experience publishing failures.

Rate Limits

YouTube API has the following limits:
  • Daily upload quota: Varies by channel (typically 6-50 videos/day)
  • API quota: 10,000 units/day (publishing uses ~1,600 units)
  • Concurrent uploads: 1 at a time recommended
The agent automatically handles rate limiting and will queue uploads if necessary.