YouTube Channels
Manage YouTube channel content sources
Returns the saved YouTube channels for the authenticated token including recently cached videos.
Array of YouTube channels
Unauthorized or missing token
Unexpected error retrieving channels
GET /youtube-channels HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"channels": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"channelId": "text",
"title": "text",
"description": "text",
"thumbnailUrl": "https://example.com",
"channelUrl": "https://example.com",
"lastSyncedOn": "2025-11-08T21:35:02.753Z",
"createdOn": "2025-11-08T21:35:02.753Z",
"updatedOn": "2025-11-08T21:35:02.753Z",
"videos": [
{
"videoId": "dQw4w9WgXcQ",
"title": "Product Update Week 27",
"videoUrl": "https://example.com",
"thumbnailUrl": "https://example.com",
"videoType": "video",
"publishedAt": "2025-11-08T21:35:02.753Z"
}
]
}
]
}Adds a new YouTube channel (by URL, ID, or @handle) and caches the latest public uploads. Handle resolution requires the YOUTUBE_API_KEY environment variable.
YouTube channel URL, channel ID, or @handle
https://www.youtube.com/@AutoContentAPIChannel created and synced successfully
Validation failure (duplicate channel, plan limit, unsupported identifier)
Unauthorized or missing token
Failed to create the channel
POST /youtube-channels HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"url": "https://www.youtube.com/@AutoContentAPI"
}{
"success": true,
"channel": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"channelId": "text",
"title": "text",
"description": "text",
"thumbnailUrl": "https://example.com",
"channelUrl": "https://example.com",
"lastSyncedOn": "2025-11-08T21:35:02.753Z",
"createdOn": "2025-11-08T21:35:02.753Z",
"updatedOn": "2025-11-08T21:35:02.753Z",
"videos": [
{
"videoId": "dQw4w9WgXcQ",
"title": "Product Update Week 27",
"videoUrl": "https://example.com",
"thumbnailUrl": "https://example.com",
"videoType": "video",
"publishedAt": "2025-11-08T21:35:02.753Z"
}
]
}
}Internal channel source identifier
Channel information
Unauthorized
Channel not found for this token
Unexpected error retrieving the channel
GET /youtube-channels/{channelId} HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"channel": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"channelId": "text",
"title": "text",
"description": "text",
"thumbnailUrl": "https://example.com",
"channelUrl": "https://example.com",
"lastSyncedOn": "2025-11-08T21:35:02.753Z",
"createdOn": "2025-11-08T21:35:02.753Z",
"updatedOn": "2025-11-08T21:35:02.753Z",
"videos": [
{
"videoId": "dQw4w9WgXcQ",
"title": "Product Update Week 27",
"videoUrl": "https://example.com",
"thumbnailUrl": "https://example.com",
"videoType": "video",
"publishedAt": "2025-11-08T21:35:02.753Z"
}
]
}
}Marks the specified YouTube channel as inactive so it will no longer supply new content.
Channel removed successfully
Unauthorized
Channel not found or already removed
Failed to delete the channel
DELETE /youtube-channels/{channelId} HTTP/1.1
Host: api.autocontentapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"message": "Channel removed successfully"
}Last updated