YouTube Settings
API settings for posting to YouTube
Settings Schema
When uploading a video to YouTube, use the following settings schema:
{
"settings": {
"__type": "youtube",
"title": "My Video Title",
"type": "public",
"selfDeclaredMadeForKids": "no",
"thumbnail": null,
"tags": [],
"made_with_ai": false
}
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
__type | string | Yes | Must be youtube |
title | string | Yes | Video title (2-100 characters) |
type | string | Yes | Video visibility |
selfDeclaredMadeForKids | string | No | Made for kids declaration |
thumbnail | object | No | Custom thumbnail |
tags | array | No | Video tags |
made_with_ai | boolean | No | Disclose realistic altered or AI-generated content. Defaults to false |
title
Video title with the following constraints:
- Minimum: 2 characters
- Maximum: 100 characters
type (visibility)
| Value | Description |
|---|---|
public | Anyone can search for and view |
unlisted | Anyone with the link can view |
private | Only you can view |
selfDeclaredMadeForKids
| Value | Description |
|---|---|
yes | Content is made for kids |
no | Content is not made for kids |
thumbnail
Custom thumbnail object (uploaded via the uploads endpoint):
{
"thumbnail": {
"id": "thumbnail-id",
"path": "https://uploads.postiz.com/thumbnail.jpg"
}
}
tags
Array of tag objects for video SEO:
{
"tags": [
{ "value": "tech", "label": "tech" },
{ "value": "tutorial", "label": "tutorial" }
]
}
made_with_ai
When set to true, the video is disclosed as having realistic altered or
AI-generated content and YouTube shows its altered or synthetic content label
on it.
YouTube asks for this disclosure only when the content looks realistic: a real person appearing to say or do something they did not, altered footage of a real event or place, or a realistic scene that did not happen. Animation and clearly unrealistic content do not need it.
Leaving it false does not stop YouTube from adding the label by itself when
it detects AI-generated content.
Complete Example
Public Video with Tags
{
"type": "schedule",
"date": "2024-12-14T10:00:00.000Z",
"shortLink": false,
"tags": [],
"posts": [
{
"integration": {
"id": "your-youtube-integration-id"
},
"value": [
{
"content": "In this video, I'll show you how to use the Infipost API to automate your social media workflow.\n\nTimestamps:\n0:00 Introduction\n1:30 Setup\n5:00 First API call\n10:00 Conclusion",
"image": [
{
"id": "video-id",
"path": "https://uploads.postiz.com/tutorial.mp4"
}
]
}
],
"settings": {
"__type": "youtube",
"title": "How to Use Infipost API - Complete Tutorial",
"type": "public",
"selfDeclaredMadeForKids": "no",
"tags": [
{ "value": "postiz", "label": "postiz" },
{ "value": "api", "label": "api" },
{ "value": "tutorial", "label": "tutorial" },
{ "value": "social media automation", "label": "social media automation" }
]
}
}
]
}
Video with Custom Thumbnail
{
"type": "schedule",
"date": "2024-12-14T10:00:00.000Z",
"shortLink": false,
"tags": [],
"posts": [
{
"integration": {
"id": "your-youtube-integration-id"
},
"value": [
{
"content": "Full video description here...",
"image": [
{
"id": "video-id",
"path": "https://uploads.postiz.com/video.mp4"
}
]
}
],
"settings": {
"__type": "youtube",
"title": "My Awesome Video",
"type": "public",
"selfDeclaredMadeForKids": "no",
"thumbnail": {
"id": "thumb-id",
"path": "https://uploads.postiz.com/thumbnail.jpg"
},
"tags": []
}
}
]
}
Private/Unlisted Video
{
"settings": {
"__type": "youtube",
"title": "Private Team Update",
"type": "unlisted",
"selfDeclaredMadeForKids": "no",
"tags": []
}
}