Add YouTube Channels
Triggers
Add YouTube Channels
Add YouTube channels to an agent trigger.
POST
Add YouTube Channels
Adds channel IDs/URLs into the selected YouTube trigger set (matched byDocumentation Index
Fetch the complete documentation index at: https://docs.mosaic.so/llms.txt
Use this file to discover all available pages before exploring further.
filter_options). You do not need to resend previously added channels.
Behavior:
- Creates a new trigger if none exists
- Merges new channels into an existing trigger with matching
filter_optionsif one exists - Creates a new YouTube trigger node when no existing trigger has matching
filter_options - If a channel already exists on a different YouTube trigger node for this agent, it is moved to the selected trigger node
- Deletes emptied YouTube trigger nodes after channel moves
- Updates the webhook URL if
trigger_callback_urlis provided - Clears the webhook URL when
trigger_callback_urlis explicitlynull
Request
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
youtube_channels | string[] | Yes | List of new YouTube channel IDs or URLs to add |
trigger_callback_url | string | null | No | Optional webhook URL. If provided as a string, it replaces the existing webhook URL for the selected trigger node. If provided as null, the existing webhook URL is removed. Omit this field to keep the existing callback URL unchanged. |
filter_options | object | No | Optional trigger filters. Currently supports filter_options.duration.min_seconds and filter_options.duration.max_seconds (inclusive bounds in seconds). |
Response
Duplicate Handling: If you add a channel that is already monitored on the selected trigger (same filter signature), it is ignored. If that channel exists on another trigger with a different filter signature, it is removed from the other trigger and moved to the selected one.Run Deduplication: At execution time, if multiple YouTube trigger nodes still match the same new video and target the same Video Input node, Mosaic starts one run for that target (not one run per trigger tile).