YouTube publishing without rebuilding channel connection, resumable uploads, metadata checks, queues, and webhook status events.
No credit card required
import { KavenioClient } from "@kavenio/sdk";
const kavenio = new KavenioClient({
authToken: process.env.KAVENIO_API_KEY,
});
// Send your user to this URL to connect their YouTube channel.
const { authorizationUrl } = await kavenio.connect.begin({
platform: "youtube",
});
// Publish a video to the selected YouTube channel.
await kavenio.posts.create({
title: "Launch video",
content: "Product walkthrough and launch notes.",
publishNow: true,
mediaItems: [{ type: "video", url: "https://cdn.example.com/launch.mp4" }],
platforms: [
{
platform: "youtube",
accountId: "acct_youtube_123",
platformSpecificData: {
visibility: "unlisted",
madeForKids: false,
containsSyntheticMedia: false,
thumbnailUrl: "https://cdn.example.com/thumbnail.jpg",
playlistId: "PL123",
firstComment: "Links and resources: https://example.com/launch",
},
},
],
});kavenio.connect.begin(...)Create a YouTube connect URL and send the user through authorization for the channel they want to publish from.
kavenio.posts.create(...)Publish now or schedule a YouTube video with the selected channel, video file, metadata, thumbnail, playlist, and first comment.
kavenio.webhooks.create(...)Trigger your automation when YouTube publishing succeeds, fails, or needs attention instead of polling for state.
Send users through YouTube connection once, store offline access, and publish to the selected channel.
Pass one public video URL and let the publish workflow handle the YouTube upload session before creating the video.
Set title, description, visibility, made-for-kids, synthetic-media, category, and tags in the request.
Attach a custom thumbnail, add the video to a playlist, and create the first comment after upload.
Start testing YouTube channel connection and video publishing without configuring your own YouTube app first.
Use your YouTube app credentials when your team owns approvals, branding, and policy setup.
Stop rebuilding channel connection, resumable uploads, metadata checks, thumbnails, playlists, first comments, retries, and status events for every product surface.
Yes. Connect a YouTube channel, pass one public video URL, and publish through the same posts API used for other platforms.
YouTube publishing requires a title plus explicit made-for-kids and synthetic-media settings for the video.
Yes. Pass a thumbnail URL and playlist ID in the YouTube platform-specific data when the video needs those follow-up steps.
Yes. First comments are supported when the connected YouTube credential includes the comment permission scope.