YouTube inbox API

PubNio's YouTube inbox reads comment threads on every video of the channel. It syncs them by polling every 15 minutes and checks no reply window (provider rules checked 2026-12-05).

Live · provider rules read 2026-12-05View as Markdown

What the inbox reads

ChannelReadWritesAttachmentsSync
Direct messagesNo———
CommentsYesreply, deleteNoPolled every 15 minutes
MentionsNo———
  • PubNio reads commentThreads.list with allThreadsRelatedToChannelId, which covers every video on the channel, newest first, up to 100 threads a page, with the replies YouTube includes in each thread.
  • Comments only: the YouTube adapter answers direct messages, mentions, and attachments with unsupported.
  • Delete works only on comments the channel wrote itself. YouTube's comments.delete reference, read 2026-12-05: "Only the comment's author can call this method to delete a comment." Deleting someone else's comment fails with HTTP 409 conflict, and the comment stays.

Reply window

Policy none: there are no YouTube direct messages to send, and replies to comments have no window.

Sync

No webhooks: each channel is pulled again 15 minutes after its last pull. Starting an inbox sync queues a pull of every channel now.

  • Each page of comment threads costs 1 quota unit; a reply costs 50 (comments.insert) and a delete 50 (comments.delete). A project's default allowance is 10,000 units a day, reset at midnight Pacific Time.

Scopes

ChannelScopes
Commentshttps://www.googleapis.com/auth/youtube.force-ssl

Without a scope, reads keep working: the capabilities response lists it in missingScopes and drops send, reply, hide, like, and delete until the account reconnects with it. A write the channel lacks fails with HTTP 422 capability-unsupported.

  • youtube.force-ssl is Google's scope to see, edit, and delete YouTube videos, ratings, comments, and captions.

Capabilities response

What the inbox capabilities endpoint returns in `accounts[]` for a YouTube channel connected with every scope above. The other fields (`accountId`, `publishingReadiness`, `accountCapabilities`, `lastSyncError`, `deliveryGap`, `checkedAt`) are left out.

response-fields.json
{
  "provider": "youtube",
  "accountKind": "social_channel",
  "messaging": {
    "resource": "conversation",
    "supported": false,
    "operations": [],
    "attachments": false,
    "quickReplies": false,
    "buttons": false,
    "readReceipts": false,
    "moderation": false,
    "syncMode": "polling",
    "backfillDays": 0,
    "missingScopes": [],
    "missingTasks": [],
    "unavailable": null
  },
  "comments": {
    "resource": "comment_thread",
    "supported": true,
    "operations": ["list", "read", "reply", "delete"],
    "attachments": false,
    "quickReplies": false,
    "buttons": false,
    "readReceipts": false,
    "moderation": false,
    "syncMode": "polling",
    "backfillDays": 30,
    "missingScopes": [],
    "missingTasks": [],
    "unavailable": null
  },
  "mentions": {
    "resource": "mention",
    "supported": false,
    "operations": [],
    "attachments": false,
    "quickReplies": false,
    "buttons": false,
    "readReceipts": false,
    "moderation": false,
    "syncMode": "polling",
    "backfillDays": 0,
    "missingScopes": [],
    "missingTasks": [],
    "unavailable": null
  },
  "replyWindow": {
    "open": true,
    "policy": "none",
    "endsAt": null
  }
}

Limits

  • PubNio cannot remove other people's comments. The same reference, read 2026-12-05: "Channel owners and moderators can hide unwanted comments by calling comments.setModerationStatus with moderationStatus set to rejected." PubNio does not call comments.setModerationStatus: moderation is false, and hide answers unsupported.
  • PubNio clears message, comment, and mention text 90 days after the network created it, and deletes stored attachments after 30 days.

Sources