---
title: "YouTube create comment thread API: POST /youtube/v3/commentThreads"
description: "When PubNio calls YouTube's create comment thread request, POST /youtube/v3/commentThreads: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# YouTube create comment thread API: POST /youtube/v3/commentThreads

PubNio calls YouTube's `POST /youtube/v3/commentThreads` (`youtube.commentThreads.insert`) to post a video's first comment.

## How PubNio calls it

- First comments: a post created with [`POST /api/v1/posts`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts) or sent with [`POST /api/v1/posts/{postId}/publish`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/publish) that carries a first comment gets it after the post publishes.
- PubNio sends the comment as `snippet.topLevelComment.snippet.textOriginal` for the video it uploaded, and keeps the returned top-level comment ID.

## Scopes

- The pinned spec accepts any one of one scope: `https://www.googleapis.com/auth/youtube.force-ssl`.
- PubNio's Google sign-in requests `https://www.googleapis.com/auth/youtube.force-ssl`, which satisfies it.
- Before a first comment goes out, PubNio checks that the account granted `https://www.googleapis.com/auth/youtube.force-ssl`.

## Errors

PubNio has no YouTube error code pages yet. [Provider error codes](https://pubnio.com/docs/errors/providers/) covers the providers that have them.

## Spec and changes

`youtube.commentThreads.insert` in the pinned spec, revision `20261124`. YouTube reference: [youtube.commentThreads.insert reference](https://developers.google.com/youtube/v3/docs/commentThreads/insert).

Checked weekly; no change to `POST /youtube/v3/commentThreads` recorded since this revision. [Change tracker](https://pubnio.com/docs/changes/).

## Limits

- A first comment is at most 10,000 characters. [`POST /api/v1/comments`](https://pubnio.com/api/v1/docs#tag/comments/POST/api/v1/comments) does not post YouTube comments.

## Sources

- [YouTube Data API v3 discovery document](https://youtube.googleapis.com/$discovery/rest?version=v3)
- [youtube.commentThreads.insert reference](https://developers.google.com/youtube/v3/docs/commentThreads/insert)

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [YouTube rate limits and quota](https://pubnio.com/docs/providers/youtube/quota/)

Source: https://pubnio.com/docs/providers/youtube/operations/comment-threads-insert/index.mdx
