The YouTube API endpoints let you upload videos to a connected YouTube channel and optionally set a custom thumbnail after publishing. Use the publish endpoint to send a video live with a title, description, and privacy status, then call the thumbnail endpoint with the returned video ID to attach a custom thumbnail image. Both endpoints authenticate via your Dohoo API key.Documentation Index
Fetch the complete documentation index at: https://docs.dohoo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Dohoo uses YouTube API Services. By connecting your YouTube channel, you agree to the YouTube Terms of Service.
Publish a video
Upload a video to your connected YouTube channel.Endpoint
Request headers
| Header | Required | Description |
|---|---|---|
X-API-Key | ✅ | Your Dohoo API key |
Content-Type | ✅ | Must be application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
connectionId | string | ✅ | The ID of the YouTube connection to publish from |
fileId | string | ✅ | The ID of the uploaded video file |
title | string | ✅ | Title of the YouTube video. Maximum 100 characters |
description | string | ❌ | Description for the video. Maximum 5,000 characters |
privacyStatus | string | ❌ | Visibility: "public", "unlisted", or "private". Defaults to "public" |
Example request
Example response
Set a custom thumbnail
Attach a custom thumbnail image to a previously published YouTube video.Endpoint
:videoId in the URL with the videoId returned from the publish endpoint above.
Request headers
| Header | Required | Description |
|---|---|---|
X-API-Key | ✅ | Your Dohoo API key |
Content-Type | ✅ | Must be application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
thumbnailFileId | string | ✅ | The ID of the uploaded thumbnail image file |
Example request
Example response
YouTube recommends thumbnail images at 1280×720 pixels (16:9 aspect ratio), under 2 MB, in JPG, GIF, or PNG format.