Skip to content
YouTube logo

Connectors / Marketing · HTTP Connector

Automate YouTube with Tray.ai

Upload a video, create a playlist and add a playlist item in YouTube. Connect YouTube to the rest of your marketing stack with Tray.ai.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.

See all connectors

What can you do with YouTube on Tray.ai?

YouTube is Google's video platform, where businesses publish videos, manage channels and playlists, and respond to viewer comments. Tray.ai connects to YouTube through the HTTP Connector, so your workflows can call the YouTube API alongside the rest of your stack.

  • Upload a video when a final cut is approved in your digital asset management system.
  • List comments on new videos and send them to the social team in your team chat.
  • Add a playlist item for each webinar recording your events team publishes.
Connects through
HTTP Connector
Authentication
OAuth 2.0 or an API key in the query string
Base URL
https://www.googleapis.com/youtube/v3

Set it up

Connect YouTube to Tray.ai

Each step uses YouTube's own API details, from its documentation.

Step 1

Sign in to YouTube with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with YouTube. Sign in once and every step reads the token from there.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://www.googleapis.com/youtube/v3 as the base URL. Or paste a cURL example from YouTube's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List videos”

It's one of 24 documented actions, under Videos. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “Upload a video” and “Update a video” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

What the YouTube API covers

6 resources and 24 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Videos

  • List videos
  • Upload a video
  • Update a video
  • Delete a video
  • Rate a video

Playlists

  • List playlists
  • Create a playlist
  • Update a playlist
  • Delete a playlist

Playlist items

  • List playlist items
  • Add a playlist item
  • Update a playlist item
  • Delete a playlist item

Comments

  • List comments
  • Reply to a comment
  • Update a comment
  • Delete a comment
  • Set comment moderation status

Channels

  • List channels
  • Update a channel

Captions

  • List captions
  • Upload a caption track
  • Download a caption track
  • Delete a caption track

Checked against YouTube's own documentation on 2026-10-22

developers.google.com/youtube/data/reference/rest

Frequently asked questions

What can a Tray.ai workflow do in YouTube?

+

The YouTube API documents 24 actions across 6 resources (Videos, Playlists, Playlist items, Comments, Channels, Captions). For example: List videos; List playlists; List playlist items. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with YouTube?

+

The YouTube API uses OAuth 2.0 and an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See YouTube working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.