Publish Content
REST API
Publish Content
Manually publish content to YouTube
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 thecontentId.
Headers
Response
boolean
required
Indicates whether publishing succeeded.
object
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:- Retrieves Content - Fetches content data from the database
- Prepares Upload - Packages video file, thumbnail, and metadata
- Authenticates - Uses YouTube API credentials
- Uploads Video - Transfers video file to YouTube
- Sets Metadata - Applies title, description, tags, and thumbnail
- Publishes - Makes the video public (or scheduled visibility)
- 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
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