{"openapi":"3.1.0","info":{"title":"AOY Dashboard","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}},"/api/report-ready":{"get":{"summary":"Report Ready","description":"Is a hosted research report ACTUALLY filled in yet? (David 2026-07-30: the research\ncard said \"ready\" the moment we got the LINK, while the report's inner pages were still\ngenerating.) A report is a small shell page embedding <iframe> sub-reports; the scan\nuploads those inner pages as it finishes. Ready = shell 200 AND every iframe src 200\nwith real content behind it. Strictly limited to ai.theartofyt.com report pages.","operationId":"report_ready_api_report_ready_get","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string","default":"","title":"Url"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/thumb-image":{"get":{"summary":"Thumb Image","operationId":"thumb_image_api_thumb_image_get","parameters":[{"name":"u","in":"query","required":false,"schema":{"type":"string","default":"","title":"U"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile":{"get":{"summary":"Profile","description":"The caller's OWN channel + inferred niche. Frontend uses this to skip the\n'no channel' onboarding and label the real channel. Own subscriber/view\nnumbers stay Studio-gated (has_studio=false) until Google API approval.\n?channel=<UC> selects which production channel to show (the switcher).","operationId":"profile_api_profile_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding":{"get":{"summary":"Onboarding Get","description":"Server-authoritative onboarding state. Grandfathers any existing user (already\nhas a production channel) so a bug in the gate can NEVER lock out a paying user.","operationId":"onboarding_get_api_onboarding_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Onboarding Post","description":"Persist onboarding answers step-by-step. Body = {data:{...partial...}, completed?}.\nMerges into the stored jsonb so a refresh resumes exactly where they left off.","operationId":"onboarding_post_api_onboarding_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/outliers":{"get":{"summary":"Outliers","description":"Competitor videos massively overperforming THEIR OWN channel. Outlier ratio\n= video views / that channel's AVERAGE views (engine-computed avg_views over\nthe channel's recent uploads), per David. Falls back to views/subs only if a\nchannel has no avg_views yet. ?channel=<UC> scopes the board to one of the\ncaller's production channels (its own user_channel_id anchor).","operationId":"outliers_api_outliers_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/competitors":{"get":{"summary":"Competitors","description":"Competitor VIDEO cards (same shape as Outliers): one best video per ranked\nchannel. Honors the ignore rule - an ignored video is hidden, and a channel\nwith >= 2 ignored videos is hidden entirely (David's 2-strike rule).\n?channel=<UC> scopes the board to one of the caller's production channels.","operationId":"competitors_api_competitors_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ignore-video":{"post":{"summary":"Ignore Video","description":"Ignore one competitor video. Hides that video; the channel can still\nresurface with a NEW video. Two ignores on the same channel hide it for good\n(counted at read time in /api/competitors).","operationId":"ignore_video_api_ignore_video_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/unwatch":{"post":{"summary":"Unwatch","description":"Remove a channel from the user's watchlist (the rail 'Delete from watchlist').","operationId":"unwatch_api_unwatch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/new-competitors":{"get":{"summary":"New Competitors","description":"Day-17 'New Competitors Radar': channels NEW TO THE NICHE - born in the\nlast 5 weeks (dash_channels.yt_created_at, the channel's real YouTube\ncreation date) and already winning on this board. David 2026-08-06:\n\"компетиторы были типо кто новый появился, а не когда наш скан нашел\nвидос\" - it used to bucket by first_seen scan date, which just measured\nour own discovery. Tim's Still-safe / Heating-up / Time-to-pivot verdict\nand the 5-week trajectory ride the same counts.\n?channel=<UC> scopes the board to one of the caller's production channels.","operationId":"new_competitors_api_new_competitors_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports":{"get":{"summary":"Reports","description":"My Reports tab: every hosted report our MCP tools generated for this user.\nCanonical source is dash_reports (anything that produces an\nai.theartofyt.com/reports page logs a row). We also fold in dash_thumb_variants\nso thumbnail A/B results show up without separate logging.\n?channel=<UC> scopes the list to ONE production channel (David 2026-07-08: \"why\nare my notes shared between all channels?\" - reports carried no channel context\nat write time until now; each row's meta.channel_id anchors it, and a legacy row\nwith no anchor falls back to the caller's default channel - same anchor-with-\nfallback philosophy as the watchlist fix earlier today).","operationId":"reports_api_reports_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/thumb-lab":{"get":{"summary":"Thumb Lab","description":"Thumbs tab: the user's own videos from the LAST 14 DAYS, one per row, each\nwith its A/B 'Fresh angle' (ab_thumbnail) and 'Competitive bend' (clone_thumbnail)\nvariants if they've been generated (dash_thumb_variants). Own videos are public,\nso no Studio. The variant images are produced by a Claude/engine process (the\nweb server cannot call the MCP image tools) and stored as page_url/image_url.\n?channel=<UC> selects which production channel's videos to show.","operationId":"thumb_lab_api_thumb_lab_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/my-videos":{"get":{"summary":"My Videos","description":"The caller's OWN recent videos - PUBLIC data, no YouTube Studio needed. The\nThumbs tab uses these to A/B the user's own thumbnails. Reads dash_videos for\nthe own channel (role=own in dash_watch). ?channel=<UC> selects which\nproduction channel's videos to show.","operationId":"my_videos_api_my_videos_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ideas":{"get":{"summary":"Ideas","description":"Day-16 ideation feed: proven adjacent winners (the parents). Each becomes\na card with a thumbnail; the 5 bent angles come from the engine\n(dash_ideas.bends, recast into the active channel's own title format) -\nno live GPT call here anymore. Ideas the engine hasn't bent yet just show\nwith an empty bends list until the next scan backfills them.\n?channel=<UC> scopes the feed to one production channel via owner_channel_id\n(the connected channel whose scan produced each idea) - strict isolation, no\naccount-wide watchlist branch.","operationId":"ideas_api_ideas_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comment-ideas":{"get":{"summary":"Comment Ideas","description":"Video ideas the AUDIENCE asked for, mined from viewer comments.\n\nDavid + Andrey 2026-08-01: the strongest idea source in competing software\nis the comments - a viewer writing \"I wish you'd cover how those castles\nwere built\" has handed the creator a brief. The engine\n(scan-server/engine/comment_ideas.py) reads comments on the owner's OWN\nvideos and on the competitors THEY shortlisted into their watchlist, never\nthe whole discovered board, and stores what people actually asked for.\n\nA separate feed from /api/ideas on purpose. A dash_ideas card is a proven\nVIDEO the creator can bend, ranked by views. This is a TOPIC somebody\nrequested, and it ranks by DEMAND - how many people asked - then by the\nlikes on the strongest comment. Views would be the wrong axis: nobody has\nmade the video yet.\n\nSame isolation rule as every other channel tab: scoped strictly to the\nactive production channel via owner_channel_id, never blended across an\naccount's channels.","operationId":"comment_ideas_api_comment_ideas_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report-rename":{"post":{"summary":"Report Rename","description":"Give a report the user's own name (David 2026-08-05: \"so user can save\nand remember them\"). Body: {id, name}. Empty name clears it.\n\nStored in dash_reports.user_title (migration 038), and appended into\nsearch_text so the search box finds a report by what its owner calls it.\nOwnership: the row must match the caller's email or one of their keys -\nthe id alone is guessable.","operationId":"report_rename_api_report_rename_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report-delete":{"post":{"summary":"Report Delete","description":"Delete a report row for good (David 2026-08-07: a delete button on the\ncard with an in-place confirm). Body: {id}. Removes the dash_reports row -\nthe listing every surface reads - so it disappears from My Reports, the\nHome feed and search at once. Ownership: the SAME identity the list and\nrename use (_report_identity_ors) - the id alone is guessable.","operationId":"report_delete_api_report_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comment-idea-seen":{"post":{"summary":"Comment Idea Seen","description":"Mark one comment idea read, or star it. Body: {id, saved?: bool}.","operationId":"comment_idea_seen_api_comment_idea_seen_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/starter-board":{"get":{"summary":"Starter Board","description":"Instant starter board for brand-new users: proxies the scan-engine's\n/admin/starter-board (matches the caller's niche against our PROVEN nh_channels\nDB, sub-second, no scan/GPT) so a fresh dashboard is never empty while the real\nday-1 scans (~15 min) run. Falls back to a universal example channel when the\nengine finds no proven-niche match, so this endpoint itself never returns an\nempty channels list. David 2026-07-06 - the scan-engine side is already deployed;\nthis is the web-side proxy + never-blank guarantee.","operationId":"starter_board_api_starter_board_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bends":{"post":{"summary":"Bends","description":"Regenerate the 5 bent angles for one parent (used by the in-card retry).","operationId":"bends_api_bends_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-tim":{"post":{"summary":"Ask Tim","description":"Coach tab = the real Tim brain. Proxies to the AOY public Ask-Tim endpoint\n(the same one the university hub uses), forwarding the caller's token so Tim\nanswers grounded in his coaching bible and the daily cap attributes correctly.","operationId":"ask_tim_api_ask_tim_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/channel-identity":{"get":{"summary":"Channel Identity","operationId":"channel_identity_api_channel_identity_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Channel Identity Correct","operationId":"channel_identity_correct_api_channel_identity_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scan-status":{"get":{"summary":"Scan Status","description":"Status of ONE scan, for the re-tune watcher on the identity popup.\n\nDeliberately tiny: the front end polls this every ~12s while the pill\nspins, so it must stay one indexed select. Scoped to the caller's keys -\na scan id is guessable, so ownership comes from the key filter, never\nfrom trusting the id.","operationId":"scan_status_api_scan_status_get","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","title":"Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/idea-like":{"post":{"summary":"Idea Like","description":"Star / unstar an idea. A starred idea pins to the top of the tab until\nthe user unstars it - it is never pushed out by newer finds.","operationId":"idea_like_api_idea_like_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/competitors/search-more":{"post":{"summary":"Ideas Search More","description":"One extra idea hunt per channel per day, on request.\n\nQueues a real scan (the same pipeline the daily cadence uses) rather than\nfaking a refresh, so the new ideas are judged by every normal gate. The\nquota is per caller + channel + day, read back from dash_scans.","operationId":"ideas_search_more_api_competitors_search_more_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ideas/search-more":{"post":{"summary":"Ideas Search More","description":"One extra idea hunt per channel per day, on request.\n\nQueues a real scan (the same pipeline the daily cadence uses) rather than\nfaking a refresh, so the new ideas are judged by every normal gate. The\nquota is per caller + channel + day, read back from dash_scans.","operationId":"ideas_search_more_api_ideas_search_more_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/channel-videos":{"get":{"summary":"Channel Videos","description":"A channel's MOST-VIEWED videos, for any channel on the caller's boards.\n\nBacks \"Views by format\" on CONNECTED channels the user does not own\n(David 2026-07-25). The client tags each title with the same _guessFormat\nit already uses for the own-channel donut, so both surfaces stay\nconsistent and the user's manual overrides keep working.\n\nThe engine does the fetching (it owns the proxy + IP budget): a live\nPopular-chip call verifies the top ~30, topped up from everything else\nstored for that channel, capped at `limit`. Cached 14 days engine-side.","operationId":"channel_videos_api_channel_videos_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/niche-chips":{"get":{"summary":"Niche Chips","description":"The ENGINE's curated Research lanes for the active channel\n(dash_niche_suggestions): ranks 1-2 are the dossier's CORE subjects, the\nrest merged from competitor labels (David's frozen decision 13).\n\nWhy this endpoint exists (root cause found 2026-07-25): the Research tab\nderived its niche cards CLIENT-SIDE by counting raw per-competitor niche\nlabels, so the curated set was written by every scan and never displayed.\nThat is why @AgentFlappy showed \"World War II analysis\" instead of its\nrank-1 \"US Presidents Explained\", and why a stray label like \"Military\nGaming\" could become a lane. Chips are stored per (aoy_key, channel) and a\nuser only ever sees their own key's set.","operationId":"niche_chips_api_niche_chips_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suggestions":{"get":{"summary":"Suggestions","operationId":"suggestions_api_suggestions_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/watchlist":{"get":{"summary":"Watchlist","operationId":"watchlist_api_watchlist_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/watchlist-uploads":{"get":{"summary":"Watchlist Uploads","description":"Flat 'what did my tracked competitors recently upload' feed, newest first - the\nCompetitor-uploads table. Reads dash_VIDEOS (the full catalogue), not the sparse\ndash_uploads, so it actually shows the videos they posted + view counts (David\n2026-06-24: \"go back in time and find the videos they posted, why is it empty\").","operationId":"watchlist_uploads_api_watchlist_uploads_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/action-steps":{"get":{"summary":"Action Steps List","operationId":"action_steps_list_api_action_steps_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Action Steps Upsert","operationId":"action_steps_upsert_api_action_steps_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/action-steps/remove":{"post":{"summary":"Action Steps Remove","operationId":"action_steps_remove_api_action_steps_remove_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pnl":{"get":{"summary":"Pnl Get","operationId":"pnl_get_api_pnl_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Pnl Set","operationId":"pnl_set_api_pnl_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tim-feed":{"get":{"summary":"Tim Feed","description":"Tim's latest YouTube video(s) + X post(s) for the Home feed's native cards.","operationId":"tim_feed_api_tim_feed_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proven-niches-sample":{"get":{"summary":"Proven Niches Sample","description":"A handful of recently-added Proven Niches channels, for the Home feed's\n'1 in 10' native cards (David 2026-06-25). Reads nh_channels (the proven-niches\nlibrary). Public-ish library data, but still behind auth like every feed.","operationId":"proven_niches_sample_api_proven_niches_sample_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/watchlist-graph":{"get":{"summary":"Watchlist Graph","description":"Daily VIEWS history for the caller's WATCHED competitors (Social Blade,\ncached), scoped to the active channel's lane. Excludes the user's own channels\nand enriches avatars from the ranked pool so the graph shows real logos.","operationId":"watchlist_graph_api_watchlist_graph_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/channel-uploads":{"get":{"summary":"Channel Uploads","operationId":"channel_uploads_api_channel_uploads_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/watch":{"post":{"summary":"Watch","operationId":"watch_api_watch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nh/admin":{"get":{"summary":"Nh Admin","description":"Does this viewer get the delete button? The embed asks before drawing it.","operationId":"nh_admin_api_nh_admin_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nh/remove":{"post":{"summary":"Nh Remove","operationId":"nh_remove_api_nh_remove_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nh/restore":{"post":{"summary":"Nh Restore","description":"Undo: puts the rows back exactly as they were and lifts the block.","operationId":"nh_restore_api_nh_restore_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/add-channel":{"post":{"summary":"Add Channel","description":"Add a channel the user wants to COPY / research (a production channel) by\nhandle or URL - NO YouTube login. Registers it role='copy' under the caller's\nkey and kicks the engine to analyse it, so its outliers / competitors / ideas\nflow into the feeds. (YouTube Studio login is a SEPARATE thing, only for the\nuser's OWN private numbers.)","operationId":"add_channel_api_add_channel_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nh-channels":{"get":{"summary":"Nh Channels","description":"Niche Hunter channel database (nh_channels - same Supabase project). Read-only,\nNICHE-first browse of the proven-channel library. Top 300 by subscribers; the\nfrontend filters by niche/name client-side. JWT-gated, no scan cost.","operationId":"nh_channels_api_nh_channels_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/channels":{"get":{"summary":"Channels","description":"The caller's PRODUCTION channels (own + copy) for the top-bar switcher.\nWatchlist competitors (role=watched) are not here - they live in the rail.\n\nGoes through _production_channels rather than querying dash_watch itself, so the\nswitcher shows the SAME set every other read is scoped to. It used to run its own\nquery, which is why the demo board could be readable on every endpoint and still\nhave no tab to reach it from (David 2026-08-06: two connected channels from the\nstart). Users provisioned a real Paint Explainer kit carry it as a genuine row and\n_production_channels adds nothing on top of it.","operationId":"channels_api_channels_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/remove-channel":{"post":{"summary":"Remove Channel","description":"Remove a channel from the top-bar switcher (David 2026-07-08: \"add a delete\nbutton... delete this channel from dashboard\"). Deletes the dash_watch row for\nthe given channel_id whether it's a COPY (the lightweight ✕) or the caller's OWN\nidentity channel (David 2026-07-25: \"Log out\" of your own channel had no path -\nrole=own was protected here, so an identity-only own channel could never be\nremoved). Deletion is by EXACT channel_id, so a copy-✕ still only ever matches its\nown copy row. The client's own-channel \"Log out\" additionally calls\n/api/youtube/disconnect first when the channel was OAuth-linked (that clears the\ntoken + P&L/ledger data a copy channel never has).","operationId":"remove_channel_api_remove_channel_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mark-seen":{"post":{"summary":"Mark Seen","operationId":"mark_seen_api_mark_seen_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/research":{"post":{"summary":"Research","description":"Run one research tool and return the hosted report URL for the Research\ntab to embed. Paid-gated. kind = hunt | full_picture | opportunities.","operationId":"research_api_research_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate-thumb":{"post":{"summary":"Generate Thumb","description":"Actually generate a thumbnail (David 2026-06-24: \"add a generate button that\nworks\"). mode='fresh' -> AOY_Program_ab_thumbnail (a fresh A/B angle of the\nuser's own thumbnail); mode='bend' -> AOY_Program_clone_thumbnail (Gemini restyle\non the user's subject). Returns the hosted report URL (image renders in ~40s).\nPaid-gated + rate-limited (costs an image/credit).","operationId":"generate_thumb_api_generate_thumb_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/youtube/start":{"get":{"summary":"Youtube Start","description":"Return the Google consent URL for the signed-in user (the button then\nredirects the browser there). `channel` (optional): the copy-channel page this was\nclicked from, so the callback can detect a different-channel connect (David 2026-07-08).","operationId":"youtube_start_oauth_youtube_start_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/youtube/callback":{"get":{"summary":"Youtube Callback","description":"Google redirects the browser here. Verify state, swap code for tokens,\nstore them, and bounce back to the My Channel tab.","operationId":"youtube_callback_oauth_youtube_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/youtube/status":{"get":{"summary":"Youtube Status","operationId":"youtube_status_api_youtube_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/youtube/stats":{"get":{"summary":"Youtube Stats","description":"The caller's OWN YouTube Analytics (totals + per-day series). Range = either\nthe last `days`, OR an explicit `start`/`end` (YYYY-MM-DD) for the YouTube-Studio\ndate menu (months / years / custom — David 2026-06-24). `channel`=UC... picks the\nconnected channel; default = most-recent.","operationId":"youtube_stats_api_youtube_stats_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":28,"title":"Days"}},{"name":"start","in":"query","required":false,"schema":{"type":"string","default":"","title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"type":"string","default":"","title":"End"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/youtube/last-video":{"get":{"summary":"Youtube Last Video","description":"The caller's most-recent upload + its day-by-day views since publish.\nNOTE: YouTube Analytics has no finer grain than 'day' (no hourly), and no\nrevenue without the monetary scope - so this is per-day views only. Powers the\nHome 'Your last video' widget + the My Channel performance graph.","operationId":"youtube_last_video_api_youtube_last_video_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/youtube/disconnect":{"post":{"summary":"Youtube Disconnect","description":"Log out / disconnect a connected YouTube channel: best-effort revoke the\nOAuth grant at Google, then delete the stored token row(s). Body:\n{channel_id?} — omit to disconnect ALL the caller's connected channels.","operationId":"youtube_disconnect_api_youtube_disconnect_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/youtube/videos-advanced":{"get":{"summary":"Youtube Videos Advanced","description":"The caller's OWN videos with the deep per-video metrics YouTube Studio\nburies (retention %, avg view duration, watch time, subscribers driven,\nengagement) — the 'Advanced Studio' mirror (Tim 2026-06-22). One Analytics\ncall across all video ids, merged with Data-API lifetime stats.\n\nNOTE: impressions & impressions-CTR are NOT exposed by the YouTube Analytics\nAPI (Studio-only) — we never fabricate them; the UI says so.","operationId":"youtube_videos_advanced_api_youtube_videos_advanced_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/sops":{"get":{"summary":"Course Sops","operationId":"course_sops_api_course_sops_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course":{"get":{"summary":"Course Index","description":"The Course tab's index: the FULL library (David 2026-09-10 \"это тоже\nдолжно быть там\" - all 6 courses, not just aoy-program) + modules + a\nLIGHT lesson list (no blocks - a lesson's full body ships from\n/api/course/lesson) + the caller's progress and last-opened lesson.\nTwo independent locks:\n- PREMIUM courses (the university's LOCKED_COURSE_IDS): open only to\n  aoy_full/expert tiers, everyone else sees the unlock screen;\n- the ONBOARDING lock (migration 045) applies to aoy-program's modules.","operationId":"course_index_api_course_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/lesson":{"get":{"summary":"Course Lesson","operationId":"course_lesson_api_course_lesson_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/progress":{"post":{"summary":"Course Progress","operationId":"course_progress_api_course_progress_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/form":{"post":{"summary":"Course Form","description":"A 'form' block answer (ONBOARDING_FORMS_SPEC.md). The client sends only\n{lesson_id, question_key, option_key}; value_num and value_text come from\nthe block definition in aoy_lessons - the score cannot be forged.\nAPPEND-ONLY by agreement with moving_notion + Team AOY Client OS\n(2026-09-10): every answer is a NEW row, readers take the latest per\n(email, question_key) - the stuck-then-all_clear history is the CX\nsignal, and the table has no unique key beyond id anyway.\nA free-text `comment` may ride along (Dana 2026-09-14 wanted a comment box\nunder the onboarding rating). It lands as its OWN row under\n`<question_key>_comment`, kind='form', value_text=the text - so anything\naggregating the rating by option_key is untouched by it.","operationId":"course_form_api_course_form_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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"}}}}