{"openapi":"3.1.0","info":{"title":"lulubanana API","version":"2.0.0","description":"Short-form video research: agents, outliers, hooks, trends, tracking, search intelligence and the Fusion Engine. Same credits and prices as the app; reads are free. Current version: v2. Every version listed under servers runs the same operations."},"servers":[{"url":"https://lulubanana.com/api/v2","description":"v2 (current)"},{"url":"https://lulubanana.com/api/v1","description":"v1 (same operations; kept working)"}],"components":{"securitySchemes":{"key":{"type":"http","scheme":"bearer","description":"An API key from Settings → API (lb_…)"}}},"security":[{"key":[]}],"paths":{"/account":{"get":{"summary":"Plan, status and credit balance.","operationId":"get_account","parameters":[],"x-credits":0,"tags":["account"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/pricing":{"get":{"summary":"Credit price of every action (the same as in the app).","operationId":"get_pricing","parameters":[],"x-credits":0,"tags":["pricing"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/usage":{"get":{"summary":"Credit ledger and 30-day totals. ?limit=1–200","operationId":"get_usage","parameters":[{"name":"limit","in":"query","required":false,"description":"Rows of the credit ledger, 1-200 (default 50)","schema":{"type":"string"}}],"x-credits":0,"tags":["usage"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents":{"get":{"summary":"Your research agents with their last run.","operationId":"get_agents","parameters":[],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"post":{"summary":"Create an agent and start its first run. Body: {name, brief, terms[3–10], excludes[], platforms[\"tt\",\"yt\",\"ig\"], cadence \"once|daily|weekly|monthly\", en_only, autopilot}.","operationId":"post_agents","parameters":[],"x-credits":100,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Agent name"},"brief":{"type":"string","description":"What you want to learn about the niche"},"terms":{"type":"array","description":"3-10 search terms","items":{"type":"string"}},"excludes":{"type":"array","description":"Words that mark a video as off-topic","items":{"type":"string"}},"platforms":{"type":"array","description":"Platforms to search (default all three)","items":{"type":"string","enum":["tt","yt","ig"]}},"cadence":{"type":"string","description":"once, daily, weekly or monthly (default once)","enum":["once","daily","weekly","monthly"]},"en_only":{"type":"boolean","description":"Keep only English videos (default true)"},"autopilot":{"type":"boolean","description":"Let the agent replace weak search terms and add timely keywords (default false)"}},"required":["name","brief","terms"]}}}}}},"/agents/plan":{"post":{"summary":"Turn one sentence into a plan (name, search terms, words to filter out). Body: {brief}. Read the plan from GET /jobs/{job_id}.","operationId":"post_agents_plan","parameters":[],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brief":{"type":"string","description":"One sentence about the niche, 15-500 characters"},"en_only":{"type":"boolean","description":"Keep only English videos (default true)"}},"required":["brief"]}}}}}},"/agents/{id}":{"get":{"summary":"One agent, with the done signal: finalized (true once the run and its AI report have stopped), stage, progress_pct, eta_seconds and pending_jobs (each with poll_url and retry_after_seconds). Null fields before finalized mean \"not ready\", not \"nothing found\". latest_run_status \"failed\" means finished but no results.","operationId":"get_agents_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"patch":{"summary":"Change name, terms, excludes, platforms, cadence, en_only, autopilot or status (\"active\" | \"paused\").","operationId":"patch_agents_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New name"},"brief":{"type":"string","description":"New brief"},"terms":{"type":"array","description":"3-10 search terms","items":{"type":"string"}},"excludes":{"type":"array","description":"Off-topic words","items":{"type":"string"}},"platforms":{"type":"array","description":"Platforms to search","items":{"type":"string","enum":["tt","yt","ig"]}},"cadence":{"type":"string","description":"once, daily, weekly or monthly","enum":["once","daily","weekly","monthly"]},"en_only":{"type":"boolean","description":"Keep only English videos"},"autopilot":{"type":"boolean","description":"Autopilot on or off"},"status":{"type":"string","description":"\"active\" or \"paused\"","enum":["active","paused"]}}}}}}},"delete":{"summary":"Delete an agent and its results.","operationId":"delete_agents_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/run":{"post":{"summary":"Start a research run now. If one is already queued or running you get its job back and pay nothing.","operationId":"post_agents_id_run","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":100,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/agents/{id}/runs":{"get":{"summary":"The last 30 runs with results and credits charged.","operationId":"get_agents_id_runs","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/videos":{"get":{"summary":"Scored videos with hook, hook type, format, length, creator baseline and platform_percentile (rank by views among the same platform here). Filters: ?limit=1–200&min_score=35&min_views=&platform=tt|yt|ig&start_date=&end_date=YYYY-MM-DD&region=US&order_by=score|views|date|reach|platform_percentile&include_transcript=true","operationId":"get_agents_id_videos","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-200 (default 50)","schema":{"type":"string"}},{"name":"min_score","in":"query","required":false,"description":"Lowest virality score, e.g. 35 for outliers","schema":{"type":"string"}},{"name":"min_views","in":"query","required":false,"description":"Lowest view count","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}},{"name":"start_date","in":"query","required":false,"description":"Posted on or after, YYYY-MM-DD","schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"description":"Posted on or before, YYYY-MM-DD","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Two-letter country code, e.g. US","schema":{"type":"string"}},{"name":"order_by","in":"query","required":false,"description":"score (default), views, date, reach or platform_percentile","schema":{"type":"string","enum":["score","views","date","reach","platform_percentile"]}},{"name":"include_transcript","in":"query","required":false,"description":"\"true\" adds the spoken words where known","schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/summary":{"get":{"summary":"Everything about an agent in one call: last run, counts, per-platform benchmarks, top 10 organic outliers, winners against the rest, live trends, the AI report and breaking events. Start here.","operationId":"get_agents_id_summary","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/report":{"get":{"summary":"The AI report for the latest run (or ?run_id=): key_highlight, themes (why_it_works, tactics, confidence 0-1, evidence_ids), content ideas from viewers' comments, and the sample behind it. Numbers are computed; quote evidence ids.","operationId":"get_agents_id_report","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"run_id","in":"query","required":false,"description":"A past run id (default: the latest report)","schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/events":{"get":{"summary":"Breaking events in the niche: a phrase several creators started using in the last 4 days. Title, summary, salience 0-10, the timely keywords autopilot added for 7 days, and evidence videos.","operationId":"get_agents_id_events","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/activity":{"get":{"summary":"What autopilot changed and why: replaced search terms, timely keywords from breaking events, weak-term reviews.","operationId":"get_agents_id_activity","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/winners":{"get":{"summary":"What separates winners: share of each hook type and format in the top quarter of videos by virality score against the bottom quarter (lift in points).","operationId":"get_agents_id_winners","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/compare":{"get":{"summary":"What changed since the previous run: headline numbers, new and dropped videos, the biggest view gains.","operationId":"get_agents_id_compare","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/hooks":{"get":{"summary":"Search the opening lines of this agent's videos. ?q=phrase. Tiers: exact, contains, similar; usage_count = videos opening with the same hook.","operationId":"get_agents_id_hooks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"A phrase to look for in opening lines","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 30)","schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/videos/{id}/insight":{"get":{"summary":"What set one video apart: key findings in plain sentences plus the numbers behind them.","operationId":"get_videos_id_insight","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/playbook":{"get":{"summary":"Hook types and formats ranked by median Virality Score.","operationId":"get_agents_id_playbook","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/trends":{"get":{"summary":"Content trends found in this agent's niche.","operationId":"get_agents_id_trends","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/trends":{"get":{"summary":"Trends across your agents. ?kind=content|topic&agent={id}","operationId":"get_trends","parameters":[{"name":"kind","in":"query","required":false,"description":"content (default) or topic","schema":{"type":"string","enum":["content","topic"]}},{"name":"agent","in":"query","required":false,"description":"Only this agent id","schema":{"type":"string"}}],"x-credits":0,"tags":["trends"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/topics":{"get":{"summary":"Topic trends by region. ?region=GL|US|GB|CA|AU&sort=top|active","operationId":"get_topics","parameters":[],"x-credits":0,"tags":["topics"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/sounds":{"get":{"summary":"Trending TikTok sounds: videos using each one now and gained this week, and how many of your videos use it.","operationId":"get_sounds","parameters":[],"x-credits":0,"tags":["sounds"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/tracking/creators":{"get":{"summary":"Creators you track, with their usual views and breakouts.","operationId":"get_tracking_creators","parameters":[],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"post":{"summary":"Start tracking a creator. Body: {platform \"tt\"|\"yt\", handle}. Charged at each daily check, starting with the first.","operationId":"post_tracking_creators","parameters":[],"x-credits":15,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","description":"tt or yt","enum":["tt","yt"]},"handle":{"type":"string","description":"The creator handle, without @"}},"required":["platform","handle"]}}}}}},"/tracking/creators/{platform}/{handle}":{"delete":{"summary":"Stop tracking a creator.","operationId":"delete_tracking_creators_platform_handle","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"get":{"summary":"A tracked creator: followers, usual views (median of recent posts), breakouts and the latest posts against their usual views.","operationId":"get_tracking_creators_platform_handle","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/tracking/videos":{"get":{"summary":"Videos you track, with daily view counts.","operationId":"get_tracking_videos","parameters":[],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"post":{"summary":"Start tracking a video. Body: {video_id} from your results, or {url} of a TikTok video. Charged at each daily check, starting with the first.","operationId":"post_tracking_videos","parameters":[],"x-credits":10,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"video_id":{"type":"string","description":"A video id from your results (or send url)"},"url":{"type":"string","description":"A TikTok video link (or send video_id)"}}}}}}}},"/tracking/videos/{id}":{"delete":{"summary":"Stop tracking a video.","operationId":"delete_tracking_videos_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"get":{"summary":"A tracked video with its latest numbers and views gained per hour between checks (needs two checks).","operationId":"get_tracking_videos_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/jobs/{id}":{"get":{"summary":"Progress and result of a run or a plan. Poll every 15 seconds until finalized is true (for a run: the run and its AI report are both done). status \"failed\" means finished without results; a failed run is refunded.","operationId":"get_jobs_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["jobs"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/hooks/types":{"get":{"summary":"The hook taxonomy with how each type performs across every analysed video: median Virality Score, lift against the typical video, outlier rate (score 35+). Sponsored posts left out.","operationId":"get_hooks_types","parameters":[],"x-credits":0,"tags":["hooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/hooks/trending":{"get":{"summary":"Top-performing opening lines across every analysed video, best Virality Score first; usage_count = videos opening the same way. Sponsored posts left out.","operationId":"get_hooks_trending","parameters":[{"name":"days","in":"query","required":false,"description":"Look back 1-90 days (default 30)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}},{"name":"hook_type","in":"query","required":false,"description":"Only this hook type (see /hooks/types)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 30)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["hooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/hooks/search":{"get":{"summary":"Search opening lines across every analysed video (all words must appear). Tiers: exact, contains, similar; best Virality Score first.","operationId":"get_hooks_search","parameters":[{"name":"q","in":"query","required":false,"description":"Words that must appear in the opening line","schema":{"type":"string"}},{"name":"hook_type","in":"query","required":false,"description":"Only this hook type","schema":{"type":"string"}},{"name":"mechanism","in":"query","required":false,"description":"Only hooks using this mechanism (see /hooks/mechanisms)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}},{"name":"days","in":"query","required":false,"description":"Only videos from the last N days","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 30)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["hooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/videos/digest":{"get":{"summary":"Strongest videos first seen or posted in the last 24-48 hours across everything collected, best Virality Score first. Sponsored posts left out.","operationId":"get_videos_digest","parameters":[{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}},{"name":"hours","in":"query","required":false,"description":"Window, 24-168 hours (default 48)","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Two-letter country code","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/tiktok/videos/digest":{"get":{"summary":"Strongest TikTok videos of the last 24-48 hours.","operationId":"get_tiktok_videos_digest","parameters":[{"name":"hours","in":"query","required":false,"description":"Window, 24-168 hours (default 48)","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Two-letter country code","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["tiktok"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/youtube/videos/digest":{"get":{"summary":"Strongest YouTube Shorts of the last 24-48 hours.","operationId":"get_youtube_videos_digest","parameters":[{"name":"hours","in":"query","required":false,"description":"Window, 24-168 hours (default 48)","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Two-letter country code","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["youtube"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/instagram/videos/digest":{"get":{"summary":"Strongest Instagram Reels of the last 24-48 hours.","operationId":"get_instagram_videos_digest","parameters":[{"name":"hours","in":"query","required":false,"description":"Window, 24-168 hours (default 48)","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Two-letter country code","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["instagram"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/search/videos":{"post":{"summary":"Search every video collected so far (scope \"library\") or only your agents' videos (scope \"mine\"): keywords in caption, hook, transcript or handle, plus platform, type, language, dates, views, score, follower range and creator-relative outlier ratio. coverage_status says ok, thin or not_collected (start research). Sponsored posts left out unless exclude_sponsored is false.","operationId":"post_search_videos","parameters":[],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Words to find (all must appear)"},"scope":{"type":"string","description":"library (default, everything collected) or mine (your agents)","enum":["library","mine"]},"platforms":{"type":"array","description":"Any of tt, yt, ig","items":{"type":"string","enum":["tt","yt","ig"]}},"kind":{"type":"string","description":"video or slideshow","enum":["video","slideshow"]},"language":{"type":"string","description":"Language code, e.g. en"},"start_date":{"type":"string","description":"Posted on or after, YYYY-MM-DD"},"end_date":{"type":"string","description":"Posted on or before, YYYY-MM-DD"},"min_views":{"type":"number","description":"Lowest views"},"min_score":{"type":"number","description":"Lowest Virality Score, e.g. 35"},"min_followers":{"type":"number","description":"Smallest creator"},"max_followers":{"type":"number","description":"Biggest creator"},"min_outlier_ratio":{"type":"number","description":"Lowest views ÷ creator median views, e.g. 3"},"min_baseline_posts":{"type":"number","description":"Creator baseline must include at least this many posts, e.g. 10"},"semantic":{"type":"boolean","description":"true: search by meaning (similar topics in other words), using caption+hook vectors; falls back to keywords if the meaning service is busy"},"min_similarity":{"type":"number","description":"Meaning search: lowest similarity 0.3-0.95 (default 0.6)"},"exclude_sponsored":{"type":"boolean","description":"Leave out sponsored posts (default true)"},"order_by":{"type":"string","description":"score (default), views, date or outlier_ratio","enum":["score","views","date","outlier_ratio"]},"limit":{"type":"number","description":"1-50 (default 25)"},"cursor":{"type":"string","description":"next_cursor from the previous page"}}}}}}}},"/search/creators":{"post":{"summary":"Find creators among everything collected: keywords in their captions or handle, platform, follower range, median views (creators with a checked baseline) and number of outliers (score 35+). Most outliers first.","operationId":"post_search_creators","parameters":[],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Words in their captions or handle"},"platforms":{"type":"array","description":"Any of tt, yt, ig","items":{"type":"string","enum":["tt","yt","ig"]}},"min_followers":{"type":"number","description":"Smallest"},"max_followers":{"type":"number","description":"Biggest"},"min_median_views":{"type":"number","description":"Lowest usual views (needs a checked baseline)"},"min_outliers":{"type":"number","description":"At least this many videos scoring 35+"},"limit":{"type":"number","description":"1-50 (default 25)"},"cursor":{"type":"string","description":"next_cursor from the previous page"}}}}}}}},"/hashtags":{"get":{"summary":"Hashtags across every collected video in the window: videos, creators, views, median Virality Score, lift against the typical video, outlier rate. generic=true marks tags like #fyp.","operationId":"get_hashtags","parameters":[{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}},{"name":"days","in":"query","required":false,"description":"Look back 1-90 days (default 30)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-200 (default 50)","schema":{"type":"string"}}],"x-credits":0,"tags":["hashtags"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/tiktok/hashtags":{"get":{"summary":"Top TikTok hashtags: TikTok Creative Center's daily top 100 for the country (rank, posts, views, 7-day curve), or our collected videos when that country has no list.","operationId":"get_tiktok_hashtags","parameters":[{"name":"country","in":"query","required":false,"description":"Two-letter country code (default US)","schema":{"type":"string"}},{"name":"days","in":"query","required":false,"description":"Look back 1-90 days (default 30)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-200 (default 50)","schema":{"type":"string"}}],"x-credits":0,"tags":["tiktok"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/youtube/hashtags":{"get":{"summary":"Hashtags on collected YouTube Shorts with their performance.","operationId":"get_youtube_hashtags","parameters":[{"name":"days","in":"query","required":false,"description":"Look back 1-90 days (default 30)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-200 (default 50)","schema":{"type":"string"}}],"x-credits":0,"tags":["youtube"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/instagram/hashtags":{"get":{"summary":"Hashtags on collected Instagram Reels with their performance.","operationId":"get_instagram_hashtags","parameters":[{"name":"days","in":"query","required":false,"description":"Look back 1-90 days (default 30)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-200 (default 50)","schema":{"type":"string"}}],"x-credits":0,"tags":["instagram"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/hashtags/{hashtag}/performance":{"get":{"summary":"One hashtag: TikTok's total videos and views (when checked), its daily Creative Center rank by country, and how it performs in collected videos with the top 10.","operationId":"get_hashtags_hashtag_performance","parameters":[{"name":"hashtag","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"description":"Collected videos from the last N days, 1-365 (default 90)","schema":{"type":"string"}}],"x-credits":0,"tags":["hashtags"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/topic-trends/regions":{"get":{"summary":"Regions Topic Trends cover.","operationId":"get_topic_trends_regions","parameters":[],"x-credits":0,"tags":["topic-trends"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/topic-trends/today":{"get":{"summary":"Today's topics people talk about in a region (shows, games, people, sports, news), rebuilt every 4 hours, with reach, momentum, outlier Shorts and TikTok videos and reach readings.","operationId":"get_topic_trends_today","parameters":[{"name":"region","in":"query","required":false,"description":"GL (default), US, GB, CA or AU","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"description":"top (default) or active","schema":{"type":"string","enum":["top","active"]}}],"x-credits":0,"tags":["topic-trends"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/topic-trends/emerging":{"get":{"summary":"Topics first seen in the last day or growing 20%+ since the reading 18 hours earlier, fastest first.","operationId":"get_topic_trends_emerging","parameters":[{"name":"region","in":"query","required":false,"description":"GL (default), US, GB, CA or AU","schema":{"type":"string"}}],"x-credits":0,"tags":["topic-trends"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/topic-trends":{"get":{"summary":"Topics active in a region between two dates (default the last 7 days), biggest first.","operationId":"get_topic_trends","parameters":[{"name":"region","in":"query","required":false,"description":"GL (default), US, GB, CA or AU","schema":{"type":"string"}},{"name":"start_date","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"description":"YYYY-MM-DD","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-200 (default 50)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["topic-trends"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/sounds/trending":{"get":{"summary":"Trending TikTok sounds with videos using each one now, gained this week, and how many of your videos use it (same as /sounds).","operationId":"get_sounds_trending","parameters":[],"x-credits":0,"tags":["sounds"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/sounds/breakout":{"get":{"summary":"Sounds growing fastest relative to their size (uses gained since the previous reading).","operationId":"get_sounds_breakout","parameters":[],"x-credits":0,"tags":["sounds"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/sounds/search":{"get":{"summary":"Find sounds by title or artist: tracked trending sounds, plus sounds heard in collected videos with how those videos perform.","operationId":"get_sounds_search","parameters":[{"name":"q","in":"query","required":false,"description":"Title or artist","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-50 (default 20)","schema":{"type":"string"}}],"x-credits":0,"tags":["sounds"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/sounds/{sound_id}":{"get":{"summary":"One sound: title, artist, videos using it, a playable preview when stored, and how collected videos using it perform.","operationId":"get_sounds_sound_id","parameters":[{"name":"sound_id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["sounds"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/sounds/{sound_id}/usage-history":{"get":{"summary":"Daily count of videos using the sound, one reading a day while it is tracked.","operationId":"get_sounds_sound_id_usage_history","parameters":[{"name":"sound_id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["sounds"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/sounds/{sound_id}/videos":{"get":{"summary":"Collected videos using the sound, best Virality Score first.","operationId":"get_sounds_sound_id_videos","parameters":[{"name":"sound_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["sounds"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/content-trends":{"get":{"summary":"Content formats spreading in your agents' niches: the steps, stage (new, rising, accelerating, peaking, declining, evergreen), creators, views and week-on-week change. Trends not seen for 21 days are archived and left out.","operationId":"get_content_trends","parameters":[{"name":"agent","in":"query","required":false,"description":"Only this agent id","schema":{"type":"string"}}],"x-credits":0,"tags":["content-trends"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/content-trends/{id}":{"get":{"summary":"One content trend with all its example videos.","operationId":"get_content_trends_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["content-trends"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/slideshows":{"get":{"summary":"This agent's TikTok photo slideshows, best Virality Score first.","operationId":"get_agents_id_slideshows","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-200 (default 50)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/ads":{"get":{"summary":"Meta ads found for this agent's search terms, longest-running first among active ones (an ad that keeps running is usually working).","operationId":"get_agents_id_ads","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/creators/outliers":{"get":{"summary":"Creators who keep beating their audience in this niche: outliers (score 35+), best and median score, and their best video against their usual views when known.","operationId":"get_agents_id_creators_outliers","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 30)","schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/hashtags":{"get":{"summary":"Hashtags in this agent's videos with videos, creators, views, median score, lift against the agent's typical video and outlier rate.","operationId":"get_agents_id_hashtags","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"description":"Only videos from the last N days","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-200 (default 50)","schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/benchmarks":{"get":{"summary":"Genre benchmarks for this agent's niche: median, p75 and p90 views, Virality Score and engagement, by platform, creator size and format.","operationId":"get_agents_id_benchmarks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/sounds":{"get":{"summary":"Sounds used by at least two of this agent's videos, with how those videos perform.","operationId":"get_agents_id_sounds","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/affinity":{"get":{"summary":"Beta: hashtags and sounds that go together in this niche (pairs seen in 3+ videos, with lift over chance).","operationId":"get_agents_id_affinity","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/trends/latest":{"get":{"summary":"The content trends from this agent's most recent update.","operationId":"get_agents_id_trends_latest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/analysis":{"get":{"summary":"Every AI report written for this agent (one per run), newest first. Read one in full with /agents/{id}/report?run_id=.","operationId":"get_agents_id_analysis","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-50 (default 10)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/analysis/latest":{"get":{"summary":"The latest AI report: key highlight, themes with evidence videos and confidence, viewer ideas from comments, breaking events.","operationId":"get_agents_id_analysis_latest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/runs/{run_id}":{"get":{"summary":"One run: status, stage, videos found, outliers, credits used.","operationId":"get_agents_id_runs_run_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/autonomy":{"put":{"summary":"Turn autopilot on or off (it replaces weak search terms and adds timely keywords; every change is listed in /agents/{id}/activity).","operationId":"put_agents_id_autonomy","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"true to turn autopilot on, false to turn it off"}},"required":["enabled"]}}}}}},"/tracking/creators/{platform}/{handle}/snapshots":{"get":{"summary":"A tracked creator's numbers at each check.","operationId":"get_tracking_creators_platform_handle_snapshots","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/tracking/creators/{platform}/{handle}/posts":{"get":{"summary":"This creator's posts we hold, newest first, each against their usual views.","operationId":"get_tracking_creators_platform_handle_posts","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/tracking/creators/{platform}/{handle}/posting-cadence":{"get":{"summary":"How often a tracked creator posts: posts per week, median gap, weekday spread, from the posts seen so far.","operationId":"get_tracking_creators_platform_handle_posting_cadence","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/tracking/videos/{id}/snapshots":{"get":{"summary":"A tracked video's numbers at each check.","operationId":"get_tracking_videos_id_snapshots","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["tracking"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/account/balance":{"get":{"summary":"Your credit balance.","operationId":"get_account_balance","parameters":[],"x-credits":0,"tags":["account"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/account/top-up":{"post":{"summary":"A checkout link that adds a credit pack (nothing is charged by this call; whoever opens the link pays).","operationId":"post_account_top_up","parameters":[],"x-credits":0,"tags":["account"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pack":{"type":"string","description":"Credit pack: p1000 (1000 credits, $25), p5000 (5000 credits, $110), p20000 (20000 credits, $380)","enum":["p1000","p5000","p20000"]}},"required":["pack"]}}}}}},"/webhooks":{"post":{"summary":"Add a webhook (or Slack/Discord) for events: digest, alert (breakout video), trend (trend.detected for a new or newly rising trend, trend.stage_changed when a trend moves stage), run (research finished or failed), creator (new post by a tracked creator), analysis (an analysis job finished), search (search.gap_found: a search opportunity job found clear Google or YouTube gaps). Webhook bodies are signed: X-Lulubanana-Signature = sha256 HMAC of the raw body with the secret returned once here. Each delivery has a unique id (X-Lulubanana-Delivery) to de-duplicate retries.","operationId":"post_webhooks","parameters":[],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"https:// address that receives the events"},"events":{"type":"array","description":"Any of digest, alert, trend, run, creator, analysis, search, mirror (default all)","items":{"type":"string","enum":["digest","alert","trend","run","creator","analysis","search","mirror"]}},"kind":{"type":"string","description":"webhook (default), slack or discord","enum":["webhook","slack","discord"]}},"required":["url"]}}}}},"get":{"summary":"Your webhooks and their delivery health.","operationId":"get_webhooks","parameters":[],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/webhooks/{id}":{"get":{"summary":"One webhook.","operationId":"get_webhooks_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"patch":{"summary":"Change a webhook's address, events, or switch it on or off.","operationId":"patch_webhooks_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"New https:// address"},"events":{"type":"array","description":"Any of digest, alert, trend, run, creator, analysis, search, mirror","items":{"type":"string","enum":["digest","alert","trend","run","creator","analysis","search","mirror"]}},"active":{"type":"boolean","description":"On or off"}}}}}}},"delete":{"summary":"Remove a webhook.","operationId":"delete_webhooks_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/webhooks/{id}/reenable":{"post":{"summary":"Switch a webhook back on after it was switched off for 5 failed deliveries in a row.","operationId":"post_webhooks_id_reenable","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/webhooks/{id}/test":{"post":{"summary":"Send a test event (type \"test\") within a few seconds; see the result in /webhooks/{id}/deliveries.","operationId":"post_webhooks_id_test","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/webhooks/{id}/deliveries":{"get":{"summary":"Recent deliveries (kept 30 days) with your server's reply status; failed ones can be sent again.","operationId":"get_webhooks_id_deliveries","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Results per page, 1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/webhooks/deliveries/{delivery_id}/retry":{"post":{"summary":"Send one delivery again (same payload, a new delivery id that names the original in retry_of).","operationId":"post_webhooks_deliveries_delivery_id_retry","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["webhooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/videos/batch":{"post":{"summary":"Up to 50 full video records in one call, duplicates removed; ids not found come back as {id, found:false}.","operationId":"post_videos_batch","parameters":[],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","description":"1-50 video ids (e.g. tt7581…, ytAbC…)","items":{"type":"string"}}},"required":["ids"]}}}}}},"/videos/{id}":{"get":{"summary":"One video's full record: stats (missing ones are null, never zero), creator baseline and outlier ratio, hook, format, transcript, on-screen analysis, analysis_status (frames, transcript, caption_only), likely_repost (true only when an earlier post by a different creator in our database has the same caption of 6+ words or the same opening line; false when none was found; null when it cannot be told; with likely_repost_reason and repost_of) and provenance that separates observed numbers from AI readings.","operationId":"get_videos_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/videos/{id}/metrics":{"get":{"summary":"A video's readings over time (tracking checks and research runs) with its age at each, and views per hour and per day when there are two readings.","operationId":"get_videos_id_metrics","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/research/jobs":{"post":{"summary":"Start a full niche research in one call: send a niche sentence (search terms are planned for you, free) or your own terms, or an agent_id to run again. Costs one research run, like the app; a failed run is refunded and a canceled queued job is refunded. When planning takes longer than 40 s the reply is status \"planning\" with a plan_job_id: send {\"plan_job_id\"} again (the rest of the request is kept); a plan starts one job, so sending it again returns that job without a new charge. Poll /research/jobs/{id} every 15 s; statuses: queued, collecting, analyzing, completed, partially_completed, failed, canceled.","operationId":"post_research_jobs","parameters":[],"x-credits":100,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"niche":{"type":"string","description":"One sentence about the niche and audience (15-500 characters). Search terms are planned from it for free when terms is left out"},"terms":{"type":"array","description":"3-10 search phrases (optional when niche is sent)","items":{"type":"string"}},"plan_job_id":{"type":"number","description":"Resume a job whose planning took longer than 40 seconds"},"agent_id":{"type":"number","description":"Run an existing agent instead"},"name":{"type":"string","description":"A name (default: from the niche)"},"excludes":{"type":"array","description":"Words that mark a video as off-topic","items":{"type":"string"}},"platforms":{"type":"array","description":"Any of tt, yt, ig (default all three)","items":{"type":"string","enum":["tt","yt","ig"]}},"en_only":{"type":"boolean","description":"English videos only (default true)"}}}}}}},"get":{"summary":"Your research jobs, newest first, with their status.","operationId":"get_research_jobs","parameters":[{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/research/jobs/batch":{"post":{"summary":"Start 1-5 research jobs in one call (each item is a POST /research/jobs body: niche, terms or agent_id). Costs one research run per job (100 credits each); all or nothing: the balance (and the key's monthly limit) must cover the whole batch, and every job starts in one transaction, or none does. A run already going for an agent is returned free. Missing terms are planned for free (up to 40 s; else status planning with plan_job_ids to send back, nothing charged).","operationId":"post_research_jobs_batch","parameters":[],"x-credits":100,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"niches":{"type":"array","description":"1-5 research job bodies, each like POST /research/jobs: {niche} or {terms} or {agent_id}","items":{"type":"object","properties":{"niche":{"type":"string","description":"One sentence about the niche and audience (15-500 characters). Search terms are planned from it for free when terms is left out"},"terms":{"type":"array","description":"3-10 search phrases (optional when niche is sent)","items":{"type":"string"}},"plan_job_id":{"type":"number","description":"Resume a job whose planning took longer than 40 seconds"},"agent_id":{"type":"number","description":"Run an existing agent instead"},"name":{"type":"string","description":"A name (default: from the niche)"},"excludes":{"type":"array","description":"Words that mark a video as off-topic","items":{"type":"string"}},"platforms":{"type":"array","description":"Any of tt, yt, ig (default all three)","items":{"type":"string","enum":["tt","yt","ig"]}},"en_only":{"type":"boolean","description":"English videos only (default true)"}}}}},"required":["niches"]}}}}}},"/research/jobs/{id}":{"get":{"summary":"One research job's status. Poll every 15 seconds until completed, partially_completed, failed or canceled.","operationId":"get_research_jobs_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/research/jobs/{id}/cancel":{"post":{"summary":"Cancel a job that has not started collecting yet; its credits come back. A canceled scheduled run skips that occurrence: the schedule continues with the next one. A job already collecting finishes on its own.","operationId":"post_research_jobs_id_cancel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/research/jobs/{id}/results":{"get":{"summary":"Everything a finished job found: coverage (videos per platform, outliers, off-topic filtered, per-term results, coverage_status), freshness, credits charged and cache reuse, top videos with creator-relative outlier ratios, the AI report, what changed since the previous run, and new_since_previous: the outliers, trends (and trend stage changes) and opportunities (new report themes and ideas, search opportunities) that the agent's previous finished run did not have. ?format=markdown answers one Markdown document (text/markdown).","operationId":"get_research_jobs_id_results","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Top videos to include, 1-100 (default 25)","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or markdown","schema":{"type":"string","enum":["json","markdown"]}}],"x-credits":0,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/research/schedules":{"get":{"summary":"Your recurring research (agents on a schedule).","operationId":"get_research_schedules","parameters":[],"x-credits":0,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"post":{"summary":"Start recurring research: daily, weekly, monthly or every N days (2-90). The first run starts now; each run costs one research run, like the app.","operationId":"post_research_schedules","parameters":[],"x-credits":100,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"niche":{"type":"string","description":"One sentence about the niche and audience (15-500 characters). Search terms are planned from it for free when terms is left out"},"terms":{"type":"array","description":"3-10 search phrases (optional when niche is sent)","items":{"type":"string"}},"plan_job_id":{"type":"number","description":"Resume a job whose planning took longer than 40 seconds"},"agent_id":{"type":"number","description":"Run an existing agent instead"},"name":{"type":"string","description":"A name (default: from the niche)"},"excludes":{"type":"array","description":"Words that mark a video as off-topic","items":{"type":"string"}},"platforms":{"type":"array","description":"Any of tt, yt, ig (default all three)","items":{"type":"string","enum":["tt","yt","ig"]}},"en_only":{"type":"boolean","description":"English videos only (default true)"},"cadence":{"type":"string","description":"daily, weekly or monthly","enum":["daily","weekly","monthly"]},"every_days":{"type":"number","description":"Custom interval: every N days, 2-90 (instead of cadence)"}}}}}}}},"/research/schedules/{id}":{"patch":{"summary":"Pause or resume (status \"paused\" | \"active\"), change cadence or every_days (null clears it), terms, platforms or autopilot.","operationId":"patch_research_schedules_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["research"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"active or paused","enum":["active","paused"]},"cadence":{"type":"string","description":"daily, weekly or monthly","enum":["daily","weekly","monthly"]},"every_days":{"type":"number","description":"Every N days, 2-90, or null"},"terms":{"type":"array","description":"3-10 search phrases","items":{"type":"string"}},"platforms":{"type":"array","description":"Any of tt, yt, ig","items":{"type":"string","enum":["tt","yt","ig"]}},"excludes":{"type":"array","description":"Off-topic words","items":{"type":"string"}},"autopilot":{"type":"boolean","description":"Autopilot on or off"}}}}}}}},"/formats":{"get":{"summary":"Creative formats (tutorial, GRWM, review, haul, transition, talking head, faceless) across independent creators: performance distribution, lift, outlier rate, cross-creator adoption by week, growth, lifecycle (new, rising, steady, evergreen, declining) and confidence. For AI-described structures see /content-trends.","operationId":"get_formats","parameters":[{"name":"agent","in":"query","required":false,"description":"Only this agent's videos (default: everything collected)","schema":{"type":"string"}},{"name":"days","in":"query","required":false,"description":"Look back 14-365 days (default 180)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}}],"x-credits":0,"tags":["formats"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/formats/{format}":{"get":{"summary":"One format in depth: the same numbers as /formats plus which hook types and hashtags work best with it, results per platform and the 12 strongest examples.","operationId":"get_formats_format","parameters":[{"name":"format","in":"path","required":true,"schema":{"type":"string"}},{"name":"agent","in":"query","required":false,"description":"Only this agent's videos (default: everything collected)","schema":{"type":"string"}},{"name":"days","in":"query","required":false,"description":"Look back 14-365 days (default 180)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}}],"x-credits":0,"tags":["formats"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/formats/match":{"post":{"summary":"Which formats and hook types work for a topic: matches collected videos by words, ranks formats by lift over the typical video, with independent creators and an example each. coverage_status says when there is too little data.","operationId":"post_formats_match","parameters":[],"x-credits":0,"tags":["formats"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"What the content is about, a few words"},"agent":{"type":"number","description":"Only this agent's videos"},"platform":{"type":"string","description":"tt, yt or ig","enum":["tt","yt","ig"]},"days":{"type":"number","description":"Look back N days (default 365)"}},"required":["topic"]}}}}}},"/creators/{platform}/{handle}":{"get":{"summary":"One creator: followers, baseline (median views of recent posts, breakouts 3×+, outlier frequency, confidence), collected videos and their scores, strongest formats, hook types and hashtags, top and recent videos.","operationId":"get_creators_platform_handle","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string"}},{"name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["creators"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/creators/compare":{"post":{"summary":"Compare 2-10 creators side by side, with rankings by median score, outlier frequency, median views and engagement.","operationId":"post_creators_compare","parameters":[],"x-credits":0,"tags":["creators"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"creators":{"type":"array","description":"2-10 creators","items":{"type":"object","properties":{"platform":{"type":"string","enum":["tt","yt","ig"]},"handle":{"type":"string"}}}}},"required":["creators"]}}}}}},"/watchlists":{"post":{"summary":"Group creators and videos to watch (competitors, a niche, a campaign). Creating a list is free; track:true also starts daily tracking at the app's price per check.","operationId":"post_watchlists","parameters":[],"x-credits":0,"tags":["watchlists"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"A name"},"creators":{"type":"array","description":"Creators: [{platform, handle}]","items":{"type":"object","properties":{"platform":{"type":"string","enum":["tt","yt","ig"]},"handle":{"type":"string"}}}},"videos":{"type":"array","description":"Video ids","items":{"type":"string"}},"track":{"type":"boolean","description":"Also track them daily (charged per check like the app: 15 a creator, 10 a video). Default false"}},"required":["name"]}}}}},"get":{"summary":"Your watchlists.","operationId":"get_watchlists","parameters":[],"x-credits":0,"tags":["watchlists"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/watchlists/{id}":{"get":{"summary":"A watchlist with each creator's usual views, change since the previous check and latest posts against it (new_outliers = 3×+), and each video's numbers and views per hour.","operationId":"get_watchlists_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["watchlists"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"patch":{"summary":"Rename a watchlist.","operationId":"patch_watchlists_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["watchlists"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New name"}},"required":["name"]}}}}},"delete":{"summary":"Delete a watchlist (tracking of its items continues until you stop it).","operationId":"delete_watchlists_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["watchlists"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/watchlists/{id}/items":{"post":{"summary":"Add creators or videos to a watchlist (track:true also starts daily tracking at the app's price).","operationId":"post_watchlists_id_items","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["watchlists"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"creators":{"type":"array","description":"Creators: [{platform, handle}]","items":{"type":"object","properties":{"platform":{"type":"string","enum":["tt","yt","ig"]},"handle":{"type":"string"}}}},"videos":{"type":"array","description":"Video ids","items":{"type":"string"}},"track":{"type":"boolean","description":"Also track them daily (charged per check like the app: 15 a creator, 10 a video). Default false"}}}}}}}},"/watchlists/{id}/items/remove":{"post":{"summary":"Remove creators or videos from a watchlist (their tracking continues until you stop it).","operationId":"post_watchlists_id_items_remove","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["watchlists"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"creators":{"type":"array","description":"Creators: [{platform, handle}]","items":{"type":"object","properties":{"platform":{"type":"string","enum":["tt","yt","ig"]},"handle":{"type":"string"}}}},"videos":{"type":"array","description":"Video ids","items":{"type":"string"}}}}}}}}},"/account/audit":{"get":{"summary":"Every API request made with your keys in the last 90 days: when, which key, method, path, result status and credits.","operationId":"get_account_audit","parameters":[{"name":"limit","in":"query","required":false,"description":"1-200 (default 50)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["account"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/analysis/jobs/{id}":{"get":{"summary":"Status and result of an analysis job (opportunities, comments, comment insights, creator baseline, creative breakdown, content briefs, hook recommendations, the search jobs: intent, demand, Google and YouTube results audits, search opportunities, and the Fusion Engine jobs: content opportunities, bidirectional research, problem-intent match, format-demand match, account fit). Poll every 10 s until completed or failed (a search opportunity or Fusion job waiting for its research run says collecting: poll every minute). A failed paid job is refunded. Also the Creator Track & Mirror jobs (post analysis, adaptation, draft, creative DNA): status analyzing while they work or wait for a video breakdown.","operationId":"get_analysis_jobs_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["analysis"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/profiles":{"post":{"summary":"Save an audience and content profile to match opportunities against. Audience DNA = who it is for (niche, audience, interests, problems, market, language, tone, formats, exclusions, constraints, outcomes; a product is optional). Creator DNA (creator_dna) = who makes it: personality, presentation, voice, humour, content pillars, location, formats they can and will not make, what they already published, what they optimise for, strict rules kept apart from preferences, and the learning and experiment switches. Answers carry the old fields (data) plus audience_dna and creator_dna.","operationId":"post_profiles","parameters":[],"x-credits":0,"tags":["profiles"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"A name for the profile"},"niche":{"type":"string","description":"Niche, e.g. \"home espresso\""},"subniche":{"type":"string","description":"Sub-niche"},"audience":{"type":"string","description":"Who it is for, e.g. \"students on a budget\""},"interests":{"type":"array","description":"Audience interests","items":{"type":"string"}},"problems":{"type":"array","description":"Audience problems","items":{"type":"string"}},"content_categories":{"type":"array","description":"Wanted content categories","items":{"type":"string"}},"market":{"type":"string","description":"Two-letter country when location matters, e.g. US"},"language":{"type":"string","description":"Language code, e.g. en"},"tone":{"type":"string","description":"Editorial personality and tone"},"formats":{"type":"array","description":"Preferred formats","items":{"type":"string"}},"exclude_topics":{"type":"array","description":"Topics to leave out","items":{"type":"string"}},"constraints":{"type":"string","description":"Creator capabilities and constraints (e.g. no face on camera, phone only)"},"outcomes":{"type":"string","description":"Desired outcomes (saves, follows, bookings...)"},"product_category":{"type":"string","description":"Optional product or service category (never required)"},"creator_dna":{"type":"object","description":"Creator DNA, who makes the content: personality, presentation (on_camera | faceless | voiceover | mixed), voice, humour (0-3), content_pillars, location { country, region, city }, formats_can, formats_wont, published (titles, topics or links already made), optimise_for (views | retention | saves | qualified_engagement | profile_visits | link_clicks | leads | customers), strict { markets, exclude_topics, formats_only, no_face, no_voice, max_seconds, no_repeats } (hard rules), preferences { formats, topics, hook_styles, tones, min_seconds, max_seconds, cta } (soft wishes), learning { enabled }, experiment { enabled, control_share }"}}}}}}},"get":{"summary":"Your profiles, each with its Audience DNA (audience_dna) and Creator DNA (creator_dna).","operationId":"get_profiles","parameters":[],"x-credits":0,"tags":["profiles"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/profiles/{id}":{"get":{"summary":"One profile: the old fields (data), its Audience DNA (audience_dna) and its Creator DNA (creator_dna).","operationId":"get_profiles_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["profiles"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"patch":{"summary":"Change a profile (send only the fields to change). Inside creator_dna, send only the fields to change too; a field sent as null is removed.","operationId":"patch_profiles_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["profiles"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"A name for the profile"},"niche":{"type":"string","description":"Niche, e.g. \"home espresso\""},"subniche":{"type":"string","description":"Sub-niche"},"audience":{"type":"string","description":"Who it is for, e.g. \"students on a budget\""},"interests":{"type":"array","description":"Audience interests","items":{"type":"string"}},"problems":{"type":"array","description":"Audience problems","items":{"type":"string"}},"content_categories":{"type":"array","description":"Wanted content categories","items":{"type":"string"}},"market":{"type":"string","description":"Two-letter country when location matters, e.g. US"},"language":{"type":"string","description":"Language code, e.g. en"},"tone":{"type":"string","description":"Editorial personality and tone"},"formats":{"type":"array","description":"Preferred formats","items":{"type":"string"}},"exclude_topics":{"type":"array","description":"Topics to leave out","items":{"type":"string"}},"constraints":{"type":"string","description":"Creator capabilities and constraints (e.g. no face on camera, phone only)"},"outcomes":{"type":"string","description":"Desired outcomes (saves, follows, bookings...)"},"product_category":{"type":"string","description":"Optional product or service category (never required)"},"creator_dna":{"type":"object","description":"Creator DNA, who makes the content: personality, presentation (on_camera | faceless | voiceover | mixed), voice, humour (0-3), content_pillars, location { country, region, city }, formats_can, formats_wont, published (titles, topics or links already made), optimise_for (views | retention | saves | qualified_engagement | profile_visits | link_clicks | leads | customers), strict { markets, exclude_topics, formats_only, no_face, no_voice, max_seconds, no_repeats } (hard rules), preferences { formats, topics, hook_styles, tones, min_seconds, max_seconds, cta } (soft wishes), learning { enabled }, experiment { enabled, control_share }"}}}}}}},"delete":{"summary":"Delete a profile.","operationId":"delete_profiles_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["profiles"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/opportunities/discover":{"post":{"summary":"Ranked, audience-matched content opportunities grounded in videos that really outperformed: candidates come from your research (winning themes, viewer requests, outlier clusters, format trends) and topics in your market; irrelevant viral content is rejected with a reason. Each has opportunity_score (0-100, weighted factors) and a separate evidence confidence, source video links, hook mechanism, structure, angle, format, key information, payoff and originality requirements. Async: poll /analysis/jobs/{job_id} (about 1 minute). Included, up to 10 a day.","operationId":"post_opportunities_discover","parameters":[],"x-credits":0,"tags":["opportunities"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"profile_id":{"type":"number","description":"A saved profile (or send profile)"},"profile":{"type":"object","description":"An inline profile with the same fields as POST /profiles"},"agent_ids":{"type":"array","description":"Only evidence from these agents (default all yours)","items":{"type":"number"}},"limit":{"type":"number","description":"Opportunities to return, 1-20 (default 10)"},"weights":{"type":"object","description":"Factor weights, any of relevance, organic_evidence, practical_value, format_repeatability, suitability, freshness, geographic (defaults 25/20/15/15/10/10/5)"},"local":{"type":"boolean","description":"Location matters (uses the geographic weight; default true when market is set)"}}}}}}}},"/opportunities/score":{"post":{"summary":"Score your own candidate ideas against a profile, with evidence from the video ids you attach (ideas without evidence get low confidence, never \"verified\"). Async like discover. Included, shares the 10-a-day limit.","operationId":"post_opportunities_score","parameters":[],"x-credits":0,"tags":["opportunities"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profile_id":{"type":"number","description":"A saved profile (or send profile)"},"profile":{"type":"object","description":"An inline profile with the same fields as POST /profiles"},"weights":{"type":"object","description":"Factor weights, any of relevance, organic_evidence, practical_value, format_repeatability, suitability, freshness, geographic (defaults 25/20/15/15/10/10/5)"},"local":{"type":"boolean","description":"Location matters (uses the geographic weight; default true when market is set)"},"candidates":{"type":"array","description":"1-20 ideas","items":{"type":"object","properties":{"topic":{"type":"string"},"mechanism":{"type":"string"},"video_ids":{"type":"array","items":{"type":"string"}}}}}},"required":["candidates"]}}}}}},"/opportunities":{"get":{"summary":"Opportunities found for you, newest first. ?verified=true keeps only verified winners.","operationId":"get_opportunities","parameters":[{"name":"verified","in":"query","required":false,"description":"\"true\" for verified winners only","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["opportunities"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/opportunities/{id}":{"get":{"summary":"One opportunity with all its evidence and creative intelligence.","operationId":"get_opportunities_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["opportunities"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/opportunities/{id}/reject":{"post":{"summary":"Reject an opportunity: it and similar topics stop being suggested (feedback for your ranking).","operationId":"post_opportunities_id_reject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["opportunities"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why (optional)"}}}}}}}},"/hooks/mechanisms":{"get":{"summary":"Psychological mechanisms behind strong hooks (curiosity, mistake avoidance, contrarian, surprising fact, problem-solution, before-after, story, comparison, challenge, question, social proof, demonstration, listicle, suspense, humor) with how hooks using each perform against the other strong hooks.","operationId":"get_hooks_mechanisms","parameters":[{"name":"days","in":"query","required":false,"description":"Look back 7-365 days (default 180)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}}],"x-credits":0,"tags":["hooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/hooks/formulas":{"get":{"summary":"Hook formulas repeated by several independent creators (structure, not wording), with how they perform and examples.","operationId":"get_hooks_formulas","parameters":[{"name":"days","in":"query","required":false,"description":"Look back 7-365 days (default 180)","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}},{"name":"mechanism","in":"query","required":false,"description":"Only this mechanism","schema":{"type":"string"}},{"name":"min_creators","in":"query","required":false,"description":"Independent creators needed (default 2)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 30)","schema":{"type":"string"}}],"x-credits":0,"tags":["hooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/hooks/emerging":{"get":{"summary":"Hook mechanisms and formulas that are being used more often lately (last 21 days against the 42 before) by several creators.","operationId":"get_hooks_emerging","parameters":[{"name":"platform","in":"query","required":false,"description":"tt, yt or ig","schema":{"type":"string","enum":["tt","yt","ig"]}}],"x-credits":0,"tags":["hooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/videos/{id}/similar":{"get":{"summary":"Videos most similar in meaning (caption and hook) to this one, with a similarity from 0 to 1.","operationId":"get_videos_id_similar","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-50 (default 20)","schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/hooks/evaluate":{"post":{"summary":"Test a proposed opening line against similar hooks that were really published: how they performed against the typical video, their likely mechanisms and the closest examples. Evidence, not a prediction.","operationId":"post_hooks_evaluate","parameters":[],"x-credits":0,"tags":["hooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hook":{"type":"string","description":"The opening line to test"}},"required":["hook"]}}}}}},"/videos/{id}/comments":{"get":{"summary":"The top public comments we hold for a video (text and likes; no commenter names).","operationId":"get_videos_id_comments","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/videos/{id}/comments/collect":{"post":{"summary":"Collect a video's top public comments (then comment insights run by themselves, within the 30-a-day comment analyses). TikTok costs one video check, like the app; YouTube is free (up to 60 collections a day); anything collected in the last 7 days is free. Refunded if it fails or finds none.","operationId":"post_videos_id_comments_collect","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":10,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/videos/{id}/comments/intelligence":{"get":{"summary":"What viewers say: clusters of questions, problems, frustrations, objections, tutorial and comparison requests, buying or booking intent, requests for alternatives, with counts, shares, quoted evidence and confidence; unanswered questions and content gaps. Starts the analysis when comments are held (included, 30 a day; a read-only key gets status not_started instead).","operationId":"get_videos_id_comments_intelligence","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/audience":{"get":{"summary":"Audience intelligence across an agent's videos: recurring questions, problems, requests and intent with how many videos they appear on, unanswered questions, and the report's viewer ideas.","operationId":"get_agents_id_audience","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/agents/{id}/gaps":{"get":{"summary":"Under-served content: questions and requests from viewers (comment insights and the report) that few collected videos cover.","operationId":"get_agents_id_gaps","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["agents"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/creators/baseline":{"post":{"summary":"Measure a creator's normal: their last ~30 posts → median and mean views, 3×+ breakouts, like rate. Costs one creator check, like the app; free when this creator was measured in the last 24 hours; refunded if it fails. Async: poll /analysis/jobs/{job_id}.","operationId":"post_creators_baseline","parameters":[],"x-credits":15,"tags":["creators"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","description":"tt or yt","enum":["tt","yt"]},"handle":{"type":"string","description":"Creator handle without @"}},"required":["platform","handle"]}}}}}},"/videos/outlier-check":{"post":{"summary":"Is this video an outlier for its own creator? Compares its views with the creator's recent posts: outlier ratio, class (normal, above_average 1.5×, viral_outlier 3×, strong_breakout 10×, exceptional_breakout 25×), age-matched baseline when enough posts are of similar age, percentile, engagement lift, sample size and confidence, and likely_repost (true only when an earlier post by a different creator has the same caption of 6+ words or the same opening line; null when it cannot be told). Costs one creator check (free within 24 hours of the last one for that creator; refunded if it fails).","operationId":"post_videos_outlier_check","parameters":[],"x-credits":15,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"video_id":{"type":"string","description":"A video id we hold (or send url)"},"url":{"type":"string","description":"A TikTok video link or YouTube Shorts link"},"handle":{"type":"string","description":"Channel handle, only for a YouTube Short we do not hold"}}}}}}}},"/videos/{id}/analyze":{"post":{"summary":"Frame-level creative breakdown of the video itself: frames (dense in the first 3 s), on-screen text, measured cuts and the transcript are read by a vision model into hook (spoken and on-screen opening, first frame, categories, mechanism, curiosity gap, promise, problem, tone), opening → body → payoff → ending structure, visual presentation, storytelling techniques and a mechanism hypothesis, with timestamped evidence and confidence. Done once per video and shared. Included, 20 a day. If the video cannot be fetched the status says incomplete: a caption is never passed off as video analysis.","operationId":"post_videos_id_analyze","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/videos/{id}/analysis":{"get":{"summary":"The creative breakdown of a video, or its status (not_analysed, incomplete with the reason).","operationId":"get_videos_id_analysis","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/videos/breakouts/early":{"get":{"summary":"Videos still gaining fast relative to their creator's normal (from two or more readings by your agents' runs or tracking): views per day, ratio now, an early_breakout flag and confidence.","operationId":"get_videos_breakouts_early","parameters":[{"name":"agent","in":"query","required":false,"description":"Only this agent","schema":{"type":"string"}},{"name":"hours","in":"query","required":false,"description":"Readings from the last 24-720 hours (default 168)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 30)","schema":{"type":"string"}}],"x-credits":0,"tags":["videos"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/formats/transfer":{"get":{"summary":"Cross-platform format transfer: how each format performs against each platform's own typical video, and where a proven format is still rare (a chance to bring it over).","operationId":"get_formats_transfer","parameters":[{"name":"days","in":"query","required":false,"description":"Look back 30-365 days (default 365)","schema":{"type":"string"}}],"x-credits":0,"tags":["formats"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/alerts/settings":{"get":{"summary":"Alert thresholds: breakout alerts fire when a tracked creator's post reaches breakout_ratio × their usual views (default 3).","operationId":"get_alerts_settings","parameters":[],"x-credits":0,"tags":["alerts"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"put":{"summary":"Change alert settings: breakout_ratio (1.5-50), breakout_alerts, trend_alerts, email_alerts. Webhooks receive the same events (subscribe in /webhooks).","operationId":"put_alerts_settings","parameters":[],"x-credits":0,"tags":["alerts"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"breakout_ratio":{"type":"number","description":"Alert at this many times the usual views, 1.5-50"},"breakout_alerts":{"type":"boolean","description":"On or off"},"trend_alerts":{"type":"boolean","description":"On or off"},"email_alerts":{"type":"boolean","description":"Email as well"}}}}}}}},"/search/intent-extract":{"post":{"summary":"What people search on Google and YouTube about a topic, niche, audience or up to 20 of your videos: topics, entities named in the videos, viewer questions (from comments, or marked as hypotheses), Google and YouTube queries with intent (informational, commercial, comparison, tutorial, navigational, local) and groups, ambiguous terms, related keywords, adjacent niches and the source videos used (without video_ids: 3+ collected videos that name the topic's distinctive words, else the topic alone, said in limitations). Queries are AI suggestions: check their demand with POST /search/demand. Async: poll /analysis/jobs/{job_id} (about a minute); also kept at GET /search/intents. Included, up to 30 a day. English-speaking markets only (US, GB, CA, AU).","operationId":"post_search_intent_extract","parameters":[],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"video_ids":{"type":"array","description":"Up to 20 video ids from your results","items":{"type":"string"}},"topic":{"type":"string","description":"A topic, e.g. \"contour for beginners\""},"niche":{"type":"string","description":"A niche, e.g. \"makeup for beginners\""},"audience":{"type":"string","description":"Who it is for"},"profile_id":{"type":"number","description":"A saved audience profile (fills niche and audience)"},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]}}}}}}}},"/search/intents":{"get":{"summary":"Your search intent extractions, newest first (counts only; read one for the queries).","operationId":"get_search_intents","parameters":[{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/search/intents/{id}":{"get":{"summary":"One search intent extraction: topics, entities, viewer questions, Google and YouTube queries with intent and groups, ambiguous terms, related keywords, adjacent niches, sources.","operationId":"get_search_intents_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/search/demand":{"post":{"summary":"Search demand for 1-20 keywords: Google monthly searches, cost per click, advertiser competition and 12 months of history (Google Ads keyword data), 3-month growth, Google Trends web and YouTube interest (daily, last 3 months) with the last 4 weeks against the 4 before, related queries, a momentum label, granularity, geography, date range and confidence. YouTube search volume is null (not published by Google). 10 credits per lookup; free when every keyword was looked up in the last 7 days (up to 100 free lookups a day); returned if it fails. Async: poll /analysis/jobs/{job_id}. Markets: US, GB, CA, AU.","operationId":"post_search_demand","parameters":[],"x-credits":10,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"type":"array","description":"1-20 search phrases","items":{"type":"string"}},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]}},"required":["keywords"]}}}}},"get":{"summary":"Stored search demand for one keyword you looked up (with POST /search/demand, or as one of your search opportunities' searches); no new lookup: the same fields as POST /search/demand, with stored, fresh (looked up in the last 7 days) and snapshots (your live lookups). A keyword you have not looked up: every field null, with the reasons in missing and how to look it up.","operationId":"get_search_demand","parameters":[{"name":"keyword","in":"query","required":false,"description":"The keyword","schema":{"type":"string"}},{"name":"market","in":"query","required":false,"description":"US (default), GB, CA or AU","schema":{"type":"string","enum":["US","GB","CA","AU"]}}],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/search/google-serp-audit":{"post":{"summary":"Audit Google's page one for 1-5 keywords: the top results (title, link, site, date, snippet, page features), people also ask and related searches, then an audit from titles, snippets and dates (pages are not opened): intent match, answer completeness, outdated results, missing formats (comparison, tutorial, demonstration, explanation), weaknesses, unanswered questions, difficulty 0-100 with why, and gap_score 0-100. 10 credits per keyword not fetched in the last 7 days (cached keywords are free, up to 100 free audits a day); a keyword that fails is refunded. Async: poll /analysis/jobs/{job_id}, or read /search/serp-audits/{job_id}.","operationId":"post_search_google_serp_audit","parameters":[],"x-credits":10,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"type":"array","description":"1-5 search phrases","items":{"type":"string"}},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]},"intent":{"type":"string","description":"The searcher intent to judge the results against (default: read from the keyword)","enum":["informational","commercial","comparison","tutorial","navigational","local"]}},"required":["keywords"]}}}}}},"/search/youtube-serp-audit":{"post":{"summary":"Audit YouTube's top 20 for 1-5 keywords: title, link, channel, views, published, duration, Shorts or not; then freshness (median age), outdated tutorials, undercovered viewer questions, recommended long-form angles, weaknesses, difficulty 0-100 and gap_score 0-100, from titles, descriptions, dates and views (videos are not watched). 10 credits per keyword not fetched in the last 7 days (cached keywords are free, up to 100 free audits a day); a keyword that fails is refunded. Async: poll /analysis/jobs/{job_id}, or read /search/serp-audits/{job_id}.","operationId":"post_search_youtube_serp_audit","parameters":[],"x-credits":10,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"type":"array","description":"1-5 search phrases","items":{"type":"string"}},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]},"intent":{"type":"string","description":"Optional; used by Google audits only","enum":["informational","commercial","comparison","tutorial","navigational","local"]}},"required":["keywords"]}}}}}},"/search/serp-audits/{id}":{"get":{"summary":"One Google or YouTube results audit (id sau_…) that you requested, or every audit of one of your audit or search-opportunity jobs (send the job id). Results, people also ask, related searches, page features and the audit with its difficulty, gap score, factors and limitations.","operationId":"get_search_serp_audits_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/search/opportunities":{"post":{"summary":"The flagship search opportunity research: social evidence (verified organic outliers in your agent's videos, or the whole library: videos that name the niche's distinctive words and are close to it in meaning, English only, in the window) → topics and audience problems from the outliers, hooks, formats and comment questions → Google and YouTube searches per topic → demand (one Google Ads keyword lookup for all, Google Trends web and YouTube for the top max_keywords) → Google and YouTube results audits (7-day cache) → four separate 0-100 scores (social, google_seo, youtube, evidence_confidence capped at 95; deterministic formulas with factors) and a timing label (early, aligned, search_led, flat, unknown). Each opportunity cites real source videos; AI-written parts are listed as hypotheses. Fewer than count when evidence is thin (the result says why). Costs 100 credits; when the niche has too little collected data and collect is true, one research run (100 credits) is started first and the job waits for it (a run already going for the agent or niche is reused, never charged twice). Refunded if it fails or finds nothing. Async: poll /analysis/jobs/{job_id}; read the opportunities at /search/opportunities?job_id=…","operationId":"post_search_opportunities","parameters":[],"x-credits":100,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"niche":{"type":"string","description":"The niche, e.g. \"makeup for beginners\" (or send profile_id or agent_id)"},"subniche":{"type":"string","description":"A sub-niche"},"audience":{"type":"string","description":"Who it is for"},"profile_id":{"type":"number","description":"A saved audience profile (fills niche, subniche and audience)"},"agent_id":{"type":"number","description":"Use this agent's videos as the social evidence"},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]},"platforms":{"type":"array","description":"Any of tt, ig, yt (default all three)","items":{"type":"string","enum":["tt","ig","yt"]}},"window_days":{"type":"number","description":"Social evidence window, 1-90 days (default 14)"},"count":{"type":"number","description":"Opportunities wanted, 1-20 (default 20)"},"collect":{"type":"boolean","description":"Start a research run when too little data is collected (default true; adds one research run)"},"max_keywords":{"type":"number","description":"Topics that get Google Trends and results audits, 1-20 (default 10)"}}}}}}},"get":{"summary":"Your search opportunities, newest job first, each job in rank order, with every field (sources, hooks, queries, demand, competition, gaps, angle, format, the four scores with factors, timing, verified, hypotheses, limitations). ?job_id= adds that job's status, and why it returned fewer than asked.","operationId":"get_search_opportunities","parameters":[{"name":"job_id","in":"query","required":false,"description":"Only this search opportunity job","schema":{"type":"string"}},{"name":"verified","in":"query","required":false,"description":"\"true\" for verified ones only","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-50 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/search/opportunities/{id}":{"get":{"summary":"One search opportunity with all its evidence, scores, factors and the score formulas.","operationId":"get_search_opportunities_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/search/opportunities/{id}/reject":{"post":{"summary":"Reject a search opportunity (feedback): similar topics stop being suggested.","operationId":"post_search_opportunities_id_reject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["search"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why (optional)"}}}}}}}},"/briefs/generate":{"post":{"summary":"A content brief for one of your opportunities (opp_… from /opportunities or sop_… from /search/opportunities): title options, hook approaches grounded in real hooks (each links the videos it comes from), an outline with beats or sections, on-screen text ideas, a call to action, why it fits the audience, the viewer questions it answers, sources, and verified findings (measured) kept apart from hypotheses (AI-written). format short, long or article (default: the opportunity's recommended format); tone and a profile_id are optional. Async: poll /analysis/jobs/{job_id} (about a minute), then read /briefs/{id} as JSON or Markdown. Included, up to 30 a day.","operationId":"post_briefs_generate","parameters":[],"x-credits":0,"tags":["briefs"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opportunity_id":{"type":"string","description":"opp_… (from /opportunities) or sop_… (from /search/opportunities)"},"format":{"type":"string","description":"short, long or article (default: the opportunity's recommended format)","enum":["short","long","article"]},"tone":{"type":"string","description":"Tone of voice, e.g. \"friendly and direct\""},"profile_id":{"type":"number","description":"A saved audience profile (audience, tone, constraints)"}},"required":["opportunity_id"]}}}}}},"/briefs":{"get":{"summary":"Your content briefs, newest first.","operationId":"get_briefs","parameters":[{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["briefs"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/briefs/{id}":{"get":{"summary":"One content brief (brf_… id, or the job id from POST /briefs/generate): JSON with every part and a markdown field; ?format=markdown answers the Markdown document itself (text/markdown).","operationId":"get_briefs_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or markdown","schema":{"type":"string","enum":["json","markdown"]}}],"x-credits":0,"tags":["briefs"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/hooks/recommend":{"post":{"summary":"Hook mechanisms for an audience (a saved profile, or audience text and an optional niche), ranked by measured lift: for each mechanism the hooks, independent creators, median virality score, lift over the other strong hooks, outlier rate, confidence and real example hooks with links to their videos, matched to the audience by the niche's distinctive words together with meaning (the whole library when fewer than 12 match, said in limitations), plus templates adapted to the audience (hypotheses, each pointing at the real hook it adapts). Async: poll /analysis/jobs/{job_id} (about a minute). Included, up to 30 a day.","operationId":"post_hooks_recommend","parameters":[],"x-credits":0,"tags":["hooks"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"profile_id":{"type":"number","description":"A saved audience profile (or send audience)"},"audience":{"type":"string","description":"Who the hooks are for (or send profile_id)"},"niche":{"type":"string","description":"The niche, e.g. \"budget cooking\""},"platform":{"type":"string","description":"Only hooks from tt, yt or ig","enum":["tt","yt","ig"]},"days":{"type":"number","description":"Hooks posted in the last 30-730 days (default 365)"}}}}}}}},"/estimate":{"post":{"summary":"Cost estimate before you spend: send up to 20 calls ({method, path, body}) and get each one's credits, why it is free when it is (cached in the last 7 days, already running, a read, included), the fair use left today for included AI work, the total, your balance and whether it covers the total. Changes nothing and charges nothing.","operationId":"post_estimate","parameters":[],"x-credits":0,"tags":["estimate"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"calls":{"type":"array","description":"1-20 calls, e.g. {\"method\": \"POST\", \"path\": \"/search/demand\", \"body\": {\"keywords\": [\"contour\"]}}","items":{"type":"object","properties":{"method":{"type":"string","enum":["GET","POST","PATCH","PUT","DELETE"]},"path":{"type":"string"},"body":{"type":"object"}},"required":["path"]}}},"required":["calls"]}}}}}},"/fusion/content-opportunities":{"post":{"summary":"The Fusion Engine: decides WHAT to create, HOW to present it and WHO it is for. It reads social performance data (verified organic outliers in your agent's videos, or the library matched to the niche: which topics, hooks and formats already perform unusually well) and search data (what people search, the questions they ask, the problems they want solved), joins them by the underlying audience problem (never by shared keywords), finds a proven creative mechanism that suits each problem, checks every candidate against the account (Audience DNA + Creator DNA: strict rules reject, preferences count as matches) and returns ranked opportunities. Each has: audience_problem (stable id prb_…), search_intent (queries with intent, volume, trend; missing[]), social_proof (real videos with outlier ratios), creative_mechanism (structure, validation direct or cross_niche, source examples), mechanism_compatibility, account_fit (accept or reject with reasons), signal_class (jointly_validated, social_led, search_led, exploratory), an original angle, scores (priority 0-100, a separate evidence_confidence, social, search and match confidences, five factors each 0-100 or null with plain reasons), evidence_refs, limitations, origin, next_action (produce, test, monitor, gather_evidence, reject) with next_action_why, and a ready brief (JSON + Markdown). Opportunities supported by one side only are kept and labelled; missing evidence is never read as negative, a number that could not be measured is null (never 0), and AI-written parts are labelled as hypotheses. The job result also carries rejected[] with reasons (including strong videos that do not fit the account), contributions { push, pull } reported separately, spend { limit, used, breakdown }, gaps[] (missing evidence with cost_to_resolve and the call that resolves it) and shortfall_reason when fewer than count. Costs 100 credits. Inside spend_limit (default 100, up to 600) it may add one research run (100 credits, only when social evidence is too thin and collect is true; a run already going is reused, never charged twice) and search checks (10 credits each, only for lookups not stored in the last 7 days): never beyond the limit. Refunded if it fails or finds nothing. Up to 30 jobs a day per account and per key. Async: poll /analysis/jobs/{job_id} (a few minutes; collecting first when a run was started); read the opportunities at /fusion/opportunities?job_id=… English-speaking markets only (US, GB, CA, AU).","operationId":"post_fusion_content_opportunities","parameters":[],"x-credits":100,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"profile_id":{"type":"number","description":"A saved profile: its Audience DNA and Creator DNA are used (or send profile)"},"profile":{"type":"object","description":"An inline profile instead of profile_id: { audience_dna { niche, audience, problems, market, tone, ... }, creator_dna { personality, presentation, content_pillars, formats_can, formats_wont, published, optimise_for, strict, preferences, ... } }"},"niche":{"type":"string","description":"The niche, e.g. \"makeup for beginners\" (default: the profile's niche, or the agent's brief)"},"subniche":{"type":"string","description":"A sub-niche"},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]},"mode":{"type":"string","description":"auto (default: both sides), push_first (start from social performance) or pull_first (start from search demand)","enum":["auto","push_first","pull_first"]},"window_days":{"type":"number","description":"Social evidence window, 1-90 days (default 30)"},"count":{"type":"number","description":"Opportunities wanted, 1-20 (default 10)"},"exclude":{"type":"array","description":"Up to 50 topics or links already covered (left out)","items":{"type":"string"}},"spend_limit":{"type":"number","description":"The most this job may spend in credits, 100-600 (default 100 = the base price only: no research run, no new search checks)"},"collect":{"type":"boolean","description":"Start a research run when social evidence is too thin and it fits spend_limit (default true)"},"agent_id":{"type":"number","description":"Use this agent's videos as the social evidence"},"experiment":{"type":"boolean","description":"true adds a labelled social-only control arm to compare against (default: the profile's experiment switch)"}}}}}}}},"/fusion/opportunities":{"get":{"summary":"Your Fusion opportunities, newest job first, each job in rank order, with every field (audience problem, search intent, social proof, creative mechanism and its compatibility, account fit, signal class, angle, scores with factors and reasons, evidence references, limitations, origin, next action, brief). Filters: job_id (adds that job's status, spend, gaps and why it returned fewer than asked), profile_id, signal_class, next_action, origin, arm (fusion or control), drafts (true, false or only: drafts come from bidirectional research; hidden by default unless job_id is sent), rejected (true, false or only).","operationId":"get_fusion_opportunities","parameters":[{"name":"job_id","in":"query","required":false,"description":"Only this Fusion job (content opportunities or bidirectional research)","schema":{"type":"string"}},{"name":"profile_id","in":"query","required":false,"description":"Only opportunities researched for this profile","schema":{"type":"string"}},{"name":"signal_class","in":"query","required":false,"description":"jointly_validated, social_led, search_led, exploratory","schema":{"type":"string","enum":["jointly_validated","social_led","search_led","exploratory"]}},{"name":"next_action","in":"query","required":false,"description":"produce, test, monitor, gather_evidence, reject","schema":{"type":"string","enum":["produce","test","monitor","gather_evidence","reject"]}},{"name":"origin","in":"query","required":false,"description":"push_first, pull_first, joint, exploratory","schema":{"type":"string","enum":["push_first","pull_first","joint","exploratory"]}},{"name":"arm","in":"query","required":false,"description":"fusion or control (experiment mode)","schema":{"type":"string","enum":["fusion","control"]}},{"name":"drafts","in":"query","required":false,"description":"true, false or only (default false; true when job_id is sent)","schema":{"type":"string","enum":["true","false","only"]}},{"name":"rejected","in":"query","required":false,"description":"true (default), false or only","schema":{"type":"string","enum":["true","false","only"]}},{"name":"limit","in":"query","required":false,"description":"1-50 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/fusion/opportunities/{id}":{"get":{"summary":"One Fusion opportunity with all its evidence, scores, reasons and brief, plus what each score means in plain language. ?format=markdown answers its brief as a Markdown document (text/markdown).","operationId":"get_fusion_opportunities_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or markdown (the brief)","schema":{"type":"string","enum":["json","markdown"]}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/fusion/opportunities/{id}/reject":{"post":{"summary":"Reject a Fusion opportunity (feedback): its topic is left out of the next Fusion jobs for the same profile, and portfolios drop it.","operationId":"post_fusion_opportunities_id_reject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why (optional)"}}}}}}}},"/fusion/opportunities/{id}/explanation":{"get":{"summary":"How one Fusion opportunity was reached, from the stored research: the steps in order (each with its direction push, pull or fusion, its inputs and outputs, and its basis: observed, inferred, or \"observed and inferred\" where a step joins measured rules with an AI reading), the social examples and the search queries and questions that contributed, the creative mechanism and why it fits, conflicts between the two sides and what is missing, the account-fit result, and the separate confidences (social, search, match, evidence) with notes. Explains why in plain language; observed facts and AI readings are labelled apart.","operationId":"get_fusion_opportunities_id_explanation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/fusion/bidirectional-research":{"post":{"summary":"Research in either direction between social performance (push) and search demand (pull), one seed at a time. push_to_pull: a video (video_id or video_url of a video we hold) or a topic → its audience problem → the searches and questions behind it. pull_to_push: a question or keyword → its audience problem → proven social formats that explain similar problems (neighbouring topics when the niche itself has none, said so). both: one seed of each (the result says whether they name the same problem); auto (default) picks from the seeds sent. The result keeps push_contribution and pull_contribution apart, names the audience problem (stable id prb_…), says which direction to research next and why (next_direction, decided from the missing evidence, with its cost and the call), and returns one or more opportunity drafts with the same fields as Fusion opportunities (stored with draft true: usable with the explanation, escalation, account-fit and outcome routes). Either direction works alone when the other side has too little data, and says so. The reasoning is included, up to 30 a day; spend_limit (default 0 = stored data only, up to 600) allows search checks (10 credits each) for lookups not stored in the last 7 days, never beyond it. Async: poll /analysis/jobs/{job_id} (under a minute).","operationId":"post_fusion_bidirectional_research","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"direction":{"type":"string","description":"auto (default), push_to_pull, pull_to_push or both","enum":["push_to_pull","pull_to_push","both","auto"]},"video_id":{"type":"string","description":"Push seed: a video id from your results"},"video_url":{"type":"string","description":"Push seed: a link to a video we already hold"},"topic":{"type":"string","description":"Push seed: a topic"},"question":{"type":"string","description":"Pull seed: a question people ask, e.g. \"how to prevent hair damage\""},"keyword":{"type":"string","description":"Pull seed: a search phrase"},"profile_id":{"type":"number","description":"A saved profile: its Audience DNA and Creator DNA are used (or send profile)"},"profile":{"type":"object","description":"An inline profile instead of profile_id: { audience_dna { niche, audience, problems, market, tone, ... }, creator_dna { personality, presentation, content_pillars, formats_can, formats_wont, published, optimise_for, strict, preferences, ... } }"},"niche":{"type":"string","description":"The niche (default: the profile's)"},"platform":{"type":"string","description":"Only social examples from tt, yt or ig","enum":["tt","yt","ig"]},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]},"spend_limit":{"type":"number","description":"Credits the job may spend on search checks, 0-600 (default 0 = stored data only)"}}}}}}}},"/fusion/problem-intent-match":{"post":{"summary":"Group videos, search queries and free texts by the audience problem they share: by meaning, not by shared keywords. Send up to 50 items, each { video_id } (a video we hold), { query } or { text }. Result: problems [{ id (stable prb_…: a statement that means the same reuses its id), statement, kind (informational, instructional, comparison, purchase_decision, curiosity), specificity (topic or question), members [{ type, ref, relation observed or inferred, similarity or null }] }] and false_matches_rejected [{ a, b, reason, shared_words }]: pairs that share a keyword but mean something different. Problem statements are AI-written hypotheses; membership of a video or query you sent is observed. Included, up to 30 a day. Async: poll /analysis/jobs/{job_id} (about 15 seconds).","operationId":"post_fusion_problem_intent_match","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","description":"1-50 items, each { video_id } | { query } | { text }","items":{"type":"object","properties":{"video_id":{"type":"string"},"query":{"type":"string"},"text":{"type":"string"}}}},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]},"profile_id":{"type":"number","description":"A saved profile: its Audience DNA and Creator DNA are used (or send profile)"},"profile":{"type":"object","description":"An inline profile instead of profile_id: { audience_dna { niche, audience, problems, market, tone, ... }, creator_dna { personality, presentation, content_pillars, formats_can, formats_wont, published, optimise_for, strict, preferences, ... } }"}},"required":["items"]}}}}}},"/fusion/problems":{"get":{"summary":"The audience problems the Fusion Engine has found for your account (stable ids prb_…), most recently seen first, each with how many searches, videos, mechanisms, topics and opportunities are linked to it. Filters: kind, q (words in the statement).","operationId":"get_fusion_problems","parameters":[{"name":"kind","in":"query","required":false,"description":"informational, instructional, comparison, purchase_decision, curiosity","schema":{"type":"string","enum":["informational","instructional","comparison","purchase_decision","curiosity"]}},{"name":"q","in":"query","required":false,"description":"Words in the statement","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/fusion/problems/{id}":{"get":{"summary":"One audience problem with everything linked to it: its search queries, videos, creative mechanisms, topics and opportunities, each marked observed (measured or sent by you) or inferred (an AI reading), with its similarity when known.","operationId":"get_fusion_problems_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/fusion/format-demand-match":{"post":{"summary":"Which proven social formats suit one audience problem. Send a question, a keyword or a problem_id. Result: the audience problem (stable id), mechanisms [{ name, description, why_fits, validation (direct: proven on this problem's own videos; cross_niche: proven on neighbouring problems, used when allow_adjacent is true and the niche itself has no proof), source_examples [{ url, creator, views, outlier }], execution (an original concept, hook approach and beats for this problem, labelled hypothesis) }] and rejected_formats [{ format, why_unsuitable }]: formats that do not suit the problem or the profile, however viral their examples are. Source examples are real videos; the execution is AI-written. Included, up to 30 a day. Async: poll /analysis/jobs/{job_id} (under a minute).","operationId":"post_fusion_format_demand_match","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","description":"A question people ask, e.g. \"how to prevent hair damage\" (or keyword or problem_id)"},"keyword":{"type":"string","description":"A search phrase (or question or problem_id)"},"problem_id":{"type":"string","description":"One of your audience problems, prb_… (or question or keyword)"},"profile_id":{"type":"number","description":"A saved profile: its Audience DNA and Creator DNA are used (or send profile)"},"profile":{"type":"object","description":"An inline profile instead of profile_id: { audience_dna { niche, audience, problems, market, tone, ... }, creator_dna { personality, presentation, content_pillars, formats_can, formats_wont, published, optimise_for, strict, preferences, ... } }"},"niche":{"type":"string","description":"The niche (default: the profile's)"},"platform":{"type":"string","description":"Only examples from tt, yt or ig","enum":["tt","yt","ig"]},"allow_adjacent":{"type":"boolean","description":"Use formats proven on neighbouring problems when this one has no proof of its own (default true)"},"market":{"type":"string","description":"US (default), GB, CA or AU","enum":["US","GB","CA","AU"]}}}}}}}},"/fusion/signal-reconciliation":{"post":{"summary":"Reconcile the social and the search signal of up to 50 opportunities. Each item is { opportunity_id } (one of your fop_…, sop_… or opp_… opportunities) or raw numbers { social { videos, creators, verified_outliers, best_outlier_ratio, median_virality_score, baseline_videos, newer, older }, search { volume, trend_pct, measured_queries, checked } } (null or left out = unknown). Result per item: signal_class (jointly_validated, social_led, search_led, exploratory), agreement (agree, partial, conflict, one_sided, insufficient), evidence_state for each side (strong, weak, negative or missing: missing is never treated as negative), contradictions[], missing[], recommendation (prioritize, test, monitor, reject, gather_evidence) and why. Synchronous and deterministic; nothing is looked up or charged. Included, up to 300 Fusion calculations a day.","operationId":"post_fusion_signal_reconciliation","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","description":"1-50 items, each { opportunity_id } or { social {…}, search {…} }","items":{"type":"object","properties":{"opportunity_id":{"type":"string"},"social":{"type":"object","description":"Measured social numbers: videos, creators, verified_outliers, best_outlier_ratio, median_virality_score, baseline_videos, newer, older"},"search":{"type":"object","description":"Measured search numbers: volume, trend_pct, measured_queries, checked"}}}}},"required":["items"]}}}}}},"/fusion/account-fit":{"post":{"summary":"Does it fit the account? Check up to 20 items (your opportunities fop_…, sop_… or opp_…, videos we hold, topics or free texts) against one profile's Audience DNA and Creator DNA. Result per item: verdict (accept or reject), strict_checks (each hard rule of the profile with pass true, false or null when it could not be checked: market, formats the creator will not make, formats it is limited to, excluded topics, already published, no face, no voice, length), preference_matches (soft wishes, never a reason to reject), reasons, drift_risk (low, medium, high: how far it would pull the account from what it is known for), the content pillar it sits in and an AI reading of audience relevance and personality fit (labelled). Popularity is not fit: a video's view count is not part of the reading, so a highly viral reference unrelated to the profile is rejected with reasons. Included, up to 60 a day. Async: poll /analysis/jobs/{job_id} (about 10 seconds).","operationId":"post_fusion_account_fit","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profile_id":{"type":"number","description":"The saved profile to check against (or send profile)"},"profile":{"type":"object","description":"An inline profile instead of profile_id: { audience_dna { niche, audience, problems, market, tone, ... }, creator_dna { personality, presentation, content_pillars, formats_can, formats_wont, published, optimise_for, strict, preferences, ... } }"},"items":{"type":"array","description":"1-20 items, each { opportunity_id } | { video_id } | { topic } | { text }","items":{"type":"object","properties":{"opportunity_id":{"type":"string"},"video_id":{"type":"string"},"topic":{"type":"string"},"text":{"type":"string"}}}},"market":{"type":"string","description":"The market the items are meant for: US, GB, CA or AU (checked against the profile's markets)","enum":["US","GB","CA","AU"]},"exclude":{"type":"array","description":"Up to 50 topics or links to leave out in this check","items":{"type":"string"}}},"required":["items"]}}}}}},"/fusion/portfolio-optimize":{"post":{"summary":"Pick the set of Fusion opportunities to make next. Send opportunity_ids (up to 100) or the job_id of a Fusion job. Options: size (default 10), max_per_format (how many may share one creative mechanism, default 3), balance (signal_class, origin, problem_kind or mechanism, or { by, max_share }: no group takes more than that share), exclude_published (default true: topics in the profile's published list are dropped), related_profile_ids (sister accounts: what they already plan or published is dropped, so accounts do not repeat each other), experiment (default: the profile's switch). Result: selected [{ id, reason }] with a distinct reason each, dropped [{ id, reason }] (rejected, does not fit the account, already published, near-duplicate, over a limit, ranked below), groups of near-duplicates (the same audience problem, subject or main search), and with experiment on arms: the fusion picks next to a labelled social-only control arm (what social evidence alone would have picked), so the two can be compared after publishing. Synchronous and deterministic; nothing is charged. Included, up to 300 Fusion calculations a day.","operationId":"post_fusion_portfolio_optimize","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"opportunity_ids":{"type":"array","description":"1-100 Fusion opportunity ids, fop_… (or send job_id)","items":{"type":"string"}},"job_id":{"type":"number","description":"Every opportunity of this Fusion job (or send opportunity_ids)"},"profile_id":{"type":"number","description":"The profile whose published list and experiment switch apply (default: the profile the opportunities were researched for)"},"size":{"type":"number","description":"How many to select, 1-50 (default 10)"},"balance":{"type":["string","object"],"description":"Spread the set: signal_class, origin, problem_kind, mechanism, or { by, max_share 0.2-1 }"},"max_per_format":{"type":"number","description":"How many selected opportunities may share one creative mechanism, 1-50 (default 3)"},"exclude_published":{"type":"boolean","description":"Drop topics the profile already published (default true)"},"related_profile_ids":{"type":"array","description":"Up to 10 other profiles of yours: topics they already plan or published are dropped","items":{"type":"number"}},"experiment":{"type":"boolean","description":"true adds the labelled social-only control arm (default: the profile's experiment switch)"}}}}}}}},"/fusion/research-escalation":{"post":{"summary":"What evidence is missing behind a Fusion opportunity (opportunity_id) or every opportunity of a Fusion job (job_id), and what resolving it costs. Stored evidence is checked first (a lookup stored in the last 7 days is free). Result: gaps [{ what, why_it_matters, could_change_rank, stored_evidence_checked, cost_credits, kind (search_check, baseline_check, comments_check, research_run), executable, affordable, call { method, path, body } }] ordered by what could change the decision and then by cost, skipped [{ what, why }] (already measured, or pointless because a strict account rule rejects the opportunity), total_cost, affordable_cost inside spend_limit, and a qualified recommendation. With execute false (default) it is a free plan and nothing is bought. With execute true and a spend_limit it starts the affordable search checks as ordinary search jobs at their normal price (10 credits each; free when stored), never beyond spend_limit, and returns their job ids (a full-access key is needed). Other gaps (creator baselines, comments, a research run) are listed with the call that resolves them. Included, up to 300 Fusion calculations a day.","operationId":"post_fusion_research_escalation","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"opportunity_id":{"type":"string","description":"A Fusion opportunity id, fop_… (or send job_id)"},"job_id":{"type":"number","description":"Every opportunity of this Fusion job (or send opportunity_id)"},"spend_limit":{"type":"number","description":"The most to spend on search checks, 0-600 credits (required with execute: true; for a plan it marks what is affordable)"},"execute":{"type":"boolean","description":"true starts the affordable search checks within spend_limit (default false: a free plan)"}}}}}}}},"/fusion/outcomes":{"post":{"summary":"Record what happened after publishing: send the opportunity it came from (fop_…, sop_…, opp_… or a mirror draft mdr_…), the post (post_url or post_id + platform), when it was published and the metrics you have (views, likes, comments, shares, saves, retention_pct, avg_view_seconds, profile_visits, link_clicks, leads, customers). The outcome is judged against the destination account's own baseline (its usual views when the creator is tracked, else the profile's earlier outcomes), on the metric the profile optimises for: verdict win, neutral, miss or pending (never a guess when nothing can be compared), with vs_baseline and what the engine expected. Sending the same opportunity and post again updates it. track: true also starts the existing video tracking for the post at its normal price (10 credits per daily check). The learning report reads these outcomes. Included.","operationId":"post_fusion_outcomes","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opportunity_id":{"type":"string","description":"The opportunity that was produced: fop_…, sop_…, opp_… or mdr_…"},"post_url":{"type":"string","description":"Link to the published post (or post_id)"},"post_id":{"type":"string","description":"The post id on its platform (with platform; or post_url)"},"platform":{"type":"string","description":"tt, yt or ig (read from post_url when left out)","enum":["tt","yt","ig"]},"published_at":{"type":"string","description":"When it was published (ISO date and time)"},"metrics":{"type":"object","description":"What you measured: views, likes, comments, shares, saves, retention_pct, avg_view_seconds, profile_visits, link_clicks, leads, customers"},"profile_id":{"type":"number","description":"The destination profile (default: the opportunity's profile)"},"track":{"type":"boolean","description":"true also starts video tracking for the post (10 credits per daily check; default false)"}},"required":["opportunity_id"]}}}}},"get":{"summary":"The outcomes you recorded, newest first: the opportunity, the post, the metrics you sent, what was expected, the comparison with the destination baseline and the verdict (win, neutral, miss, pending). Filters: opportunity_id, profile_id, verdict.","operationId":"get_fusion_outcomes","parameters":[{"name":"opportunity_id","in":"query","required":false,"description":"Only outcomes of this opportunity","schema":{"type":"string"}},{"name":"profile_id","in":"query","required":false,"description":"Only outcomes of this profile","schema":{"type":"string"}},{"name":"verdict","in":"query","required":false,"description":"win, neutral, miss, pending","schema":{"type":"string","enum":["win","neutral","miss","pending"]}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/fusion/learning-report":{"get":{"summary":"What worked after publishing, for one profile (profile_id) or the whole account: results by origin (push_first, pull_first, joint, exploratory), by signal class, by creative mechanism × the kind of audience problem, by opportunity kind, the winners and the misses, actual against expected and against the destination baseline, and the fusion picks against the labelled social-only control arm with the number of outcomes in each and a 95% range for the difference. The comparison is called an experiment only when both arms were published as assigned, otherwise it is flagged as a correlation; it never assumes Fusion beats social-only research. Learned ranking adjustments are shown only when the profile opted in (creator_dna.learning.enabled) and has at least 20 judged outcomes, and they are bounded. Rates on few outcomes are marked low_sample.","operationId":"get_fusion_learning_report","parameters":[{"name":"profile_id","in":"query","required":false,"description":"One profile (default: the whole account)","schema":{"type":"string"}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/fusion/lead-lag-analysis":{"get":{"summary":"Does social posting move before search interest, or after? For one keyword you researched, one of your audience problems (problem_id) or a niche: the two daily series from stored history (videos posted per day that match the subject; Google Trends interest), aligned on the days they share, and the lag between them. Result: status (measured, insufficient_history or no_consistent_relationship), direction (social_leads, search_leads, coincident, no_consistent_relationship), lag_days, correlation with a 95% confidence range, and the series themselves. A direction is given only when enough aligned history exists; otherwise status is insufficient_history and missing[] says exactly what is needed. Past data only: an observed pattern, never a forecast. Stored search history is shown only for searches your account researched. Included, up to 300 Fusion calculations a day.","operationId":"get_fusion_lead_lag_analysis","parameters":[{"name":"keyword","in":"query","required":false,"description":"A search phrase you looked up (or problem_id or niche)","schema":{"type":"string"}},{"name":"problem_id","in":"query","required":false,"description":"One of your audience problems, prb_… (or keyword or niche)","schema":{"type":"string"}},{"name":"niche","in":"query","required":false,"description":"A niche you researched (or keyword or problem_id)","schema":{"type":"string"}},{"name":"market","in":"query","required":false,"description":"US (default), GB, CA or AU","schema":{"type":"string","enum":["US","GB","CA","AU"]}}],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/fusion/limits":{"get":{"summary":"The Fusion Engine's limits and what is left today: paid research jobs (per account and per API key), the included AI jobs (bidirectional research, problem-intent match, format-demand match, account fit), the calculations that answer at once, the spending limit range, the prices involved and the most items per request.","operationId":"get_fusion_limits","parameters":[],"x-credits":0,"tags":["fusion"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/mirror/creators/track":{"post":{"summary":"Track a creator and mirror them onto your profiles: starts the normal creator tracking (TikTok or YouTube; charged at each check exactly like POST /tracking/creators) and assigns the creator to 1-10 destination profiles (Audience DNA + Creator DNA). frequency_days 1, 2, 3, 7 (default 1): fewer checks cost less, the price per check is unchanged. mode outliers_only (default: a post qualifies at 3× the creator's usual views, or when it is breaking out early) or all_posts. thresholds { min_ratio, min_views, min_score } tighten or loosen that; a threshold that cannot be measured never rejects a post. auto { analyze, adapt, draft } (default all on) are the steps that start by themselves for a qualifying post that fits a profile, under the daily fair use. Sending the same creator again updates the settings and adds the profiles. Answers the mirror creator (mcr_…).","operationId":"post_mirror_creators_track","parameters":[],"x-credits":15,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","description":"tt or yt","enum":["tt","yt"]},"handle":{"type":"string","description":"The creator's handle, with or without @"},"profile_ids":{"type":"array","description":"1-10 of your profile ids","items":{"type":"number"}},"frequency_days":{"type":"number","description":"How often the creator is checked: every 1, 2, 3, 7 days. Each check costs one creator check; fewer checks cost less.","enum":[1,2,3,7]},"mode":{"type":"string","description":"all_posts: every new post qualifies (subject to thresholds). outliers_only (default): a post qualifies when it reaches min_ratio × the creator's usual views, or is breaking out early.","enum":["all_posts","outliers_only"]},"thresholds":{"type":"object","description":"{ min_ratio (1-100; default 3 in outliers_only), min_views (whole number), min_score (virality score 0-100) }. A threshold that cannot be measured for a post never rejects it."},"auto":{"type":"object","description":"{ analyze, adapt, draft }: the steps that start by themselves for a qualifying post (default all on). adapt needs analyze; draft needs adapt. They run under the daily fair use."}},"required":["platform","handle","profile_ids"]}}}}}},"/mirror/creators/{id}/assign":{"post":{"summary":"Set the destination profiles of a mirror creator: the list sent (1-10 profile ids) replaces the current one. Posts already found keep what was made for the earlier profiles; new work goes to the new list.","operationId":"post_mirror_creators_id_assign","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profile_ids":{"type":"array","description":"1-10 of your profile ids (replaces the current list)","items":{"type":"number"}}},"required":["profile_ids"]}}}}}},"/mirror/creators/{id}/settings":{"patch":{"summary":"Change a mirror creator's settings: frequency_days (1, 2, 3 or 7), mode (all_posts or outliers_only), thresholds (fields sent replace the stored ones; null removes one), auto { analyze, adapt, draft } and paused (true stops the checks and their cost and keeps everything found; false starts them again, which needs credits for a check). Only the fields sent change.","operationId":"patch_mirror_creators_id_settings","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"frequency_days":{"type":"number","description":"How often the creator is checked: every 1, 2, 3, 7 days. Each check costs one creator check; fewer checks cost less.","enum":[1,2,3,7]},"mode":{"type":"string","description":"all_posts: every new post qualifies (subject to thresholds). outliers_only (default): a post qualifies when it reaches min_ratio × the creator's usual views, or is breaking out early.","enum":["all_posts","outliers_only"]},"thresholds":{"type":"object","description":"{ min_ratio (1-100; default 3 in outliers_only), min_views (whole number), min_score (virality score 0-100) }. A threshold that cannot be measured for a post never rejects it."},"auto":{"type":"object","description":"{ analyze, adapt, draft }: the steps that start by themselves for a qualifying post (default all on). adapt needs analyze; draft needs adapt. They run under the daily fair use."},"paused":{"type":"boolean","description":"true stops the checks and their cost and keeps everything found so far; false starts them again."}}}}}}}},"/mirror/creators":{"get":{"summary":"Your mirror creators, newest first: settings, the assigned profiles with each link's priority (raised by adaptations that worked, lowered by ones that missed or repeat themselves, with the reasons), tracking state and cost per check, the creator's usual views, counts of posts found and drafts waiting, and whether a creative DNA is built.","operationId":"get_mirror_creators","parameters":[{"name":"profile_id","in":"query","required":false,"description":"Only creators assigned to this profile","schema":{"type":"string"}},{"name":"paused","in":"query","required":false,"description":"true or false","schema":{"type":"string","enum":["true","false"]}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/mirror/creators/{id}":{"get":{"summary":"One mirror creator (mcr_…): settings, assigned profiles and link priorities, tracking state, counts, creative DNA status.","operationId":"get_mirror_creators_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"delete":{"summary":"Remove a mirror creator: its posts and profile links go, its drafts are kept (they stand by themselves). Tracking stops too when the mirror started it; a creator you tracked before stays tracked (daily). ?keep_tracking=true or false overrides that.","operationId":"delete_mirror_creators_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"keep_tracking","in":"query","required":false,"description":"true keeps the plain creator tracking, false stops it (default: stops it only when the mirror started it)","schema":{"type":"string","enum":["true","false"]}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/mirror/creators/{id}/new-posts":{"get":{"summary":"Posts found for a mirror creator since the mirror started, newest first, each with its qualification: views against the creator's usual views (ratio, outlier class, age-matched when enough posts are of a similar age, percentile), early breakout when two readings exist, virality score, topic and format, each threshold (pass, fail or not measurable), the strict-rule verdict per assigned profile, the reasons, and what the automatic steps did. Filters: qualified, outliers, kind, since; include_baseline=true adds the posts recorded at the first check. Posts clearly in another language are hidden (English only, for now).","operationId":"get_mirror_creators_id_new_posts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"qualified","in":"query","required":false,"description":"true or false","schema":{"type":"string","enum":["true","false"]}},{"name":"outliers","in":"query","required":false,"description":"true for outliers only","schema":{"type":"string","enum":["true","false"]}},{"name":"kind","in":"query","required":false,"description":"video or carousel","schema":{"type":"string","enum":["video","carousel"]}},{"name":"since","in":"query","required":false,"description":"Only posts found on or after this date (YYYY-MM-DD)","schema":{"type":"string"}},{"name":"include_baseline","in":"query","required":false,"description":"true also lists the posts recorded at the first check","schema":{"type":"string","enum":["true","false"]}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 25)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/mirror/posts/{id}":{"get":{"summary":"One mirror post (mps_…) with everything made from it: the qualification, the analysis (topic apart from mechanism, and the fit per profile), the adaptation per destination profile and its drafts.","operationId":"get_mirror_posts_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/mirror/creators/{id}/creative-dna":{"get":{"summary":"The creative DNA of a mirror creator: recurring hook structures, sequencing and pacing, visual patterns, shots, camera and editing, formats, storytelling mechanisms and signature elements, split into reusable_mechanisms (how they work, usable for any topic) and signature_style (what belongs to the creator). Each pattern lists the videos that show it; measured numbers (lengths, cuts) are kept apart from AI readings. status not_built until POST builds it.","operationId":"get_mirror_creators_id_creative_dna","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"post":{"summary":"Build or refresh a creator's creative DNA from the frame-by-frame breakdowns of their videos: the ones that exist, plus up to 3 new ones of their strongest posts inside your daily allowance of video breakdowns (20 a day, shared with POST /videos/{id}/analyze). Async: poll /analysis/jobs/{job_id} (a few minutes when new videos are analysed), then read GET. Included, up to 5 a day. With fewer than 3 analysed videos the patterns are single observations and the answer says so.","operationId":"post_mirror_creators_id_creative_dna","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/mirror/posts/{id}/analyze":{"post":{"summary":"Analyse one mirror post: what it is about (topic, the viewer's problem) apart from how it works (the mechanism: hook, the order in which it delivers, pacing category, presentation format, what keeps people watching), what any creator could reuse against what belongs to this creator, and the fit against each assigned profile (strict rules about the subject checked exactly; audience, personality and content pillar read by AI; view counts are never shown to that reading). A video is read frame by frame through the creative breakdown (inside your 20 a day; a photo carousel or a video that cannot be fetched is read from its caption only, and says so). Async: poll /analysis/jobs/{job_id} (a few minutes when the video is read). Included, up to 30 a day. Analysed once: send refresh: true to do it again.","operationId":"post_mirror_posts_id_analyze","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"refresh":{"type":"boolean","description":"true analyses the post again"}}}}}}}},"/mirror/posts/{id}/adapt":{"post":{"summary":"Adapt a mirror post to one of your profiles: the source's general mechanism is kept (the educational sequence step for step, the pacing category, the presentation format), while the topic, the context and the tone are changed to the destination's Audience DNA and Creator DNA, with new examples, dialogue and visual ideas. Answers what is kept, what changed and why, the adapted concept (topic, angle, audience problem, hook approach, structure with seconds, payoff, CTA), the account-fit verdict (accept or reject with the strict checks and the reasons), the source link and its measured performance. A source that does not fit the profile is not adapted (verdict reject and why) unless force is true. format short (default), carousel or long; tone optional. A post not analysed yet is analysed first. Async: poll /analysis/jobs/{job_id}. Included, up to 30 a day.","operationId":"post_mirror_posts_id_adapt","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profile_id":{"type":"number","description":"The destination profile"},"format":{"type":"string","description":"short (default), carousel or long","enum":["short","carousel","long"]},"tone":{"type":"string","description":"Tone of voice, e.g. \"calm and direct\" (default: the profile's)"},"force":{"type":"boolean","description":"true adapts even when the fit verdict is reject (the verdict is still shown)"}},"required":["profile_id"]}}}}}},"/mirror/posts/{id}/generate-draft":{"post":{"summary":"Generate the production package for a mirror post and one of your profiles: the script; scene by scene (seconds, the voiceover line, on-screen text, shot and camera direction, b-roll, and a visual_spec written for your own generation tools); for a carousel the slides (headline, body, layout, visual_spec); the hook, the caption and the call to action; the source references and the source's measured performance; as JSON and Markdown. Text and structure only: nothing is rendered, generated or published. kind video or carousel (default: what the source is). Uses the adaptation for that profile (made first when missing). The draft (mdr_…) waits for review at /mirror/drafts. Async: poll /analysis/jobs/{job_id} (about a minute). Included, up to 20 a day.","operationId":"post_mirror_posts_id_generate_draft","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profile_id":{"type":"number","description":"The destination profile"},"kind":{"type":"string","description":"video or carousel (default: what the source post is)","enum":["video","carousel"]},"force":{"type":"boolean","description":"true drafts even when the fit verdict is reject (the verdict is still shown)"}},"required":["profile_id"]}}}}}},"/mirror/drafts":{"get":{"summary":"Your mirror drafts, newest first: status (pending_review, approved, rejected, changes_requested), kind, topic, title, the destination profile, the source post with its measured performance, the fit verdict. Filters: status, profile_id, creator_id, post_id, kind. Read one for the package.","operationId":"get_mirror_drafts","parameters":[{"name":"status","in":"query","required":false,"description":"pending_review, approved, rejected, changes_requested","schema":{"type":"string","enum":["pending_review","approved","rejected","changes_requested"]}},{"name":"profile_id","in":"query","required":false,"description":"Only drafts for this profile","schema":{"type":"string"}},{"name":"creator_id","in":"query","required":false,"description":"Only drafts from this mirror creator (mcr_…)","schema":{"type":"string"}},{"name":"post_id","in":"query","required":false,"description":"Only drafts from this mirror post (mps_…)","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"video or carousel","schema":{"type":"string","enum":["video","carousel"]}},{"name":"limit","in":"query","required":false,"description":"1-100 (default 20)","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/mirror/drafts/{id}":{"get":{"summary":"One mirror draft (mdr_…): the production package (script, scenes or slides, hook, caption, CTA, source references, performance evidence), the brief it follows (what is kept from the source and what changed), the account fit, the review status and earlier versions; with a markdown field. ?format=markdown answers the Markdown document itself (text/markdown).","operationId":"get_mirror_drafts_id","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"json (default) or markdown","schema":{"type":"string","enum":["json","markdown"]}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}}},"/mirror/drafts/{id}/review":{"post":{"summary":"Review a mirror draft: approve, reject, or request_changes with feedback (the draft is rewritten with it as a new version and returns to pending_review; poll the job, or wait for mirror.draft_ready). A decision can be changed later, except while a rewrite is running. Every decision raises mirror.draft_reviewed and feeds the creator link's priority. A rewrite counts in the 20 drafts a day.","operationId":"post_mirror_drafts_id_review","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","description":"approve, reject or request_changes","enum":["approve","reject","request_changes"]},"feedback":{"type":"string","description":"What should change (needed for request_changes), or a note on the decision; up to 1,000 characters"}},"required":["decision"]}}}}}},"/mirror/outcomes":{"post":{"summary":"What happened after you published a mirror draft: send the draft id, the post link (or platform + post_id) and the metrics you have (views, likes, comments, shares, saves, retention_pct, avg_view_seconds, profile_visits, link_clicks, leads, customers). Stored with the Fusion outcomes (one learning dataset) and judged against the destination account's usual result: win at 1.5× or more, miss under 0.75×, pending when nothing can be compared yet or the post is under 2 days old. Sending the same post again updates it. The learning report (GET /fusion/learning-report) ranks creator-to-account matches from these, and results move the creator link's priority: adaptations that miss, or keep repeating a subject, lower it.","operationId":"post_mirror_outcomes","parameters":[],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draft_id":{"type":"string","description":"The mirror draft that was published (mdr_…)"},"post_url":{"type":"string","description":"Link to the published post (or send platform + post_id)"},"post_id":{"type":"string","description":"The post's id on the platform"},"platform":{"type":"string","description":"tt, yt or ig","enum":["tt","yt","ig"]},"published_at":{"type":"string","description":"When it was published (ISO date and time)"},"metrics":{"type":"object","description":"Any of views, likes, comments, shares, saves, retention_pct, avg_view_seconds, profile_visits, link_clicks, leads, customers"}},"required":["draft_id"]}}}}}},"/mirror/settings":{"get":{"summary":"Mirror notification settings: whether mirror emails are on, the event types (mirror.post_found, mirror.outlier_found, mirror.brief_ready, mirror.draft_ready, mirror.draft_reviewed) and how each channel is reached. Every event carries its id, the source link and the measured performance; webhook deliveries are signed (X-Lulubanana-Signature) and numbered (X-Lulubanana-Delivery).","operationId":"get_mirror_settings","parameters":[],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}}},"put":{"summary":"Switch mirror emails on or off (in-app notices and webhooks are not affected).","operationId":"put_mirror_settings","parameters":[],"x-credits":0,"tags":["mirror"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email_notifications":{"type":"boolean","description":"Mirror emails on or off"}},"required":["email_notifications"]}}}}}},"/mcp":{"post":{"summary":"MCP server (Model Context Protocol, Streamable HTTP). Connect an AI assistant with your API key; every endpoint is a tool.","operationId":"post_mcp","parameters":[],"x-credits":0,"tags":["mcp"],"responses":{"200":{"description":"OK. Headers X-Credits-Used and X-Credits-Remaining report the cost and the balance.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"401":{"description":"Missing, wrong or revoked key"},"402":{"description":"Not enough credits (code insufficient_credits) or the key reached its monthly limit (code key_limit_reached). Nothing was charged."},"404":{"description":"Not found"},"429":{"description":"Rate limit: 60 requests a minute per key"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}}}}