YouTube
Google OAuth verification pending. Resumable video and Shorts uploads with playlists.
Connection note
Connects a Google account that owns one or more YouTube or Brand Account channels via OAuth 2.0 with offline refresh access and channel selection. Until Google approves Honeloop's OAuth app, only test users on the app can connect and uploads stay private on unverified projects.
Specification summary
- Text limit
- 5,000 charactersUTF-16 code units
- Media attachments
- Media required: up to 1 video, up to 1 image (mixed kinds allowed)
- Threads and parts
- Single part only
- Authentication
- OAuth 2.0 with PKCECloud shares a platform app once reviewed; self-hosters register their own app.
- Approvals and autonomy
- Starts on Approve everything; ceiling on_the_loop (no unsupervised auto-publish)Default publish:
in_the_loop· Ceiling:on_the_loop - Analytics and API cost
- Allowed for analytics and learningIncluded (no per-call platform API surcharge)
Authentication and token lifecycle
Credentials are encrypted at rest and scoped to the connected channel. You can revoke and scrub stored tokens immediately via POST /v2/channels/disconnect or from the web app; see Data deletion for full revocation and deletion details.
| Variant | Flow | Refresh policy | Platform scopes |
|---|---|---|---|
| Sign in with Google (YouTube)Multi-step: Select a YouTube channel | OAuth 2.0 with PKCE | refresh_token · proactive | https://www.googleapis.com/auth/youtube.uploadhttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.force-ssl |
Content and media constraints
Editor mode: plaintext. Minimum text length: 0. Polls: not supported. AI content disclosure: supported via contains_synthetic_media.
| Kind | Accepted MIME types | Max count | Max file size | Additional bounds |
|---|---|---|---|---|
video | video/mp4video/quicktimevideo/webm | 1 | 512 MiB | Max duration 12 h |
image | image/jpegimage/png | 1 | 2 MiB | None |
Guardrails, rate limits and compliance
Manifest validation rules
- Hard rule
youtube.video_requiredAttach exactly one video (MP4, MOV, or WebM) and optionally one JPEG or PNG custom thumbnail (<= 2 MiB) to publish on YouTube; vertical videos up to 60 seconds or tagged #Shorts publish as YouTube Shorts.
- Hard rule
youtube.metadata_validKeep the video title within 1 to 100 characters without < or >, keep descriptions free of < or >, and keep total tag length within 500 characters.
- Hard rule
youtube.synthetic_mediaSet contains_synthetic_media to true whenever a video includes realistic AI-generated or altered visual or audio content.
- Advice
youtube.quotaYouTube Data API projects start with 10,000 quota units per day (each video upload costs 1,600 units); space uploads accordingly.
Queue and rate-limit windows
Worker queue: youtube (max 2 concurrent jobs).
| Scope | Operation | Window | Max operations |
|---|---|---|---|
app | api_call | 24 hours | 10,000 |
Shipped platform guardrails
- forbidApplies to: agent, oauth_client, api_key, user
Honeloop does not reply to or comment on other creators' videos on any platform (26 R4-N1).
- forbidApplies to: agent, oauth_client, api_key
Engagement automation, solicited replies included, is out of scope on every platform (26 R4-N1).
- forbidApplies to: user, api_key, oauth_client, agent
Direct messages are out of scope (constitution §1).
- forbidApplies to: agent, oauth_client, api_key
YouTube publishing requires a video attachment; a text-only rendition would be refused by YouTube.
Manifest helper tools
Invoke via POST /v2/providers/invoke_tool or MCP invoke_provider_tool:
- List YouTube playlists
list_playlistschannels:readList playlists owned by the connected YouTube channel so an uploaded video can be placed in a playlist. Example: {"limit":25} returns [{"id":"PL123","title":"Product Demos","privacy_status":"public","item_count":4}].
Publish to YouTube
Every call passes the same 12-stage policy gate, manifest preflight check and audit trail. Under the default in_the_loop policy, scheduling returns HTTP 202 ApprovalDiversion until a reviewer approves.
# 1. Upload compliant media first (YouTube requires media on part 1)
MEDIA_ID=$(hl media upload ./autumn-firing.mp4 --json | jq -r '.id')
# 2. Draft and schedule for your YouTube channel (provider: youtube)
hl posts create --input '{"channel_ids":["'"$CHANNEL_ID"'"],"parts":[{"text":"Speckled oatmeal mugs from the autumn firing are in the shop Tuesday at 10:00.","media_ids":["'"$MEDIA_ID"'"]}]}'
hl posts schedule "$POST_ID" --version 1 --at 2026-11-26T09:30:00Zcurl -sS -X POST "https://api.honeloop.example/v2/posts/create" \
-H "Authorization: Bearer $HONELOOP_AGENT_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: create-youtube-0001" \
-d '{
"channel_ids": ["0197e3a0-0000-7000-8000-0000000000a5"],
"parts": [
{
"kind": "text",
"text": "Speckled oatmeal mugs from the autumn firing are in the shop Tuesday at 10:00.",
"media_ids": ["0197e3a0-0000-7000-8000-0000000000a1"]
}
]
}'Common questions
How does Honeloop count characters for YouTube?
YouTube allows up to 5,000 characters by default using UTF-16 code units. Honeloop validates text length before scheduling and rejects over-limit drafts with 400 validation_failed instead of failing after approval.
What media and multi-part formats does YouTube support?
Media required: up to 1 video, up to 1 image (mixed kinds allowed). Single part only.
How do authentication and approvals work on YouTube?
YouTube connects via OAuth 2.0 with PKCE. Starts on Approve everything; ceiling on_the_loop (no unsupervised auto-publish). Disconnecting the channel immediately revokes and scrubs stored credentials.
What compliance guardrails apply to YouTube?
Analytics AI posture is allowed. Cost model: Included (no per-call platform API surcharge). Access status: development access while platform review is pending.