{"openapi":"3.1.0","info":{"title":"1of10 Public API","description":"\n# Introduction\n\nThe 1of10 Public API gives programmatic access to outlier discovery, trackers, bookmarks,\nmanaged channels, title and thumbnail winners, trending title formats, and the title, idea,\nthumbnail, and optimization generators.\n\nAll endpoints require a **Pro plan or higher**.\n\n# Authentication\n\nCreate an API key in the **API for developers** section of the **Claude & ChatGPT** page of the\n1of10 app, then send it as a Bearer token:\n\n```bash\ncurl https://1of10.com/api/v1/managed-channels \\\n  -H \"Authorization: Bearer 1of10_YOUR_API_KEY\"\n```\n\n| Status | Meaning |\n|--------|---------|\n| `401` | Missing, invalid, revoked, or expired API key |\n| `403` | The account is not on a Pro plan or higher |\n| `429` | Rate limit exceeded |\n\n# Limits\n\nEvery endpoint: **20 requests per second and 600 per minute per account**.\n\nOutlier research (`/outlier-discovery/*`, `GET /trackers/{folder_id}` and\n`GET /bookmarks/outliers/{folder_id}`) is limited to\n**4,000 requests per account per day** (UTC), shared with the 1of10 MCP server.\n`page_id` stops at 500.\n\nAll three limits are fixed clock windows: the per-second and per-minute counts start again at the start of each clock\nsecond and minute, the daily count at 00:00 UTC. Past a limit, calls answer `429` with a `Retry-After` header: the\nnumber of seconds until the limit that refused the call resets.\n\n# Using the API with AI assistants\n\nAI assistants that run code in a sandbox (Claude, ChatGPT, agents, CI runners...) often restrict\noutbound network access. If calls fail with a network or proxy error (e.g. `CONNECT tunnel failed,\nresponse 403`) before reaching 1of10, add **`1of10.com`** to the assistant's allowed domains:\n\n- **Claude (claude.ai / desktop app)**: Settings → Capabilities → allowed domains for code execution.\n- **Claude Code on the web**: the environment's settings → Network access → add `1of10.com` to\n  the allowed domains (or pick a broader access level).\n- **Other agents / sandboxes**: allow outbound HTTPS to `1of10.com` in their network settings.\n\nTreat your API key like a password: prefer the assistant's secret or environment variable settings\nover pasting it into a conversation, and revoke it from the same section of the app if it leaks.\n\n# MCP server\n\nClaude, ChatGPT and other AI assistants can also use 1of10 through its MCP server, with no code: they search\noutliers and run the generators for you, in the conversation. Its documentation (setup, tools, limits, data and\nprivacy) is the [1of10 MCP Server](?api=mcp) document, in the selector at the top left of this page.\n","version":"1.0.0"},"servers":[{"url":"/api/v1","description":"Production"}],"paths":{"/outlier-discovery/random":{"get":{"tags":["Outlier Discovery"],"summary":"Get random outliers","description":"Returns a random selection of outlier videos from the 1of10 index.","operationId":"get_random_outliers_outlier_discovery_random_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantVideoPoint"},"title":"Response Get Random Outliers Outlier Discovery Random Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outlier-discovery/inspired-by/{managed_channel_id}":{"get":{"tags":["Outlier Discovery"],"summary":"Get outliers inspired by a managed channel","description":"Returns outlier videos semantically related to the content style of a managed channel. Useful for discovering what's working in a niche.","operationId":"get_outliers_inspired_by_channel_outlier_discovery_inspired_by__managed_channel_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"managed_channel_id","in":"path","required":true,"schema":{"type":"string","title":"Managed Channel Id"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantVideoPoint"},"title":"Response Get Outliers Inspired By Channel Outlier Discovery Inspired By  Managed Channel Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outlier-discovery/search/outliers":{"get":{"tags":["Outlier Discovery"],"summary":"Search outliers by text","description":"Performs a semantic search across outlier videos or thumbnails.\n\n- `type=outlier` — searches by title and topic\n- `type=thumbnail` — searches by thumbnail visual description","operationId":"search_outliers_outlier_discovery_search_outliers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"txt_input","in":"query","required":true,"schema":{"type":"string","maxLength":500,"title":"Txt Input"}},{"name":"type","in":"query","required":false,"schema":{"enum":["outlier","thumbnail"],"type":"string","default":"outlier","title":"Type"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortBy","default":"published_at"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Direction","default":"desc"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantVideoPoint"},"title":"Response Search Outliers Outlier Discovery Search Outliers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outlier-discovery/search/channels":{"get":{"tags":["Outlier Discovery"],"summary":"Search channels by text","description":"Performs a semantic search across indexed YouTube channels by name, topic, or description.","operationId":"search_channels_outlier_discovery_search_channels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"txt_input","in":"query","required":true,"schema":{"type":"string","maxLength":500,"title":"Txt Input"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantChannelPoint"},"title":"Response Search Channels Outlier Discovery Search Channels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outlier-discovery/similarity":{"get":{"tags":["Outlier Discovery"],"summary":"Find similar outliers by point ID","description":"Returns outlier videos similar to a given outlier, itself first.\n\n- `type=outlier` — similarity based on title and topic\n- `type=thumbnail` — similarity based on thumbnail visual description\n\nA malformed ID returns `400` and an ID not in the index of `content_type` returns `404`: neither counts toward\nthe daily outlier quota.","operationId":"search_similar_outliers_outlier_discovery_similarity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"txt_input","in":"query","required":true,"schema":{"type":"string","maxLength":500,"description":"The outlier's point ID (the `id` of a result) or its 11-character YouTube video ID. Not a URL.","title":"Txt Input"},"description":"The outlier's point ID (the `id` of a result) or its 11-character YouTube video ID. Not a URL."},{"name":"type","in":"query","required":false,"schema":{"enum":["outlier","thumbnail"],"type":"string","default":"outlier","title":"Type"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantVideoPoint"},"title":"Response Search Similar Outliers Outlier Discovery Similarity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outlier-discovery/similarity/channels":{"get":{"tags":["Outlier Discovery"],"summary":"Find similar channels by point ID","description":"Returns channels similar to a given Qdrant point ID.","operationId":"search_similar_channels_outlier_discovery_similarity_channels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"txt_input","in":"query","required":true,"schema":{"type":"string","maxLength":500,"title":"Txt Input"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantChannelPoint"},"title":"Response Search Similar Channels Outlier Discovery Similarity Channels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/outlier-discovery/similarity/channels/{channel_handle}":{"get":{"tags":["Outlier Discovery"],"summary":"Find similar channels by handle","description":"Returns channels with a similar content style to the given YouTube handle (e.g. `@mkbhd`).","operationId":"search_similar_channels_from_handle_outlier_discovery_similarity_channels__channel_handle__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_handle","in":"path","required":true,"schema":{"type":"string","maxLength":100,"title":"Channel Handle"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantChannelPoint"},"title":"Response Search Similar Channels From Handle Outlier Discovery Similarity Channels  Channel Handle  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/managed-channels":{"get":{"tags":["Managed Channel"],"summary":"List managed channels","description":"Returns a paginated list of YouTube channels linked to the authenticated account.","operationId":"get_managed_channels_managed_channels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"query","required":true,"schema":{"type":"integer","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManagedChannel"},"title":"Response Get Managed Channels Managed Channels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Managed Channel"],"summary":"Create a managed channel","description":"Links a YouTube channel to the account by its handle (e.g. `@mkbhd`). Fetches and indexes the channel's video data.","operationId":"create_managed_channel_managed_channels_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_handle","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Channel Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedChannel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/managed-channels/refresh":{"post":{"tags":["Managed Channel"],"summary":"Refresh a managed channel's data","description":"Re-fetches and re-indexes a channel's latest video data from YouTube. Use this to sync recent uploads.","operationId":"refresh_managed_channel_managed_channels_refresh_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_handle","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Channel Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/managed-channels/{managed_channel_id}":{"delete":{"tags":["Managed Channel"],"summary":"Unlink a managed channel","description":"Removes a channel from the account. Does not delete YouTube data — the channel can be re-added at any time.","operationId":"unlink_managed_channel_managed_channels__managed_channel_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"managed_channel_id","in":"path","required":true,"schema":{"type":"string","title":"Managed Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/thumbnails/run":{"post":{"tags":["Thumbnail Generator"],"summary":"Start async thumbnail generation","description":"Starts thumbnail generation in the background and immediately returns a `session_id`.\n\nUse the session ID to retrieve results:\n- **Poll** — `GET /generate/thumbnails/{session_id}`\n- **Stream** — `GET /generate/thumbnails/{session_id}/stream` (SSE)","operationId":"generate_thumbnails_async_generate_thumbnails_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbnailGeneratorRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionId"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/generate/thumbnails/runsync":{"post":{"tags":["Thumbnail Generator"],"summary":"Generate thumbnails synchronously","description":"Runs thumbnail generation synchronously and returns all results once generation is complete.\n\nSimpler than the async flow but the request will block until all thumbnails are ready.\nPrefer `/run` + `/stream` for better UX in long-running generations.","operationId":"generate_thumbnails_sync_generate_thumbnails_runsync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbnailGeneratorRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ThumbnailHistoryItem"},"type":"array","title":"Response Generate Thumbnails Sync Generate Thumbnails Runsync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/generate/thumbnails/history":{"get":{"tags":["Thumbnail Generator"],"summary":"List thumbnail generation history","description":"Returns a paginated list of past thumbnail generation sessions for the authenticated account.","operationId":"get_thumbnail_generation_history_generate_thumbnails_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThumbnailHistoryItem"},"title":"Response Get Thumbnail Generation History Generate Thumbnails History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/thumbnails/{session_id}":{"get":{"tags":["Thumbnail Generator"],"summary":"Get results of a thumbnail generation session","description":"Returns the generated thumbnails for a given session. Results may be partial if the session is still running — use `/stream` to receive them in real time.","operationId":"get_generated_thumbnails_generate_thumbnails__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThumbnailHistoryItem"},"title":"Response Get Generated Thumbnails Generate Thumbnails  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/thumbnails/{session_id}/stream":{"get":{"tags":["Thumbnail Generator"],"summary":"Stream results of a thumbnail generation session (SSE)","description":"Opens a [Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) stream for a generation session.\n\nEach event delivers one thumbnail as it becomes ready. The stream closes automatically when generation completes or errors out.\n\nStart a session first with `POST /generate/thumbnails/run`.","operationId":"get_generated_thumbnails_stream_generate_thumbnails__session_id__stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/ideas/run":{"post":{"tags":["Idea Generator"],"summary":"Start async idea generation","description":"Starts idea generation in the background and immediately returns a `session_id`.\n\nUse the session ID to retrieve results:\n- **Poll** — `GET /generate/ideas/{session_id}`\n- **Stream** — `GET /generate/ideas/{session_id}/stream` (SSE)","operationId":"generate_ideas_async_generate_ideas_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaGeneratorRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionId"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/generate/ideas/runsync":{"post":{"tags":["Idea Generator"],"summary":"Generate ideas synchronously","description":"Runs idea generation synchronously and returns all results once generation is complete.\n\nSimpler than the async flow but the request will block until all ideas are ready.\nPrefer `/run` + `/stream` for better UX in long-running generations.","operationId":"generate_ideas_sync_generate_ideas_runsync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaGeneratorRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ThumbnailHistoryItem"},"type":"array","title":"Response Generate Ideas Sync Generate Ideas Runsync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/generate/ideas/history":{"get":{"tags":["Idea Generator"],"summary":"List idea generation history","description":"Returns a paginated list of past idea generation sessions for the authenticated account.","operationId":"get_idea_generation_history_generate_ideas_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThumbnailHistoryItem"},"title":"Response Get Idea Generation History Generate Ideas History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/ideas/{session_id}":{"get":{"tags":["Idea Generator"],"summary":"Get results of an idea generation session","description":"Returns the generated ideas for a given session. Results may be partial if the session is still running — use `/stream` to receive them in real time.","operationId":"get_generated_ideas_generate_ideas__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThumbnailGeneratorResultItem"},"title":"Response Get Generated Ideas Generate Ideas  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/ideas/{session_id}/stream":{"get":{"tags":["Idea Generator"],"summary":"Stream results of an idea generation session (SSE)","description":"Opens a [Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) stream for a generation session.\n\nEach event delivers one idea as it becomes ready. The stream closes automatically when generation completes or errors out.\n\nStart a session first with `POST /generate/ideas/run`.","operationId":"get_generated_ideas_stream_generate_ideas__session_id__stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/titles/runsync":{"post":{"tags":["Title Generator"],"summary":"Generate titles synchronously","description":"Generates YouTube title suggestions based on a prompt and the style of the given channel. Returns results synchronously.","operationId":"generate_titles_sync_generate_titles_runsync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_handle","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Channel Handle"}},{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":500,"title":"Prompt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/titles/history":{"get":{"tags":["Title Generator"],"summary":"List title generation history","description":"Returns a paginated list of past title generations for the authenticated account.","operationId":"get_title_generation_history_generate_titles_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bookmarks/outliers":{"get":{"tags":["Bookmarks"],"summary":"List bookmark folders","description":"Returns a paginated list of bookmark folders for the authenticated account.","operationId":"get_bookmark_folders_bookmarks_outliers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BookmarkFolder"},"title":"Response Get Bookmark Folders Bookmarks Outliers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bookmarks/outliers/{folder_id}":{"get":{"tags":["Bookmarks"],"summary":"Get videos in a bookmark folder","description":"Returns the outlier videos saved inside a bookmark folder, with support for sorting and filtering.","operationId":"get_bookmark_videos_bookmarks_outliers__folder_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortBy","default":"published_at"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Direction","default":"desc"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantVideoPoint"},"title":"Response Get Bookmark Videos Bookmarks Outliers  Folder Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Bookmarks"],"summary":"Delete a bookmark folder","description":"Permanently deletes a bookmark folder and removes all its saved videos.","operationId":"delete_bookmark_folder_bookmarks_outliers__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Bookmarks"],"summary":"Rename a bookmark folder","description":"Updates the display name of a bookmark folder.","operationId":"rename_bookmark_folder_bookmarks_outliers__folder_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"folder_name","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Folder Name"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers":{"get":{"tags":["Trackers"],"summary":"List trackers","description":"Returns a paginated list of channel trackers for the authenticated account, each including the list of tracked channels.","operationId":"get_trackers_trackers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrackerWithChannels"},"title":"Response Get Trackers Trackers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Trackers"],"summary":"Create a tracker","description":"Creates an empty tracker. Its type (`long` or `short`) is taken from `content_type`.","operationId":"create_tracker_trackers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_name","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Folder Name"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerFolder"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers/channels":{"get":{"tags":["Trackers"],"summary":"List trackers containing a channel","description":"Returns the account's trackers that already track the given channel handle (e.g. `@mkbhd`).","operationId":"get_channel_trackers_trackers_channels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_handle","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Channel Handle"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrackerFolder"},"title":"Response Get Channel Trackers Trackers Channels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers/{folder_id}":{"get":{"tags":["Trackers"],"summary":"Get videos in a tracker","description":"Returns the outlier videos from channels tracked in the given tracker, with support for sorting and filtering.","operationId":"get_tracker_trackers__folder_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Page Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortBy","default":"published_at"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Direction","default":"desc"}},{"name":"median_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Min"}},{"name":"median_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Score Max"}},{"name":"subs_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Min"}},{"name":"subs_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subs Score Max"}},{"name":"views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Min"}},{"name":"views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Views Max"}},{"name":"median_views_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Min"}},{"name":"median_views_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Views Max"}},{"name":"comments_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Min"}},{"name":"comments_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Comments Count Max"}},{"name":"video_duration_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Min"}},{"name":"video_duration_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration Max"}},{"name":"subscribers_count_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Min"}},{"name":"subscribers_count_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Subscribers Count Max"}},{"name":"published_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishedAtFilter"},{"type":"null"}],"title":"Published At"}},{"name":"lang","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LanguageFilter","default":"en"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QdrantVideoPoint"},"title":"Response Get Tracker Trackers  Folder Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Trackers"],"summary":"Rename a tracker","description":"Updates the display name of a tracker.","operationId":"rename_tracker_folder_trackers__folder_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"folder_name","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Folder Name"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Trackers"],"summary":"Delete a tracker","description":"Permanently deletes a tracker and stops monitoring its channels.","operationId":"delete_tracker_folder_trackers__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers/{folder_id}/details":{"get":{"tags":["Trackers"],"summary":"Get a tracker","description":"Returns a tracker with its tracked channels. Works for the account's trackers and for public trackers.","operationId":"get_tracker_details_trackers__folder_id__details_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerWithChannels"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers/{folder_id}/visibility":{"patch":{"tags":["Trackers"],"summary":"Change a tracker's visibility","description":"Sets a tracker to `private`, `shared` or `public`. Public trackers can be read and cloned by other accounts.","operationId":"change_tracker_visibility_trackers__folder_id__visibility_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"visibility","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Visibility"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers/{folder_id}/clone":{"post":{"tags":["Trackers"],"summary":"Clone a tracker","description":"Copies a tracker (one of the account's, or a public one) into a new tracker with the same channels.","operationId":"clone_tracker_trackers__folder_id__clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"folder_name","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Folder Name"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerFolder"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers/{folder_id}/channels":{"post":{"tags":["Trackers"],"summary":"Add a channel to a tracker","description":"Starts tracking a YouTube channel by its handle (e.g. `@mkbhd`). Returns 409 if the channel is already tracked.","operationId":"add_channel_to_tracker_trackers__folder_id__channels_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"channel_handle","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Channel Handle"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerChannel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Trackers"],"summary":"Remove a channel from a tracker","description":"Stops tracking a channel in the given tracker.","operationId":"remove_channel_from_tracker_trackers__folder_id__channels_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"channel_handle","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Channel Handle"}},{"name":"content_type","in":"query","required":true,"schema":{"enum":["long","short"],"type":"string","title":"Content Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/optimize/run":{"post":{"tags":["Optimize"],"summary":"Start async optimization of a video","description":"Starts generating new title + thumbnail packagings for an existing YouTube video and immediately returns a\n`session_id`. A run produces `quantity` scored suggestions (4, 8, 12, 16, 24, 36, 72 or 144; 4 by default),\ndelivered four at a time as each group of four finishes; credits are only charged for the ones that succeed. Up\nto 12 suggestions, each is a different idea; past 12, the run makes 12 ideas and the rest are other versions of\nthem, each with its own title and thumbnail.\n\nUse the session ID to retrieve results:\n- **Poll** — `GET /optimize/sessions/{session_id}`\n- **Stream** — `GET /optimize/sessions/{session_id}/stream` (SSE)","operationId":"optimize_video_async_optimize_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackCatalogRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionId"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/optimize/runsync":{"post":{"tags":["Optimize"],"summary":"Optimize a video synchronously","description":"Runs the optimization synchronously and returns the completed session with all its suggestions.\n\nSimpler than the async flow but the request will block until every suggestion is ready, about 4 minutes for 4\nsuggestions and up to 10 for 16. Takes a `quantity` of 16 at most: use `/run` + `/sessions/{session_id}/stream`\nfor more, and for better UX.","operationId":"optimize_video_sync_optimize_runsync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackCatalogRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimizeSession"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/optimize/variations":{"post":{"tags":["Optimize"],"summary":"Start async thumbnail variations","description":"Generates 4 new thumbnails that keep the title of their source, and immediately returns a `session_id`.\n\n- `source_context=original` — `source_id` is a YouTube video ID; varies the video's current thumbnail\n- `source_context=suggestion` — `source_id` is a `suggestion_id`; varies a previously generated packaging\n\nResults are retrieved like any optimization session, through `/optimize/sessions/{session_id}`.","operationId":"generate_thumbnail_variations_optimize_variations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackCatalogVariationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionId"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/optimize/history":{"get":{"tags":["Optimize"],"summary":"List optimization history","description":"Returns the optimized videos of the account (20 per page), each with every suggestion generated for it.\n\n- `search` — matches the video title\n- `managed_channel_id` — only videos of that channel\n- `folder_id` — only the suggestions saved in that folder\n\nPass the returned `next_page_id` as `page_id` to load the next page.","operationId":"get_optimize_history_optimize_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"managed_channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managed Channel Id"}},{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/BackCatalogHistorySort","default":"recent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_list_OptimizeHistoryItem__int_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/optimize/history/{video_id}":{"get":{"tags":["Optimize"],"summary":"List suggestions generated for a video","description":"Returns every suggestion generated for a YouTube video across all its optimization sessions.","operationId":"get_video_suggestions_optimize_history__video_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OptimizeSuggestion"},"title":"Response Get Video Suggestions Optimize History  Video Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/optimize/sessions/{session_id}":{"get":{"tags":["Optimize"],"summary":"Get an optimization session","description":"Returns an optimization session and its suggestions.\n\n`status` is `pending` while generating, `active` once complete and `error` if every suggestion failed.\nSuggestions may be partial while the session is pending — use `/stream` to receive them in real time.","operationId":"get_optimize_session_optimize_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimizeSession"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/optimize/sessions/{session_id}/stream":{"get":{"tags":["Optimize"],"summary":"Stream an optimization session (SSE)","description":"Opens a [Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) stream for an\noptimization session.\n\nEach event delivers one suggestion as it becomes ready. The stream closes automatically when generation completes\nor errors out.\n\nStart a session first with `POST /optimize/run` or `POST /optimize/variations`.","operationId":"stream_optimize_session_optimize_sessions__session_id__stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/optimize/folders":{"get":{"tags":["Optimize"],"summary":"List Optimize folders","description":"Returns every Optimize folder of the account with its number of saved suggestions.","operationId":"get_folders_optimize_folders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BackCatalogFolderWithCount"},"type":"array","title":"Response Get Folders Optimize Folders Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Optimize"],"summary":"Create an Optimize folder","description":"Creates a folder to save suggestions into. Folder names are unique per account.","operationId":"create_folder_optimize_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackCatalogFolderNameRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackCatalogFolder"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/optimize/folders/{folder_id}":{"patch":{"tags":["Optimize"],"summary":"Rename an Optimize folder","description":"Updates the display name of a folder.","operationId":"rename_folder_optimize_folders__folder_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackCatalogFolderNameRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Optimize"],"summary":"Delete an Optimize folder","description":"Deletes a folder. The suggestions it contained stay in the history.","operationId":"delete_folder_optimize_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/optimize/folders/{folder_id}/items":{"post":{"tags":["Optimize"],"summary":"Save a suggestion to a folder","description":"Saves a suggestion into a folder. Saving a suggestion that is already in the folder is a no-op.","operationId":"add_suggestion_to_folder_optimize_folders__folder_id__items_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSuggestionToFolderRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/optimize/folders/{folder_id}/items/{suggestion_id}":{"delete":{"tags":["Optimize"],"summary":"Remove a suggestion from a folder","description":"Removes a suggestion from a folder. The suggestion itself stays in the history.","operationId":"remove_suggestion_from_folder_optimize_folders__folder_id__items__suggestion_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/title-thumbnail-winners":{"get":{"tags":["Title & Thumbnail Winners"],"summary":"List title and thumbnail winners","description":"Returns title and thumbnail changes (A/B tests) that drove a views-per-hour increase on YouTube\nvideos monitored by 1of10. Each video appears once, with its strongest change. 20 results per page.\n\n- `before_vph` and `after_vph` — views per hour before and after the change\n- `vph_change_percent` — the increase, in percent\n- `old_r2_url` / `new_r2_url` — the thumbnails before and after (thumbnail changes)\n- `old_title` / `new_title` — the titles before and after (title changes)\n- `days_to_spike` / `days_to_peak` — days from the change to the spike and to the peak, `-1` when none\n\nSort:\n- `date` — most recent changes first\n- `impact` — largest views-per-hour increase first\n- `score` — weighs the increase by channel size and by how fast the spike came","operationId":"get_title_thumbnail_winners_title_thumbnail_winners_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"change_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["thumbnail","title"],"type":"string"},{"type":"null"}],"description":"`thumbnail`, `title`, or both when omitted.","title":"Change Type"},"description":"`thumbnail`, `title`, or both when omitted."},{"name":"min_vph_change_percent","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Minimum views-per-hour increase after the change, in percent.","default":100,"title":"Min Vph Change Percent"},"description":"Minimum views-per-hour increase after the change, in percent."},{"name":"min_views","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Minimum current views of the video.","default":10000,"title":"Min Views"},"description":"Minimum current views of the video."},{"name":"min_before_vph","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Minimum views per hour before the change.","default":50,"title":"Min Before Vph"},"description":"Minimum views per hour before the change."},{"name":"min_perceptual_distance","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Thumbnail changes only: how different the new thumbnail must look from the old one.","default":10,"title":"Min Perceptual Distance"},"description":"Thumbnail changes only: how different the new thumbnail must look from the old one."},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"description":"Video language set by the creator, e.g. `en` (also matches `en-US`).","title":"Language"},"description":"Video language set by the creator, e.g. `en` (also matches `en-US`)."},{"name":"published_within_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":3650,"minimum":1},{"type":"null"}],"description":"Only videos published in the last N days.","title":"Published Within Days"},"description":"Only videos published in the last N days."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Matches the video title, channel name or handle.","title":"Search"},"description":"Matches the video title, channel name or handle."},{"name":"sort","in":"query","required":false,"schema":{"enum":["date","impact","score"],"type":"string","default":"date","title":"Sort"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChangeImpact"},"title":"Response Get Title Thumbnail Winners Title Thumbnail Winners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trending-formats":{"get":{"tags":["Trending Formats"],"summary":"List trending formats","description":"Returns the library of title formats: repeatable title structures (e.g. `I Tested [Thing] For 30 Days`)\nused across many channels, with live metrics. 30 formats per page.\n\nMetrics are computed over `window_days`:\n- `adoption_velocity` — views gained by the format's videos in the window, divided by the views gained in the\n  window before (0 when that earlier window has fewer than 1,000 views)\n- `avg_views` — views gained by the format's videos in the window\n- `channel_count`, `video_count`, `median_outlier_score`, `success_rate` (share of videos above a 1.5x outlier\n  score) — over the videos published in the window\n\nSort:\n- `trending` — highest `adoption_velocity` first\n- `views` — highest `avg_views` first\n- `channels` — most channels first\n- `outlier_score` — highest `median_outlier_score` first\n- `newest` — most recently discovered formats first","operationId":"get_trending_formats_trending_formats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Window Days"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["trending","views","channels","outlier_score","newest"],"type":"string","default":"trending","title":"Sort"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrendingFormat"},"title":"Response Get Trending Formats Trending Formats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trending-formats/{format_id}/videos":{"get":{"tags":["Trending Formats"],"summary":"List videos using a format","description":"Returns the videos whose title follows the given format, 20 per page.","operationId":"get_trending_format_videos_trending_formats__format_id__videos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format_id","in":"path","required":true,"schema":{"type":"string","maxLength":100,"title":"Format Id"}},{"name":"page_id","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FormatVideoItem"},"title":"Response Get Trending Format Videos Trending Formats  Format Id  Videos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trending-formats/{format_id}/time-series":{"get":{"tags":["Trending Formats"],"summary":"Get a format's adoption over time","description":"Returns, per day or week (`week` holds the start of the bucket), how many videos used the format, the views they\ngained in that bucket and their median outlier score.","operationId":"get_trending_format_time_series_trending_formats__format_id__time_series_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format_id","in":"path","required":true,"schema":{"type":"string","maxLength":100,"title":"Format Id"}},{"name":"granularity","in":"query","required":false,"schema":{"enum":["day","week"],"type":"string","default":"week","title":"Granularity"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormatTimeSeriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AddSuggestionToFolderRequest":{"properties":{"suggestion_id":{"type":"string","title":"Suggestion Id"}},"type":"object","required":["suggestion_id"],"title":"AddSuggestionToFolderRequest"},"BackCatalogFolder":{"properties":{"folder_id":{"type":"string","title":"Folder Id"},"account_id":{"type":"string","title":"Account Id"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["account_id","name"],"title":"BackCatalogFolder"},"BackCatalogFolderNameRequest":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"}},"type":"object","required":["name"],"title":"BackCatalogFolderNameRequest"},"BackCatalogFolderWithCount":{"properties":{"folder_id":{"type":"string","title":"Folder Id"},"account_id":{"type":"string","title":"Account Id"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"total_items":{"type":"integer","title":"Total Items","default":0}},"type":"object","required":["account_id","name"],"title":"BackCatalogFolderWithCount"},"BackCatalogHistorySort":{"type":"string","enum":["recent","oldest"],"title":"BackCatalogHistorySort"},"BackCatalogHistoryVideo":{"properties":{"video_id":{"type":"string","title":"Video Id"},"managed_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managed Channel Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail"}},"type":"object","required":["video_id"],"title":"BackCatalogHistoryVideo"},"BackCatalogRunRequest":{"properties":{"video_id":{"type":"string","maxLength":255,"minLength":1,"title":"Video Id"},"reference_images":{"items":{"$ref":"#/components/schemas/ImageInput"},"type":"array","title":"Reference Images","default":[]},"model":{"$ref":"#/components/schemas/ThumbnailGeneratorModel","default":"1of10-gen-3"},"quantity":{"type":"integer","enum":[4,8,12,16,24,36,72,144],"title":"Quantity","description":"How many title and thumbnail packages to make: 4, 8, 12, 16, 24, 36, 72 or 144. Up to 12, each is a different idea; past 12, a run makes 12 ideas and the rest are other versions of them.","default":4}},"type":"object","required":["video_id"],"title":"BackCatalogRunRequest"},"BackCatalogVariationRequest":{"properties":{"source_context":{"$ref":"#/components/schemas/BackCatalogVariationSourceContext"},"source_id":{"type":"string","maxLength":255,"minLength":1,"title":"Source Id"}},"type":"object","required":["source_context","source_id"],"title":"BackCatalogVariationRequest"},"BackCatalogVariationSourceContext":{"type":"string","enum":["suggestion","original"],"title":"BackCatalogVariationSourceContext"},"BookmarkFolder":{"properties":{"folder_id":{"type":"string","title":"Folder Id"},"folder_name":{"type":"string","maxLength":100,"title":"Folder Name"},"videos_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Videos Count"},"folder_type":{"$ref":"#/components/schemas/ContentType"},"account_id":{"type":"string","title":"Account Id"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"visibility":{"$ref":"#/components/schemas/Visibility","default":"private"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"}},"type":"object","required":["folder_name","folder_type","account_id","created_by_user_id"],"title":"BookmarkFolder"},"ChangeImpact":{"properties":{"video_id":{"type":"string","title":"Video Id"},"channel_id":{"type":"string","title":"Channel Id"},"channel_handle":{"type":"string","title":"Channel Handle"},"channel_title":{"type":"string","title":"Channel Title"},"title":{"type":"string","title":"Title"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"default_language":{"type":"string","title":"Default Language"},"current_views":{"type":"integer","title":"Current Views"},"subscribers_count":{"type":"integer","title":"Subscribers Count"},"change_type":{"type":"string","title":"Change Type"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"before_vph":{"type":"number","title":"Before Vph"},"after_vph":{"type":"number","title":"After Vph"},"vph_change":{"type":"number","title":"Vph Change"},"vph_change_percent":{"type":"number","title":"Vph Change Percent"},"views_at_change":{"type":"integer","title":"Views At Change"},"hours_since_publish_at_change":{"type":"number","title":"Hours Since Publish At Change"},"old_r2_url":{"type":"string","title":"Old R2 Url","default":""},"new_r2_url":{"type":"string","title":"New R2 Url","default":""},"perceptual_distance":{"type":"integer","title":"Perceptual Distance","default":0},"old_title":{"type":"string","title":"Old Title","default":""},"new_title":{"type":"string","title":"New Title","default":""},"spike_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Spike Started At"},"days_to_spike":{"type":"number","title":"Days To Spike","default":-1},"peak_vph":{"type":"number","title":"Peak Vph","default":0},"days_to_peak":{"type":"number","title":"Days To Peak","default":-1}},"type":"object","required":["video_id","channel_id","channel_handle","channel_title","title","published_at","default_language","current_views","subscribers_count","change_type","changed_at","before_vph","after_vph","vph_change","vph_change_percent","views_at_change","hours_since_publish_at_change"],"title":"ChangeImpact","description":"A thumbnail or title change with measured VPH impact."},"ChannelPayload":{"properties":{"channel_id":{"type":"string","title":"Channel Id"},"channel_handle":{"type":"string","title":"Channel Handle"},"avatar_url":{"type":"string","title":"Avatar Url"},"avg_views":{"type":"number","title":"Avg Views"},"channel_context":{"type":"string","title":"Channel Context"},"has_long":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Long"},"has_short":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Short"},"median_views":{"type":"integer","title":"Median Views"},"subscribers_count":{"type":"integer","title":"Subscribers Count"},"thumbnail_quality":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Thumbnail Quality"},"videos_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Videos Count"},"last_4_videos":{"anyOf":[{"items":{"$ref":"#/components/schemas/QdrantVideoPoint"},"type":"array"},{"type":"null"}],"title":"Last 4 Videos"}},"type":"object","required":["channel_id","channel_handle","avatar_url","avg_views","channel_context","median_views","subscribers_count"],"title":"ChannelPayload"},"ContentType":{"type":"string","enum":["long","short","channel"],"title":"ContentType"},"Direction":{"type":"string","enum":["asc","desc"],"title":"Direction"},"FaceProfileGenerationSnapshot":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"photo_ids":{"items":{"type":"string"},"type":"array","maxItems":3,"minItems":1,"title":"Photo Ids"}},"type":"object","required":["profile_id","photo_ids"],"title":"FaceProfileGenerationSnapshot"},"FormatTimeSeriesPoint":{"properties":{"week":{"type":"string","title":"Week"},"video_count":{"type":"integer","title":"Video Count"},"total_views":{"type":"integer","title":"Total Views"},"avg_outlier_score":{"type":"number","title":"Avg Outlier Score"},"channel_count":{"type":"integer","title":"Channel Count"}},"type":"object","required":["week","video_count","total_views","avg_outlier_score","channel_count"],"title":"FormatTimeSeriesPoint"},"FormatTimeSeriesResponse":{"properties":{"format_id":{"type":"string","title":"Format Id"},"time_series":{"items":{"$ref":"#/components/schemas/FormatTimeSeriesPoint"},"type":"array","title":"Time Series"}},"type":"object","required":["format_id","time_series"],"title":"FormatTimeSeriesResponse"},"FormatVideoItem":{"properties":{"video_id":{"type":"string","title":"Video Id"},"title":{"type":"string","title":"Title"},"channel_handle":{"type":"string","title":"Channel Handle"},"channel_title":{"type":"string","title":"Channel Title"},"subscribers_count":{"type":"integer","title":"Subscribers Count"},"current_views":{"type":"integer","title":"Current Views"},"median_score":{"type":"number","title":"Median Score"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"cluster_confidence":{"type":"number","title":"Cluster Confidence"}},"type":"object","required":["video_id","title","channel_handle","channel_title","subscribers_count","current_views","median_score","published_at","cluster_confidence"],"title":"FormatVideoItem"},"GenerationConfig":{"properties":{"prompt_name":{"type":"string","title":"Prompt Name"},"prompt_label":{"items":{"type":"string"},"type":"array","title":"Prompt Label"},"prompt_version":{"type":"integer","title":"Prompt Version"},"model":{"type":"string","title":"Model","default":"1of10-gen-2.5"},"drawn_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drawn On"},"content_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Category"},"category_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Source"},"classifier_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classifier Version"},"podcast":{"anyOf":[{"$ref":"#/components/schemas/PodcastGenerationContext"},{"type":"null"}]},"category_evidence_surface":{"anyOf":[{"type":"string","const":"long"},{"type":"null"}],"title":"Category Evidence Surface"},"variations":{"type":"integer","title":"Variations","default":4},"images":{"anyOf":[{"items":{"$ref":"#/components/schemas/ImageInput"},"type":"array"},{"type":"null"}],"title":"Images"},"references":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"References"},"modes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modes"},"face_profile":{"anyOf":[{"$ref":"#/components/schemas/FaceProfileGenerationSnapshot"},{"type":"null"}]},"face_references_same_identity":{"type":"boolean","title":"Face References Same Identity","default":false},"reference_guidance_mode":{"anyOf":[{"type":"string","enum":["vision","vision_fallback"]},{"type":"null"}],"title":"Reference Guidance Mode"},"reference_guidance_strategy":{"anyOf":[{"type":"string","enum":["hybrid_map_only","visual_reference"]},{"type":"null"}],"title":"Reference Guidance Strategy"},"reference_guidance_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Guidance Model"},"reference_guidance_map_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Guidance Map Hash"},"reference_guidance_prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Guidance Prompt Name"},"reference_guidance_prompt_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reference Guidance Prompt Label"},"reference_guidance_prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference Guidance Prompt Version"},"variety_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variety Brief"},"variety_experimental":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Variety Experimental"},"aspect_ratio":{"anyOf":[{"type":"string","const":"1:1"},{"type":"null"}],"title":"Aspect Ratio"}},"type":"object","required":["prompt_name","prompt_label","prompt_version"],"title":"GenerationConfig"},"GenericStatus":{"type":"string","enum":["active","pending","error"],"title":"GenericStatus"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdeaGeneratorRequest":{"properties":{"topic":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Topic"},"channel_handle":{"type":"string","maxLength":100,"title":"Channel Handle"},"model":{"$ref":"#/components/schemas/ThumbnailGeneratorModel","default":"1of10-gen-3"},"titles_only":{"type":"boolean","title":"Titles Only","default":false}},"type":"object","required":["channel_handle"],"title":"IdeaGeneratorRequest"},"ImageInput":{"properties":{"url":{"type":"string","title":"Url"},"type":{"type":"string","enum":["face","asset","sketch","background"],"title":"Type","default":"asset"},"podcast_role":{"anyOf":[{"type":"string","enum":["host","guest"]},{"type":"null"}],"title":"Podcast Role"},"podcast_person":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":1.0},{"type":"null"}],"title":"Podcast Person"}},"type":"object","required":["url"],"title":"ImageInput"},"Lang":{"type":"string","enum":["en","es","fr","de"],"title":"Lang"},"LanguageFilter":{"type":"string","enum":["any","en","fr","es","de"],"title":"LanguageFilter"},"ManagedChannel":{"properties":{"managed_channel_id":{"type":"string","title":"Managed Channel Id"},"channel_handle":{"type":"string","title":"Channel Handle"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"channel_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Description"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated"},"subscribers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subscribers"},"number_of_videos":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Videos"},"channel_status":{"$ref":"#/components/schemas/GenericStatus","default":"pending"}},"type":"object","required":["channel_handle"],"title":"ManagedChannel"},"MessageResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"MessageResponse"},"OptimizeHistoryItem":{"properties":{"video":{"$ref":"#/components/schemas/BackCatalogHistoryVideo"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"suggestions":{"items":{"$ref":"#/components/schemas/OptimizeSuggestion"},"type":"array","title":"Suggestions"}},"type":"object","required":["video","created_at","suggestions"],"title":"OptimizeHistoryItem"},"OptimizeSession":{"properties":{"session_id":{"type":"string","title":"Session Id"},"video_id":{"type":"string","title":"Video Id"},"managed_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managed Channel Id"},"video_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Title"},"status":{"$ref":"#/components/schemas/GenericStatus"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"quantity":{"type":"integer","title":"Quantity","description":"How many suggestions the run was asked for.","default":4},"suggestions":{"items":{"$ref":"#/components/schemas/OptimizeSuggestion"},"type":"array","title":"Suggestions","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["session_id","video_id","status","created_at","updated_at"],"title":"OptimizeSession"},"OptimizeSuggestion":{"properties":{"suggestion_id":{"type":"string","title":"Suggestion Id"},"session_id":{"type":"string","title":"Session Id"},"result_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Title"},"result_thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Thumbnail Url"},"global_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Global Score"},"thumbnail_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Thumbnail Score"},"title_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Title Score"},"status":{"$ref":"#/components/schemas/GenericStatus","default":"pending"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"idea":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idea"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["session_id"],"title":"OptimizeSuggestion","description":"A suggestion as the public API returns it: the internal package record (the\nplan, the brief sent to the image model, provider jobs, the review) stays inside,\nin the response and in the documented schema."},"PaginatedResponse_list_OptimizeHistoryItem__int_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/OptimizeHistoryItem"},"type":"array","title":"Data"},"next_page_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Page Id"}},"type":"object","required":["data"],"title":"PaginatedResponse[list[OptimizeHistoryItem], int]"},"PodcastGenerationContext":{"properties":{"version":{"type":"integer","const":2,"title":"Version"},"text_mode":{"type":"string","enum":["auto","custom","off"],"title":"Text Mode"},"text":{"type":"string","maxLength":60,"title":"Text","default":""},"preparation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preparation Id"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"},"source":{"type":"string","enum":["manual","suggestion"],"title":"Source","default":"manual"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/PodcastTextEvidence"},{"type":"null"}]},"excluded_portrait_media_ids":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Excluded Portrait Media Ids"},"portrait_roles":{"additionalProperties":{"type":"string","enum":["host","guest"]},"type":"object","maxProperties":8,"title":"Portrait Roles"},"portrait_people":{"additionalProperties":{"type":"integer","maximum":3.0,"minimum":1.0},"type":"object","maxProperties":8,"title":"Portrait People"},"skip_episode_photos":{"type":"boolean","title":"Skip Episode Photos","default":false},"face_profile_role":{"anyOf":[{"type":"string","enum":["host","guest"]},{"type":"null"}],"title":"Face Profile Role"},"face_profile_person":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":1.0},{"type":"null"}],"title":"Face Profile Person"},"automatic_portrait_urls":{"items":{"type":"string"},"type":"array","title":"Automatic Portrait Urls"},"hook_options":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":150,"title":"Hook Options"},"preserve_source_text":{"type":"boolean","title":"Preserve Source Text","default":false},"host_excluded":{"type":"boolean","title":"Host Excluded","default":false},"episode_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Episode Seconds"},"source_video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Video Id"},"channel_host_rare":{"type":"boolean","title":"Channel Host Rare","default":false},"channel_host_always":{"type":"boolean","title":"Channel Host Always","default":false},"channel_text_style":{"anyOf":[{"type":"string","enum":["none","name","name_number"]},{"type":"null"}],"title":"Channel Text Style"},"channel_layout_varied":{"type":"boolean","title":"Channel Layout Varied","default":false},"plan_angle":{"type":"string","title":"Plan Angle","default":""},"plan_picture":{"type":"string","title":"Plan Picture","default":""},"plan_people":{"type":"string","title":"Plan People","default":""},"plan_small_text":{"type":"string","title":"Plan Small Text","default":""},"plan_quotation_marks":{"type":"boolean","title":"Plan Quotation Marks","default":false},"channel_style_card":{"type":"string","title":"Channel Style Card","default":""},"channel_people_outlined":{"type":"boolean","title":"Channel People Outlined","default":false},"plan_text_lines":{"items":{"type":"string"},"type":"array","title":"Plan Text Lines"},"channel_people_max":{"type":"integer","title":"Channel People Max","default":0},"plan_people_count":{"type":"integer","title":"Plan People Count","default":0},"plan_cohosts":{"type":"integer","title":"Plan Cohosts","default":0},"plan_variation":{"type":"string","title":"Plan Variation","default":""},"plan_highlight":{"type":"string","title":"Plan Highlight","default":""},"plan_experimental":{"type":"boolean","title":"Plan Experimental","default":false},"plan_group":{"type":"boolean","title":"Plan Group","default":false},"plan_no_host":{"type":"boolean","title":"Plan No Host","default":false},"plan_text_style":{"type":"string","title":"Plan Text Style","default":""}},"type":"object","required":["version","text_mode"],"title":"PodcastGenerationContext"},"PodcastTextEvidence":{"properties":{"segment_ids":{"items":{"type":"integer"},"type":"array","maxItems":8,"minItems":1,"title":"Segment Ids"},"excerpts":{"items":{"type":"string"},"type":"array","maxItems":8,"minItems":1,"title":"Excerpts"}},"type":"object","required":["segment_ids","excerpts"],"title":"PodcastTextEvidence"},"PublishedAtFilter":{"type":"string","enum":["week","month","3_months","6_months","year","2_years","all_time"],"title":"PublishedAtFilter"},"QdrantChannelPoint":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"string","format":"uuid"}],"title":"Id"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"payload":{"$ref":"#/components/schemas/ChannelPayload"}},"type":"object","required":["id","payload"],"title":"QdrantChannelPoint"},"QdrantVideoPoint":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"string","format":"uuid"}],"title":"Id"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"payload":{"$ref":"#/components/schemas/VideoPayload"}},"type":"object","required":["id","payload"],"title":"QdrantVideoPoint"},"SessionId":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"SessionId"},"SortBy":{"type":"string","enum":["median_score","published_at","views"],"title":"SortBy"},"ThumbnailEditorType":{"type":"string","enum":["thumbnail_edit","upscale","face_swap","selection_remove","selection_replace","adjust","crop","text_add","text_edit","text_variation","layers_apply"],"title":"ThumbnailEditorType"},"ThumbnailGeneratorMode":{"type":"string","enum":["no-text","faceless","minimalist","split-screen","dark-mood","varied-compositions"],"title":"ThumbnailGeneratorMode"},"ThumbnailGeneratorModel":{"type":"string","enum":["1of10-gen-1","1of10-gen-2","1of10-gen-2.5","1of10-gen-3"],"title":"ThumbnailGeneratorModel"},"ThumbnailGeneratorRequest":{"properties":{"channel_handle":{"type":"string","maxLength":100,"title":"Channel Handle"},"prompt":{"type":"string","maxLength":4000,"title":"Prompt"},"model":{"$ref":"#/components/schemas/ThumbnailGeneratorModel","default":"1of10-gen-3"},"modes":{"items":{"$ref":"#/components/schemas/ThumbnailGeneratorMode"},"type":"array","title":"Modes","default":[]},"images":{"anyOf":[{"items":{"$ref":"#/components/schemas/ImageInput"},"type":"array"},{"type":"null"}],"title":"Images"},"variations":{"type":"integer","enum":[2,4,8,12],"title":"Variations","default":4}},"type":"object","required":["channel_handle","prompt"],"title":"ThumbnailGeneratorRequest"},"ThumbnailGeneratorResultItem":{"properties":{"thumbnail_generator_result_item_id":{"type":"string","title":"Thumbnail Generator Result Item Id"},"thumbnail_generator_id":{"type":"string","title":"Thumbnail Generator Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"$ref":"#/components/schemas/GenericStatus","default":"pending"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"generation_config":{"anyOf":[{"$ref":"#/components/schemas/GenerationConfig"},{"type":"null"}]},"source_type":{"$ref":"#/components/schemas/ThumbnailGeneratorSourceType","default":"generated"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["thumbnail_generator_id"],"title":"ThumbnailGeneratorResultItem"},"ThumbnailGeneratorSourceType":{"type":"string","enum":["generated","uploaded"],"title":"ThumbnailGeneratorSourceType"},"ThumbnailGeneratorType":{"type":"string","enum":["thumbnail-generator","idea-generator"],"title":"ThumbnailGeneratorType"},"ThumbnailHistoryItem":{"properties":{"thumbnail_generator_result_item_id":{"type":"string","title":"Thumbnail Generator Result Item Id"},"thumbnail_generator_id":{"type":"string","title":"Thumbnail Generator Id"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"status":{"anyOf":[{"$ref":"#/components/schemas/GenericStatus"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"type":{"$ref":"#/components/schemas/ThumbnailGeneratorType"},"source_type":{"$ref":"#/components/schemas/ThumbnailGeneratorSourceType","default":"generated"},"format":{"type":"string","enum":["long","short"],"title":"Format","default":"long"},"aspect_ratio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aspect Ratio"},"managed_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managed Channel Id"},"channel_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Handle"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_edited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Edited At"},"last_modified_at":{"type":"string","format":"date-time","title":"Last Modified At"},"last_version_type":{"anyOf":[{"$ref":"#/components/schemas/ThumbnailEditorType"},{"type":"null"}]},"is_watermarked":{"type":"boolean","title":"Is Watermarked","default":false},"podcast":{"anyOf":[{"$ref":"#/components/schemas/PodcastGenerationContext"},{"type":"null"}]}},"type":"object","required":["thumbnail_generator_result_item_id","thumbnail_generator_id","type","managed_channel_id","created_at","last_modified_at"],"title":"ThumbnailHistoryItem"},"TitleByLang":{"properties":{"en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"En"},"es":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Es"},"fr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fr"},"de":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"De"}},"type":"object","title":"TitleByLang"},"TrackerChannel":{"properties":{"folder_id":{"type":"string","title":"Folder Id"},"channel":{"type":"string","maxLength":100,"title":"Channel"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"account_id":{"type":"string","title":"Account Id"},"is_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Available","default":true},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"},"channel_handle":{"type":"string","title":"Channel Handle","readOnly":true}},"type":"object","required":["channel","created_by_user_id","account_id","channel_handle"],"title":"TrackerChannel"},"TrackerFolder":{"properties":{"folder_id":{"type":"string","title":"Folder Id"},"folder_type":{"type":"string","enum":["long","short"],"title":"Folder Type"},"folder_name":{"type":"string","maxLength":100,"title":"Folder Name"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"account_id":{"type":"string","title":"Account Id"},"visibility":{"$ref":"#/components/schemas/Visibility","default":"private"},"enable_notifications":{"type":"boolean","title":"Enable Notifications","default":false},"channel_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Channel Count"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"}},"type":"object","required":["folder_type","folder_name","created_by_user_id","account_id"],"title":"TrackerFolder"},"TrackerWithChannels":{"properties":{"folder_id":{"type":"string","title":"Folder Id"},"folder_type":{"type":"string","enum":["long","short"],"title":"Folder Type"},"folder_name":{"type":"string","maxLength":100,"title":"Folder Name"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"account_id":{"type":"string","title":"Account Id"},"visibility":{"$ref":"#/components/schemas/Visibility","default":"private"},"enable_notifications":{"type":"boolean","title":"Enable Notifications","default":false},"channel_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Channel Count"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"},"channels":{"items":{"$ref":"#/components/schemas/TrackerChannel"},"type":"array","title":"Channels","default":[]}},"type":"object","required":["folder_type","folder_name","created_by_user_id","account_id"],"title":"TrackerWithChannels"},"TrendingFormat":{"properties":{"format_id":{"type":"string","title":"Format Id"},"format_name":{"type":"string","title":"Format Name"},"template":{"type":"string","title":"Template"},"description":{"type":"string","title":"Description"},"category":{"type":"string","title":"Category"},"trending_score":{"type":"number","title":"Trending Score"},"adoption_velocity":{"type":"number","title":"Adoption Velocity"},"median_outlier_score":{"type":"number","title":"Median Outlier Score"},"channel_count":{"type":"integer","title":"Channel Count"},"video_count":{"type":"integer","title":"Video Count"},"avg_views":{"type":"number","title":"Avg Views"},"success_rate":{"type":"number","title":"Success Rate","default":0},"trend_direction":{"type":"string","title":"Trend Direction"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_updated_at":{"type":"string","format":"date-time","title":"Last Updated At"},"example_videos":{"items":{"$ref":"#/components/schemas/TrendingFormatVideo"},"type":"array","title":"Example Videos"}},"type":"object","required":["format_id","format_name","template","description","category","trending_score","adoption_velocity","median_outlier_score","channel_count","video_count","avg_views","trend_direction","first_seen_at","last_updated_at","example_videos"],"title":"TrendingFormat"},"TrendingFormatVideo":{"properties":{"video_id":{"type":"string","title":"Video Id"},"title":{"type":"string","title":"Title"},"channel_handle":{"type":"string","title":"Channel Handle"},"channel_title":{"type":"string","title":"Channel Title"},"subscribers_count":{"type":"integer","title":"Subscribers Count"},"current_views":{"type":"integer","title":"Current Views"},"median_score":{"type":"number","title":"Median Score"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"match_score":{"type":"number","title":"Match Score","default":0.0}},"type":"object","required":["video_id","title","channel_handle","channel_title","subscribers_count","current_views","median_score","published_at"],"title":"TrendingFormatVideo"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoPayload":{"properties":{"channel_id":{"type":"string","title":"Channel Id"},"video_id":{"type":"string","title":"Video Id"},"video_url":{"type":"string","title":"Video Url"},"avatar_url":{"type":"string","title":"Avatar Url"},"channel_handle":{"type":"string","title":"Channel Handle"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"lang":{"items":{"$ref":"#/components/schemas/Lang"},"type":"array","title":"Lang","default":["en"]},"title":{"type":"string","title":"Title"},"title_by_langs":{"anyOf":[{"$ref":"#/components/schemas/TitleByLang"},{"type":"null"}]},"quality_global":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quality Global"},"video_duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Duration"},"avg_score":{"type":"number","title":"Avg Score"},"median_score":{"type":"number","title":"Median Score"},"subs_score":{"type":"number","title":"Subs Score"},"subscribers_count":{"type":"integer","title":"Subscribers Count"},"views":{"type":"integer","title":"Views"},"avg_views":{"type":"number","title":"Avg Views"},"median_views":{"type":"integer","title":"Median Views"},"published_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["channel_id","video_id","video_url","avatar_url","channel_handle","thumbnail_url","title","avg_score","median_score","subs_score","subscribers_count","views","avg_views","median_views"],"title":"VideoPayload"},"Visibility":{"type":"string","enum":["public","private","shared"],"title":"Visibility"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}