curl --request POST \
--url https://api.example.com/generate \
--header 'Content-Type: application/json' \
--data '
{
"topic": "<string>",
"style": "<string>",
"length": "<string>"
}
'{
"success": true,
"result": {
"result.contentId": "<string>",
"result.title": "<string>",
"result.scheduledFor": "<string>"
},
"error": "<string>"
}Manually trigger content generation for YouTube videos
curl --request POST \
--url https://api.example.com/generate \
--header 'Content-Type: application/json' \
--data '
{
"topic": "<string>",
"style": "<string>",
"length": "<string>"
}
'{
"success": true,
"result": {
"result.contentId": "<string>",
"result.title": "<string>",
"result.scheduledFor": "<string>"
},
"error": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/darkzOGx/youtube-automation-agent/llms.txt
Use this file to discover all available pages before exploring further.
POST /generate
"tutorial", "vlog", "review", "educational""short" - Short-form content (< 60 seconds)"medium" - Standard content (5-15 minutes)"long" - Long-form content (15+ minutes)/publish/:contentId endpoint.success is false.curl -X POST http://localhost:3456/generate \
-H "Content-Type: application/json" \
-d '{}'
{
"success": true,
"result": {
"contentId": "content_1234567890abcdef",
"title": "Master React Hooks in 10 Minutes - Complete Guide for Beginners",
"scheduledFor": "2026-03-06T14:00:00.000Z"
}
}
{
"success": false,
"error": "Failed to generate script: API quota exceeded"
}
| Status Code | Description |
|---|---|
| 200 | Content generation successful |
| 500 | Server error during content generation |
/generate endpoint executes the following steps:
curl -X POST http://localhost:3456/generate \
-H "Content-Type: application/json" \
-d '{"topic": "Breaking News: Latest Tech Updates"}'
const topics = [
'Introduction to Machine Learning',
'Web Development Best Practices',
'Cloud Computing Basics'
];
for (const topic of topics) {
const response = await fetch('http://localhost:3456/generate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ topic, length: 'medium' })
});
const result = await response.json();
console.log(`Generated: ${result.result.title}`);
}
| Error Message | Cause | Solution |
|---|---|---|
| API quota exceeded | External API limits reached | Wait for quota reset or upgrade API plan |
| Invalid credentials | YouTube API credentials missing | Run npm run credentials:setup |
| Database error | Database connection failed | Check database configuration |
| Agent not initialized | System still starting up | Wait for initialization to complete |