infipostdocs
Provider settings

YouTube Settings

API settings for posting to YouTube

Settings Schema

When uploading a video to YouTube, use the following settings schema:

json
{
  "settings": {
    "__type": "youtube",
    "title": "My Video Title",
    "type": "public",
    "selfDeclaredMadeForKids": "no",
    "thumbnail": null,
    "tags": [],
    "made_with_ai": false
  }
}

Fields

FieldTypeRequiredDescription
__typestringYesMust be youtube
titlestringYesVideo title (2-100 characters)
typestringYesVideo visibility
selfDeclaredMadeForKidsstringNoMade for kids declaration
thumbnailobjectNoCustom thumbnail
tagsarrayNoVideo tags
made_with_aibooleanNoDisclose realistic altered or AI-generated content. Defaults to false

title

Video title with the following constraints:

  • Minimum: 2 characters
  • Maximum: 100 characters

type (visibility)

ValueDescription
publicAnyone can search for and view
unlistedAnyone with the link can view
privateOnly you can view

selfDeclaredMadeForKids

ValueDescription
yesContent is made for kids
noContent is not made for kids

thumbnail

Custom thumbnail object (uploaded via the uploads endpoint):

json
{
  "thumbnail": {
    "id": "thumbnail-id",
    "path": "https://uploads.postiz.com/thumbnail.jpg"
  }
}

tags

Array of tag objects for video SEO:

json
{
  "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

json
{
  "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

json
{
  "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

json
{
  "settings": {
    "__type": "youtube",
    "title": "Private Team Update",
    "type": "unlisted",
    "selfDeclaredMadeForKids": "no",
    "tags": []
  }
}