YouTube
Create a YouTube playlist
Creates a playlist on the YouTube channel. Send part=snippet,status so YouTube saves both the title and the privacy. YouTube errors are passed on unchanged.
Roles: all, clients included.
POST
/
socialNetworks
/
{social_network_id}
/
playlists
Create a YouTube playlist
curl --request POST \
--url https://api.followr.ai/api/socialNetworks/{social_network_id}/playlists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snippet": {
"title": "Holiday specials",
"description": "Seasonal drinks, one video at a time."
},
"status": {
"privacyStatus": "public"
}
}
'import requests
url = "https://api.followr.ai/api/socialNetworks/{social_network_id}/playlists"
payload = {
"snippet": {
"title": "Holiday specials",
"description": "Seasonal drinks, one video at a time."
},
"status": { "privacyStatus": "public" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
snippet: {
title: 'Holiday specials',
description: 'Seasonal drinks, one video at a time.'
},
status: {privacyStatus: 'public'}
})
};
fetch('https://api.followr.ai/api/socialNetworks/{social_network_id}/playlists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.followr.ai/api/socialNetworks/{social_network_id}/playlists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'snippet' => [
'title' => 'Holiday specials',
'description' => 'Seasonal drinks, one video at a time.'
],
'status' => [
'privacyStatus' => 'public'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"kind": "youtube#playlist",
"etag": "Vb3mK8pQ1xZ7rT2yW9nL4cF6hJ0",
"id": "PLq8Nf3xW2bT5kLmZp7RvA1gH0l1dAy5p",
"snippet": {
"publishedAt": "2026-12-15T09:30:00Z",
"channelId": "UCq8Nf3xW2bT5kLmZp7RvA1g",
"title": "Holiday specials",
"description": "Seasonal drinks, one video at a time.",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/img/no_thumbnail.jpg",
"width": 120,
"height": 90
}
},
"channelTitle": "Northside Coffee",
"localized": {
"title": "Holiday specials",
"description": "Seasonal drinks, one video at a time."
}
},
"status": {
"privacyStatus": "public"
}
}
}Authorizations
Path Parameters
Body
application/json
⌘I
Create a YouTube playlist
curl --request POST \
--url https://api.followr.ai/api/socialNetworks/{social_network_id}/playlists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snippet": {
"title": "Holiday specials",
"description": "Seasonal drinks, one video at a time."
},
"status": {
"privacyStatus": "public"
}
}
'import requests
url = "https://api.followr.ai/api/socialNetworks/{social_network_id}/playlists"
payload = {
"snippet": {
"title": "Holiday specials",
"description": "Seasonal drinks, one video at a time."
},
"status": { "privacyStatus": "public" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
snippet: {
title: 'Holiday specials',
description: 'Seasonal drinks, one video at a time.'
},
status: {privacyStatus: 'public'}
})
};
fetch('https://api.followr.ai/api/socialNetworks/{social_network_id}/playlists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.followr.ai/api/socialNetworks/{social_network_id}/playlists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'snippet' => [
'title' => 'Holiday specials',
'description' => 'Seasonal drinks, one video at a time.'
],
'status' => [
'privacyStatus' => 'public'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"kind": "youtube#playlist",
"etag": "Vb3mK8pQ1xZ7rT2yW9nL4cF6hJ0",
"id": "PLq8Nf3xW2bT5kLmZp7RvA1gH0l1dAy5p",
"snippet": {
"publishedAt": "2026-12-15T09:30:00Z",
"channelId": "UCq8Nf3xW2bT5kLmZp7RvA1g",
"title": "Holiday specials",
"description": "Seasonal drinks, one video at a time.",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/img/no_thumbnail.jpg",
"width": 120,
"height": 90
}
},
"channelTitle": "Northside Coffee",
"localized": {
"title": "Holiday specials",
"description": "Seasonal drinks, one video at a time."
}
},
"status": {
"privacyStatus": "public"
}
}
}