{"openapi":"3.1.0","info":{"title":"Viral Manager API","version":"1.1.0","summary":"Instagram & TikTok virality intelligence and content production for creator agencies.","description":"Every endpoint runs one tool of the Viral Manager MCP server (https://viral-managers.com/api/mcp) with the same arguments, permissions and limits. POST a JSON object of arguments to /api/v1/<tool>; the result comes back in `data`. Authenticate with `Authorization: Bearer vm_...` (an API key from Settings > API and MCP, or from /api/agent/trial, /api/agent/credits or /api/agent/subscribe).\n\nViral Manager (Instagram & TikTok virality intelligence and content production). Default presentation rules: whenever you mention or list posts, ALWAYS include each post's clickable link (`url` / `post_url` field) so the user can open it. Write a virality multiplier as x22.4, nothing else. When discussing one or a few specific posts (a daily digest, a recommendation, an assignment brief), call get_post_preview for each to show its thumbnail inline in the conversation - do not describe a post the user could be shown. To browse Viral Manager's Discovery catalogue (viral posts from curated accounts across niches, beyond the user's watchlist), use list_discovery_posts: it returns the thumbnails inline. Likewise for library assets: search_assets only returns text; call get_asset_preview to see what an asset actually shows before judging, recommending or describing it. Download URLs (get_post_download_url, get_asset_download_url, get_my_account_post_download_url) are short-lived presigned links: share them as-is when the user wants the file. Files on the user's computer: if you download videos to edit or render them locally, keep everything in one temporary folder, delete each file as soon as it is uploaded back (confirm_asset_upload) or no longer needed, and delete the folder at the end of the job, even if it fails: nothing may stay on the user's computer.","contact":{"name":"Viral Manager","url":"https://viral-managers.com/contact","email":"support@viral-managers.com"},"termsOfService":"https://viral-managers.com/terms"},"externalDocs":{"description":"MCP server and API documentation","url":"https://viral-managers.com/docs/mcp"},"servers":[{"url":"https://viral-managers.com"}],"security":[{"bearer":[]}],"tags":[{"name":"Virality"},{"name":"Watchlist"},{"name":"My Accounts"},{"name":"Production"},{"name":"Folders & Drive"},{"name":"Assets"},{"name":"Organize"},{"name":"Feedback"},{"name":"Agent access"}],"paths":{"/api/v1/add_post_note":{"post":{"operationId":"add_post_note","summary":"Add post note","description":"Add a note to the team's thread on a post. The note is visible to the whole team in the app, authored by the MCP key's user.","tags":["Organize"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_id":{"type":"string","description":"Post id (UUID)"},"content":{"type":"string","minLength":1,"description":"Note text (max 5000 characters)"}},"required":["post_id","content"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/add_watchlist_account":{"post":{"operationId":"add_watchlist_account","summary":"Add watchlist account","description":"Add an Instagram account to the user's watchlist so its viral posts get detected automatically. Requires an active subscription and respects the plan's account limit.","tags":["Watchlist"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","description":"Instagram username (with or without @) or profile URL"}},"required":["username"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/analyze_post_url":{"post":{"operationId":"analyze_post_url","summary":"Analyze a post URL","description":"Import an Instagram or TikTok post URL and run the AI virality analysis on it. COSTS 1 CREDIT from the user's plan (unless the post was already analyzed). Requires an active subscription. The analysis runs asynchronously: poll get_post_analysis with the returned post id until analysis_status is 'completed' (or 'failed').","tags":["Virality"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Full post URL (instagram.com/reel/..., tiktok.com/@user/video/...)"}},"required":["url"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/archive_folder":{"post":{"operationId":"archive_folder","summary":"Archive folders","description":"Archive (or restore) SEVERAL assignment folders in ONE call. Archiving cascades to each subtree; restoring also restores ancestors. Typical weekly reset: pass every week folder at once. Reversible (unlike delete_folder).","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Folders to process (id, name or full path each)"},"action":{"type":"string","enum":["archive","unarchive"],"default":"archive"}},"required":["folders"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/archive_my_accounts":{"post":{"operationId":"archive_my_accounts","summary":"Archive my accounts","description":"Archive (or restore) one or SEVERAL of the org's own connected accounts (My Accounts). Archiving takes them out of the lists and stops their sync WITHOUT deleting anything, and it can be undone, unlike delete_my_accounts. Restoring takes a plan slot back, so it can fail with LIMIT_REACHED.","tags":["My Accounts"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Accounts to archive or restore (username, display name or id from list_my_accounts)"},"archived":{"type":"boolean","default":true,"description":"true = archive, false = restore into the active list"},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Disambiguates when the same username exists on both platforms"}},"required":["accounts"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/assign_crew":{"post":{"operationId":"assign_crew","summary":"Assign crew","description":"Set who edits, clips and posts one or more assignments (the production chain after the creator films). Each role is optional: leave it empty to keep the current member, pass a name or member_id (see list_crew) to set it, or 'none' to detach the step. A member can only take the step matching their own role.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assignment_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Assignment ids (from list_assignments)"},"editor":{"type":"string","default":"","description":"Editor (monteur): name, member_id, 'none' to detach, empty to keep"},"clipper":{"type":"string","default":"","description":"Clipper: name, member_id, 'none' to detach, empty to keep"},"poster":{"type":"string","default":"","description":"Poster: name, member_id, 'none' to detach, empty to keep"}},"required":["assignment_ids"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/assign_edit":{"post":{"operationId":"assign_edit","summary":"Assign finished edit","description":"Assign a finished edit (e.g. the asset returned by create_basic_edit) so it gets posted: the reel is linked to the assignment as its reference video, like the video editor's 'export to an assignment'. Either pass assignment_id to attach it to an existing assignment, or post_id to create the assignment of that post. Recipients: usually a poster (crew), optionally an editor/clipper and/or creators. Recipients are notified by push.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"asset_id":{"type":"string","description":"Asset id of the finished reel (create_basic_edit's asset.id, or search_assets)"},"post_id":{"type":"string","default":"","description":"Post the reel reproduces (the post_id given to create_basic_edit). Creates its assignment. Ignored when assignment_id is set."},"assignment_id":{"type":"string","default":"","description":"Existing assignment to attach the reel to (from list_assignments). Empty = create one from post_id."},"poster":{"type":"string","default":"","description":"Poster who publishes the reel: name or member_id (see list_crew). Empty = keep / none"},"editor":{"type":"string","default":"","description":"Optional editor: name or member_id. Empty = keep / none"},"clipper":{"type":"string","default":"","description":"Optional clipper: name or member_id. Empty = keep / none"},"models":{"type":"array","items":{"type":"string"},"default":[],"description":"Optional creators (model_id, name or email, see list_models). Only used when creating the assignment."},"due_date":{"type":"string","default":"","description":"Optional due date, YYYY-MM-DD"},"admin_note":{"type":"string","maxLength":2000,"default":"","description":"Optional brief shown to the recipients (e.g. caption, posting time)"},"tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Optional tags (added to existing ones)"},"folder":{"type":"string","default":"","description":"Optional destination folder when creating (id, name or full path, see list_folders)"}},"required":["asset_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/confirm_asset_upload":{"post":{"operationId":"confirm_asset_upload","summary":"Confirm asset upload","description":"Second step of a presigned upload_asset: once the file has been PUT to upload_url, creates the asset in the library with its name, notes, category and tags. Analysis: edits are never used for asset matching, so they are not AI-analyzed: they only get a thumbnail and their duration (analysis=skipped_not_in_matching). Raw footage (kind='rush') is always analyzed.","tags":["Assets"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"upload_id":{"type":"string","description":"upload_id returned by upload_asset"},"name":{"type":"string","default":"","description":"Asset name. Empty = the file name without its extension."},"notes":{"type":"string","maxLength":5000,"default":"","description":"Internal notes saved on the asset (e.g. the caption or brief that came with the file)"},"category":{"type":"string","default":"","description":"Category (id or name). Empty = none."},"tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Custom tags"},"kind":{"type":"string","enum":["edit","rush"],"default":"edit","description":"'edit' (default) = a finished reel/edit to be posted. 'rush' = raw footage meant for asset matching (e.g. migrating a library): always fully AI-analyzed."}},"required":["upload_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/create_assignment":{"post":{"operationId":"create_assignment","summary":"Create assignment","description":"Assign a viral post to one or more creators so they reproduce it (Production workflow). The post must already exist in the library (see list_viral_posts / analyze_post_url). Creators are notified by push. Assigning an already-assigned post updates it instead of duplicating: only the fields you provide are refreshed, omitted fields keep their current value.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_id":{"type":"string","description":"Post id (UUID) from list_viral_posts / list_analyzed_posts"},"models":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Creators to assign, by model_id, name or email (see list_models)"},"due_date":{"type":"string","default":"","description":"Optional due date, YYYY-MM-DD"},"admin_note":{"type":"string","default":"","description":"Optional brief/instructions shown to the creator"},"tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Optional tags"},"folder":{"type":"string","default":"","description":"Optional destination folder (id, name or full path, see list_folders). Applied as-is to every creator; the app's per-creator folder auto-routing is not applied here."}},"required":["post_id","models"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/create_basic_edit":{"post":{"operationId":"create_basic_edit","summary":"Create basic edit","description":"Make a basic edit of an analyzed post and deliver it: takes an asset (by default the first one of the analysis' asset matching), lays the on-screen text the analysis read over it (same style as the video editor: white text, black outline), replaces its sound with the post's audio, and renders a 1080x1920 MP4 as long as the shorter of the two. The result is added to the asset library and returned with a download link valid 24h. Takes up to a couple of minutes. Post ids come from list_analyzed_posts; matched assets are in get_post_analysis (analysis.asset_matching) or search_assets. The returned asset id is what assign_edit takes to send the finished reel to a poster.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_id":{"type":"string","description":"Analyzed post id (UUID, from list_analyzed_posts)"},"asset_id":{"type":"string","default":"","description":"Asset to edit (id from the analysis' matching or search_assets). Empty = the first matched asset."},"text":{"type":"string","maxLength":500,"description":"Text to lay over the video, lines separated by \\n. Omit to use the on-screen text of the analysis; empty string = no text."},"position":{"type":"string","enum":["top","center","bottom"],"default":"top","description":"Where the text sits"},"lang":{"type":"string","enum":["en","fr"],"default":"en","description":"Language of the analysis text to use (the analysis keeps an English and a French copy)"},"name":{"type":"string","maxLength":120,"default":"","description":"Name of the new asset. Empty = '@account · asset name · edit'."}},"required":["post_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/create_category":{"post":{"operationId":"create_category","summary":"Create category","description":"Create a category (usable on watchlist accounts, posts and assets). Only the org owner or an admin can manage categories.","tags":["Organize"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Category name"},"color":{"type":"string","default":"","description":"Optional hex color like #3B82F6 (default blue)"}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/create_creator":{"post":{"operationId":"create_creator","summary":"Create creator","description":"Add a creator (model) working through a private link: no account, no email. She sees the posts assigned to her and uploads her videos from that link. Returns the private portal link to send her. Counts against the plan's creator limit, not a seat. Editors, clippers and posters are added by create_crew_member.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Creator name, shown in Production and on her portal"},"access_code":{"type":"string","default":"","description":"Optional access code (PIN) asked when opening the private link"}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/create_crew_member":{"post":{"operationId":"create_crew_member","summary":"Create crew member","description":"Create a crew member (editor, clipper or poster) working through a private link, like a creator: no account, no email. Returns the private portal link to send them. Takes one seat of the plan.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Member name, shown in Production and on their portal"},"role":{"type":"string","enum":["editor","clipper","poster"],"description":"editor (monteur), clipper or poster"},"access_code":{"type":"string","default":"","description":"Optional access code (PIN) asked when opening the private link"}},"required":["name","role"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/create_drive_folder":{"post":{"operationId":"create_drive_folder","summary":"Create Google Drive folder","description":"Create a folder in the organization's connected Google Drive (at the root, or inside an accessible Drive folder) and optionally link it right away to a production folder so the creators' videos land in it. Folders created here stay writable by the app.","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Drive folder name"},"parent_drive_folder":{"type":"string","default":"","description":"Parent Drive folder (id or name from list_drive_folders). Empty = Drive root."},"link_to_folder":{"type":"string","default":"","description":"Production folder (id, name or full path) to link to the new Drive folder. Empty = just create."}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/create_folder":{"post":{"operationId":"create_folder","summary":"Create folder","description":"Create an assignment folder, optionally inside a parent folder and optionally owned by a creator (a creator-owned ROOT folder becomes her bucket and drives per-creator routing in the app).","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Folder name"},"parent":{"type":"string","default":"","description":"Parent folder (id, name or full path). Empty = root folder."},"owner_model":{"type":"string","default":"","description":"Creator owning this folder (name, email or model_id). Only meaningful on a root folder. Empty = shared folder."}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/delete_assignment":{"post":{"operationId":"delete_assignment","summary":"Delete assignments","description":"Delete one or more assignments permanently. Not reversible; update_assignment with status 'refused' keeps an assignment so the work can be redone.","tags":["Production"],"x-read-only":false,"x-destructive":true,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assignment_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Assignment ids to delete"}},"required":["assignment_ids"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/delete_category":{"post":{"operationId":"delete_category","summary":"Delete category","description":"Delete a category. The accounts, posts and assets that used it are kept and simply lose their category. Owner or admin only.","tags":["Organize"],"x-read-only":false,"x-destructive":true,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","description":"Category to delete (id or name)"}},"required":["category"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/delete_folder":{"post":{"operationId":"delete_folder","summary":"Delete folder","description":"Delete an assignment folder PERMANENTLY (its subfolders are deleted too; assignments inside are kept but lose their folder). Not reversible (archiving with update_folder is).","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":true,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"string","description":"Folder to delete (id, name or full path)"}},"required":["folder"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/delete_folders":{"post":{"operationId":"delete_folders","summary":"Delete folders","description":"Delete SEVERAL assignment folders PERMANENTLY in ONE call (subtrees are deleted too; assignments inside are kept but lose their folder). Not reversible (archive_folder is).","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":true,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Folders to delete (id, name or full path each)"}},"required":["folders"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/delete_my_accounts":{"post":{"operationId":"delete_my_accounts","summary":"Delete my accounts","description":"Delete one or SEVERAL of the org's own connected accounts (My Accounts) PERMANENTLY, in one call. Everything goes: the account, its posts, its stats, its tags and its scheduled posts, and the official Instagram/TikTok connection is cut. This is NOT reversible and NOT the same as disconnecting; archive_my_accounts is the reversible counterpart, which keeps the data. Typical use: cleaning up burner accounts that got banned or checkpointed and will never come back.","tags":["My Accounts"],"x-read-only":false,"x-destructive":true,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Accounts to delete (username, display name or id from list_my_accounts, one entry each)"},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Disambiguates when the same username exists on both platforms"},"confirm":{"type":"boolean","default":false,"description":"Must be true to actually delete. Called with false (the default), the tool only REPORTS what would be deleted."}},"required":["accounts"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/delete_tag":{"post":{"operationId":"delete_tag","summary":"Delete tag","description":"Delete a tag EVERYWHERE: removes it from every post and asset of the organization and from the global registry. Untagging individual items is done by tag_posts / update_asset with remove_tags.","tags":["Organize"],"x-read-only":false,"x-destructive":true,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"type":"string","minLength":1,"description":"Tag to delete (as shown by list_tags)"}},"required":["tag"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/dispatch_video":{"post":{"operationId":"dispatch_video","summary":"Send video to post","description":"Send a delivered video of an assignment (a creator rush, an editor reel or a clipper clip) to one or several crew members of a LATER step, or plan a variation before it is delivered. With video_id: that video goes to the recipients now. Without video_id: plans variation number `variation` (0 = next free) of `from_stage`; the next video that step delivers fills it and goes to those recipients. Recipients are notified by push. Get video ids from get_assignment (submitted_videos / crew_videos).","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assignment_id":{"type":"string","description":"Assignment id (from list_assignments)"},"recipients":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Crew members by name or member_id (see list_crew). Order matters: creator -> editor/clipper/poster, editor -> clipper/poster, clipper -> poster."},"video_id":{"type":"string","default":"","description":"Delivered video id to send. Empty = plan a variation instead."},"from_stage":{"type":"string","enum":["creator","editor","clipper"],"default":"editor","description":"Step whose video is expected (only used when planning, without video_id)"},"variation":{"type":"integer","minimum":0,"maximum":50,"default":0,"description":"Variation number to plan (0 = next free one)"},"from_member":{"type":"string","default":"","description":"Only when planning an editor/clipper variation: crew member (name or member_id) whose video fills it, so editor 1's reel goes to poster 1 and editor 2's to poster 2. Empty = the first video any member of that step delivers."},"note":{"type":"string","maxLength":1000,"default":"","description":"Optional instruction attached to this send (e.g. 'post at 6pm, caption B'), shown only to the recipients and managers. Sending again to a member who already has the video replaces the note."}},"required":["assignment_id","recipients"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/duplicate_folder":{"post":{"operationId":"duplicate_folder","summary":"Duplicate folder","description":"Duplicate a folder: recreates its subfolder tree and copies its assignments (same posts, brief and tags, fresh 'pending' status). Use owner_model to clone a template folder (e.g. 'Beginner content') for a NEW creator: every copied assignment is then assigned to her. Drive links are not copied (set_drive_folder can link the copy).","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"string","description":"Source folder (id, name or full path)"},"new_name":{"type":"string","default":"","description":"Name of the copy. Empty = '<source name> (copy)'."},"parent":{"type":"string","default":"","description":"Where to create the copy: parent folder (id, name or path), 'root', or empty = same parent as the source."},"owner_model":{"type":"string","default":"","description":"Creator to assign ALL copied assignments to (name, email or model_id). She also owns the copy when it is a root folder. Empty = keep each assignment's original creator."},"copy_assignments":{"type":"boolean","default":true,"description":"Also copy the assignments (false = folder tree only)"}},"required":["folder"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_account_recipes":{"post":{"operationId":"get_account_recipes","summary":"Get account recipes","description":"What works on ONE of the org's own accounts (My Accounts): its recipes, i.e. the concepts (the precise hook / idea of a video) that made at least 2 viral posts on THIS account in the last 30 days, with at least one in the last 14 days (3+ = confirmed recipe, 2 = lead to confirm). Most recent first: viral_count_7d and viral_count_14d say how many of them are from the last 7 / 14 days. Each recipe lists its viral posts (proofs) with their multiplier. A concept that works on one account often fails on another: suggest it for this account only.","tags":["My Accounts"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"string","description":"Account (username, display name or id from list_my_accounts)"},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Disambiguates when the same username exists on both platforms"}},"required":["account"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_asset_download_url":{"post":{"operationId":"get_asset_download_url","summary":"Get asset download link","description":"Get downloadable URLs for an asset of the library (the original file on permanent storage, plus its thumbnail), e.g. to save it or send it to another service like a Drive. The download_url forces a file download with a clean filename and stays valid 24h; the file_url is the permanent public URL.","tags":["Assets"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"asset":{"type":"string","description":"Asset (id from search_assets, or exact name)"}},"required":["asset"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_asset_preview":{"post":{"operationId":"get_asset_preview","summary":"Show asset preview","description":"SEE the visual content of an asset of the library. For a video, returns several still frames spread over its duration (with their timestamps); for an image, returns the image itself. Useful to check what an asset actually shows (outfit, setting, framing, text on screen), or to show it to the user.","tags":["Assets"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"asset":{"type":"string","description":"Asset (id from search_assets, or exact name)"},"frames":{"type":"integer","minimum":1,"maximum":8,"default":4,"description":"For a video: number of frames to extract, spread over the video (max 8)"}},"required":["asset"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_assignment":{"post":{"operationId":"get_assignment","summary":"Get assignment","description":"Get the full detail of one assignment: notes exchanged with the creator, reply thread, due date, and the submitted videos (the creator's final renders) as URLs.","tags":["Production"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assignment_id":{"type":"string","description":"Assignment id (from list_assignments)"}},"required":["assignment_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_crew_upload_stats":{"post":{"operationId":"get_crew_upload_stats","summary":"Get crew delivery stats","description":"Count the videos delivered by crew members (editors, clippers, posters) per day, week or month. Reads the full upload history: a delivered video still counts after its file was deleted or its assignment purged. A file counts once, for its first upload: the same file attached again to another assignment is a reuse, reported in `reuses` and never in `uploads`. Use it for 'how many videos did my editors upload today / this week / on a given date'.","tags":["Production"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","default":"","description":"Start (ISO date or datetime, inclusive). Empty = 30 days before `to`."},"to":{"type":"string","default":"","description":"End (ISO date or datetime, exclusive). Empty = now."},"bucket":{"type":"string","enum":["day","week","month"],"default":"day","description":"Period grouping"},"timezone":{"type":"string","default":"UTC","description":"IANA time zone used to cut the days, e.g. Europe/Paris"},"crew":{"type":"string","default":"","description":"Only this crew member (name or member_id, see list_crew). Empty = everyone."}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_dashboard_stats":{"post":{"operationId":"get_dashboard_stats","summary":"Get dashboard stats","description":"Get the organization's dashboard stats: watchlist size, viral post counts, analyses, recent activity.","tags":["Virality"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_drive_connection":{"post":{"operationId":"get_drive_connection","summary":"Get Google Drive status","description":"Status of the organization's Google Drive connection, used to send creators' submitted videos straight into Drive folders instead of the app's storage. Connecting (Google consent screen) can only be done by a manager from the app (Production → folder menu → 'Link a Drive folder'); once connected, this MCP can list/create Drive folders and link them to production folders or assignments.","tags":["Folders & Drive"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_member_link":{"post":{"operationId":"get_member_link","summary":"Get member portal link","description":"Get the private portal link of an existing link member: a creator (see list_models) or a production crew member (see list_crew). Use it when the user lost the link or wants to send it again. Only the owner or an admin can read it.","tags":["Production"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"member":{"type":"string","minLength":1,"description":"Member name or id (model_id / member_id)"}},"required":["member"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_my_account_post_download_url":{"post":{"operationId":"get_my_account_post_download_url","summary":"Get my post download link","description":"Get a downloadable URL for the video of one of the org's OWN posts (My Accounts). Instagram: resolved live from the official API with the account's own token; the URL is directly downloadable by any service but expires after a few hours. TikTok: the URL requires the returned session cookies (browser-like fetch), so external services usually cannot fetch it directly.","tags":["My Accounts"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_id":{"type":"string","description":"Post id (UUID, the 'id' field from list_my_account_posts)"}},"required":["post_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_my_account_stats":{"post":{"operationId":"get_my_account_stats","summary":"Get my account stats","description":"Get the growth stats of one of the org's own connected accounts (My Accounts): followers/views history snapshots, breakthrough count, and its top posts by views.","tags":["My Accounts"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"string","description":"Account to inspect (username, display name or id from list_my_accounts)"},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Disambiguates when the same username exists on both platforms"}},"required":["account"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_post_analysis":{"post":{"operationId":"get_post_analysis","summary":"Get post analysis","description":"Get the full detail of one viral post, including the AI analysis (hook, structure, why it went viral, replication guide) when available. Pass the post id returned by list_viral_posts or list_analyzed_posts.","tags":["Virality"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_id":{"type":"string","description":"Post id (UUID) or Instagram shortcode"}},"required":["post_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_post_download_url":{"post":{"operationId":"get_post_download_url","summary":"Get post download link","description":"Get a downloadable URL for a library post's video file (plus its thumbnail), e.g. to save it or send it to another service like a Drive. Posts that were AI-analyzed have a PERMANENT copy of the video (source 'permanent_copy'); otherwise the returned URL is a platform CDN link that can expire, and TikTok CDN links often refuse non-browser downloads.","tags":["Virality"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_id":{"type":"string","description":"Post id (UUID) from list_viral_posts / list_analyzed_posts"}},"required":["post_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_post_preview":{"post":{"operationId":"get_post_preview","summary":"Show post preview","description":"Get the visual preview (thumbnail image) of a post so the user can SEE it in the conversation. Works for the org's viral posts, Discovery posts (list_discovery_posts) and posts referenced by an assignment. Returns the image inline plus the video URL when available.","tags":["Virality"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_id":{"type":"string","description":"Post id (UUID) from list_viral_posts, list_analyzed_posts, list_discovery_posts or an assignment"}},"required":["post_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/get_trending_sounds":{"post":{"operationId":"get_trending_sounds","summary":"Get trending sounds","description":"Get the current snapshot of trending sounds (music rising on Instagram Reels), optionally filtered by niche.","tags":["Virality"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"niche":{"type":"string","default":"","description":"Optional niche filter (e.g. fitness, beauty). Empty = all niches."},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20,"description":"Number of sounds to return (max 50)"}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/invite_member":{"post":{"operationId":"invite_member","summary":"Invite team member","description":"Invite someone by email to the app dashboard (an account with a login, unlike creators and crew who work through a private link). Roles: admin (manages the team and billing-free settings), member (manager: works in the app), viewer (read only). Sends the invitation email and takes one seat of the plan. If the email could not be sent, the invite_link is returned so the user can send it themselves.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":3,"description":"Email of the person to invite"},"role":{"type":"string","enum":["admin","member","viewer"],"default":"member","description":"App role"},"locale":{"type":"string","enum":["en","fr","es"],"default":"en","description":"Language of the invitation email"}},"required":["email"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_analyzed_posts":{"post":{"operationId":"list_analyzed_posts","summary":"List analyzed posts","description":"List the posts that already have a completed AI analysis, newest first. Each post has its `url`.","tags":["Virality"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":50,"default":12,"description":"Number of posts to return (max 50)"},"offset":{"type":"integer","minimum":0,"default":0,"description":"Pagination offset"}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_assignments":{"post":{"operationId":"list_assignments","summary":"List assignments","description":"List the organization's content assignments (viral posts assigned to creators to reproduce), with their production status and the crew attached to each (editor, clipper, poster). Statuses: pending, in_progress, sent (video submitted — an assignment is validated as soon as the video is received), refused. When presenting assignments to the user, include the `post_url` link of each referenced post.","tags":["Production"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["all","pending","in_progress","sent","refused"],"default":"all","description":"Filter by production status"},"model":{"type":"string","default":"","description":"Filter by creator (name, email or model_id). Empty = all creators."},"crew":{"type":"string","default":"","description":"Filter by crew member attached to the post (editor, clipper or poster; name or member_id, see list_crew). Empty = no crew filter."},"to_dispatch_only":{"type":"boolean","default":false,"description":"Only assignments with delivered videos (creator rushes, editor reels, clipper clips) that nobody receives yet (the ones dispatch_video can send)."},"limit":{"type":"integer","minimum":1,"maximum":100,"default":30,"description":"Max assignments to return"}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_categories":{"post":{"operationId":"list_categories","summary":"List categories","description":"List the organization's categories. Categories are shared: the same category can be assigned to watchlist accounts, library posts and assets.","tags":["Organize"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_crew":{"post":{"operationId":"list_crew","summary":"List crew","description":"List the production crew of the organization: editors (monteurs), clippers and posters. Each post can carry one of each, in that order: the creator films, the editor edits, the clipper cuts clips, the poster publishes. Returns each member_id, which assign_crew accepts (as well as the name). The private portal link is not included (get_member_link returns it).","tags":["Production"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["all","editor","clipper","poster"],"default":"all","description":"Filter by crew role"}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_discovery_posts":{"post":{"operationId":"list_discovery_posts","summary":"Browse Discovery posts","description":"List posts from Discovery: Viral Manager's own catalogue of viral Instagram Reels and TikTok videos from curated accounts across niches (last 60 days), the same feed as the app's Discovery page. Not limited to the user's watchlist. Returns the posts with their thumbnails inline (set `thumbnails` false for text only). By default the niches the user hid on the Discovery page stay hidden; pass `niche` to read one niche (free text, e.g. 'fitness'), the response lists the available niches. `multiplier` is the virality multiplier shown on the card (e.g. x22.4). Each post has its `url`; `analyzed_post_id` is set when the post already has an AI analysis in the user's library.","tags":["Virality"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":30,"default":12,"description":"Number of posts to return (max 30)"},"offset":{"type":"integer","minimum":0,"default":0,"description":"Pagination offset"},"sort":{"type":"string","enum":["page","multiplier","recent"],"default":"page","description":"'page' = the Discovery page order (posts of the last 7 days by virality first, then day by day), 'multiplier' = highest multiplier first, 'recent' = newest first"},"niche":{"type":"string","maxLength":80,"description":"Only this niche (free text, matched against the niche names, e.g. 'fitness', 'business', 'nsfw'). Overrides the niches the user hid."},"days":{"type":"integer","minimum":1,"maximum":60,"description":"Only posts published in the last N days"},"min_multiplier":{"type":"number","minimum":0,"description":"Only posts with at least this virality multiplier"},"thumbnails":{"type":"boolean","default":true,"description":"Return each post's thumbnail inline as an image (small, ~320 px wide)"}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_drive_folders":{"post":{"operationId":"list_drive_folders","summary":"List Google Drive folders","description":"List the Google Drive folders this app can write into (drive.file scope: folders picked in the app or created via create_drive_folder), with the production folders / assignments currently linked to each. These ids are the ones set_drive_folder takes.","tags":["Folders & Drive"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_folders":{"post":{"operationId":"list_folders","summary":"List folders","description":"List the organization's assignment folders as a tree (id, full path, creator owner, archived flag), each with the crew working in it (editors, clippers, posters attached to the posts it holds) and how many posts it holds. Folders organize the Production workflow; per-creator root folders drive automatic routing in the app. A folder has no crew owner of its own: a crew member sees a folder because posts inside are attached to them, so the `crew` filter lists someone's folders.","tags":["Folders & Drive"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"include_archived":{"type":"boolean","default":false,"description":"Also return archived folders"},"crew":{"type":"string","default":"","description":"Only folders holding at least one post attached to this crew member (name or member_id, see list_crew). Empty = all folders."}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_models":{"post":{"operationId":"list_models","summary":"List creators","description":"List the creators (models) of the organization who can receive content assignments. Returns each creator's model_id, which create_assignment accepts (as well as the name/email).","tags":["Production"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_my_account_categories":{"post":{"operationId":"list_my_account_categories","summary":"List my account categories","description":"List the categories available to organize the org's own connected accounts (My Accounts). Separate list from list_categories, whose shared categories apply to watchlist accounts, library posts and assets.","tags":["My Accounts"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_my_account_posts":{"post":{"operationId":"list_my_account_posts","summary":"List my account posts","description":"List the posts published by the org's own connected accounts (My Accounts), newest first by default. viral_only returns the breakthrough posts (posts that beat the org's virality threshold). Each post has its permalink.","tags":["My Accounts"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"string","default":"","description":"Filter by one account (username, display name or id from list_my_accounts). Empty = all accounts."},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Filter by platform"},"viral_only":{"type":"boolean","default":false,"description":"Only return breakthrough (viral) posts"},"category":{"type":"string","default":"","description":"Only posts from accounts in this category (id or name from list_my_account_categories). 'none' = accounts with no category. Empty = no filter."},"tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Only posts from accounts carrying ANY of these tags (ids or names from list_my_account_tags)."},"sort":{"type":"string","enum":["recent","views","viral"],"default":"recent","description":"'recent' = newest first, 'views' = most viewed first, 'viral' = highest relative score first"},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20,"description":"Number of posts to return (max 50)"},"offset":{"type":"integer","minimum":0,"default":0,"description":"Pagination offset"},"posted_since":{"type":"string","format":"date-time","description":"Only posts published strictly after this ISO 8601 date. To watch for new posts, keep the newest `posted_at` you received and pass it here, instead of re-reading every post."}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_my_account_tags":{"post":{"operationId":"list_my_account_tags","summary":"List my account tags","description":"List the tags available on the org's own connected accounts (My Accounts). An account can carry several. Separate list from list_tags, whose text tags apply to library posts and assets.","tags":["My Accounts"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_my_accounts":{"post":{"operationId":"list_my_accounts","summary":"List my accounts","description":"List the organization's OWN connected accounts (My Accounts: the Instagram/TikTok accounts the org posts with, connected via the official APIs), with followers, average views, connection health, category and tags. Distinct from the watchlist (competitors/inspiration).","tags":["My Accounts"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Filter by platform"},"include_archived":{"type":"boolean","default":false,"description":"Also return archived accounts"},"category":{"type":"string","default":"","description":"Filter by account category (id or name from list_my_account_categories). 'none' returns only uncategorized accounts. Empty = no filter."},"tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Filter by account tags (ids or names from list_my_account_tags). An account matches if it carries ANY of them, like the app's filter bar."}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_post_notes":{"post":{"operationId":"list_post_notes","summary":"List post notes","description":"List the team's note thread on a post (internal notes exchanged in the app between team members about that post).","tags":["Organize"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_id":{"type":"string","description":"Post id (UUID) from list_viral_posts / list_analyzed_posts"}},"required":["post_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_tags":{"post":{"operationId":"list_tags","summary":"List tags","description":"List all the organization's tags (the union of the global tag registry and every custom tag used on posts and assets). Tags are normalized: lowercase, spaces become hyphens.","tags":["Organize"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_viral_posts":{"post":{"operationId":"list_viral_posts","summary":"List viral posts","description":"List the viral posts detected on the user's watchlist (Instagram Reels and TikTok videos that beat the account's baseline). Sorted by most recent by default. To poll for new detections, pass `since` (ISO date): posts detected after it are returned oldest-first; page with `offset` until `count` < `limit`, then keep the returned `next_since` for the next poll. Each post has its `url` and its `id` (the id get_post_analysis reads).","tags":["Virality"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":50,"default":20,"description":"Number of posts to return (max 50)"},"offset":{"type":"integer","minimum":0,"default":0,"description":"Pagination offset"},"sort":{"type":"string","enum":["recent","score"],"default":"recent","description":"'recent' = newest first, 'score' = highest virality score first. Ignored when `since` is set."},"favorites_only":{"type":"boolean","default":false,"description":"Only return posts marked as favorite"},"since":{"type":"string","format":"date-time","description":"Only posts detected strictly after this ISO 8601 date (use the `next_since` of your previous poll)"}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/list_watchlist_accounts":{"post":{"operationId":"list_watchlist_accounts","summary":"List watchlist accounts","description":"List the Instagram and TikTok accounts tracked in the user's watchlist, with follower counts and last post date.","tags":["Watchlist"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Filter by platform"}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/move_assignment_to_folder":{"post":{"operationId":"move_assignment_to_folder","summary":"Move assignments to folder","description":"Move one or several existing assignments into a folder (or out of any folder). Attaching the crew that works on them is a separate step: assign_crew.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assignment_id":{"type":"string","default":"","description":"One assignment id (from list_assignments). Use assignment_ids to move several."},"assignment_ids":{"type":"array","items":{"type":"string"},"default":[],"description":"Several assignment ids to move in one call"},"folder":{"type":"string","description":"Destination folder (id, name or full path), or 'none' to remove them from their folder"}},"required":["folder"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/move_folders":{"post":{"operationId":"move_folders","summary":"Move folders","description":"Move SEVERAL assignment folders under a new parent (or to the root) in ONE call. Anti-cycle: a folder cannot land inside its own subtree (those are reported as errors, the rest proceed). Creator owners are kept (dormant while nested).","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Folders to move (id, name or full path each)"},"destination":{"type":"string","description":"Destination parent folder (id, name or full path), or 'root' to move them to the root"}},"required":["folders","destination"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/remove_dispatch":{"post":{"operationId":"remove_dispatch","summary":"Cancel video send","description":"Cancel one send or one planned variation of an assignment (dispatch_id from get_assignment). The video itself stays on the assignment.","tags":["Production"],"x-read-only":false,"x-destructive":true,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assignment_id":{"type":"string","description":"Assignment id"},"dispatch_id":{"type":"string","description":"dispatch_id from get_assignment"}},"required":["assignment_id","dispatch_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/remove_watchlist_account":{"post":{"operationId":"remove_watchlist_account","summary":"Remove watchlist account","description":"Remove an Instagram account from the watchlist. DESTRUCTIVE: this permanently deletes the account AND all its detected viral posts (and any assignments pointing at them). Only the org owner or an admin can do this. Not reversible.","tags":["Watchlist"],"x-read-only":false,"x-destructive":true,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"string","description":"Account to remove: username (with or without @) or account id from list_watchlist_accounts"}},"required":["account"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/search_assets":{"post":{"operationId":"search_assets","summary":"Search assets","description":"Search the organization's asset library (videos and images uploaded for content production) by name, description or tags. The results are text only (get_asset_preview returns what an asset shows).","tags":["Assets"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","default":"","description":"Free-text search over name, description and tags. Empty = most recent assets."},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20,"description":"Number of assets to return (max 50)"}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/send_feedback":{"post":{"operationId":"send_feedback","summary":"Send feedback to Viral Manager","description":"Tell the Viral Manager team about a capability you needed and could not find, a tool that failed or returned something wrong, or anything confusing. Use it when the user's request cannot be done with the available tools. Nothing is shown to the user; the team reads every message.","tags":["Feedback"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["missing_capability","bug","confusing","other"],"description":"What kind of feedback this is"},"message":{"type":"string","minLength":5,"maxLength":2000,"description":"What the user wanted, what you tried and what was missing or wrong. No personal data."},"tool":{"type":"string","maxLength":80,"description":"The tool concerned, if any"}},"required":["kind","message"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/set_account_category":{"post":{"operationId":"set_account_category","summary":"Set watchlist account category","description":"Assign a category to a watchlist account (Instagram or TikTok), or clear it with 'none'.","tags":["Organize"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"string","description":"Watchlist account: username (with or without @) or id from list_watchlist_accounts"},"category":{"type":"string","description":"Category (id or name), or 'none' to clear"},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Disambiguates when the same username is tracked on both platforms"}},"required":["account","category"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/set_drive_folder":{"post":{"operationId":"set_drive_folder","summary":"Link Google Drive folder","description":"Link (or unlink with 'none') a Google Drive folder to ONE target: a production folder (its assignments and sub-folders inherit it) or a single assignment (takes precedence over its folder). The creator's next uploads for that target go straight into the Drive folder.","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"production_folder":{"type":"string","default":"","description":"Target production folder (id, name or full path). Use this OR assignment_id."},"assignment_id":{"type":"string","default":"","description":"Target assignment id. Use this OR production_folder."},"drive_folder":{"type":"string","description":"Drive folder id or name (see list_drive_folders / create_drive_folder), or 'none' to unlink"}},"required":["drive_folder"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/set_my_account_category":{"post":{"operationId":"set_my_account_category","summary":"Set my account category","description":"Assign a category to one of the org's own connected accounts (My Accounts), or clear it with 'none'. An account holds at most one category; the available ones are listed by list_my_account_categories.","tags":["My Accounts"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"string","description":"Account (username, display name or id from list_my_accounts)"},"category":{"type":"string","description":"Category (id or name from list_my_account_categories), or 'none' to clear"},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Disambiguates when the same username exists on both platforms"}},"required":["account","category"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/set_post_category":{"post":{"operationId":"set_post_category","summary":"Set post category","description":"Assign a category to one or more library posts (Instagram or TikTok), or clear it with 'none'.","tags":["Organize"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50,"description":"Post ids (UUID)"},"category":{"type":"string","description":"Category (id or name), or 'none' to clear"}},"required":["post_ids","category"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/set_post_favorite":{"post":{"operationId":"set_post_favorite","summary":"Set post favorite","description":"Mark or unmark one or more library posts as favorites (the same star as in the app; list_viral_posts favorites_only filters on it).","tags":["Organize"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50,"description":"Post ids (UUID)"},"favorite":{"type":"boolean","description":"true = mark as favorite, false = remove from favorites"}},"required":["post_ids","favorite"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/summarize_my_accounts":{"post":{"operationId":"summarize_my_accounts","summary":"Summarize my accounts","description":"Roll up the org's own connected accounts (My Accounts) by tag, category or platform: how many accounts per group, the breakdown of their connection status, and their aggregated data (followers, average views, breakthrough posts, views over the last 24h and 7 days). This is the tool to answer 'how are the accounts tagged X doing'. IMPORTANT: an account can carry several tags, so it appears in several groups and the group counts do NOT add up to the total.","tags":["My Accounts"],"x-read-only":true,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"group_by":{"type":"string","enum":["tag","category","platform"],"default":"tag","description":"What to group the accounts by"},"tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Restrict to accounts carrying ANY of these tags (ids or names from list_my_account_tags). Empty = all accounts."},"category":{"type":"string","default":"","description":"Restrict to one account category (id or name from list_my_account_categories). 'none' = accounts with no category."},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Restrict to one platform"},"include_archived":{"type":"boolean","default":false,"description":"Also count archived accounts"},"include_accounts":{"type":"boolean","default":true,"description":"List each group's accounts with their own status and figures. Set false for group totals only."},"include_views":{"type":"boolean","default":true,"description":"Include views over the last 24h/7d, read from each account's latest stats snapshot. Set false to skip that read on large rosters."}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/tag_my_account":{"post":{"operationId":"tag_my_account","summary":"Tag my account","description":"Add and/or remove tags on one of the org's own connected accounts (My Accounts). Only existing tags (list_my_account_tags) can be added: this tool does not create tags. Returns the resulting set of tags.","tags":["My Accounts"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"string","description":"Account (username, display name or id from list_my_accounts)"},"add_tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Tags to add (ids or names from list_my_account_tags)"},"remove_tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Tags to remove (ids or names from list_my_account_tags)"},"platform":{"type":"string","enum":["all","instagram","tiktok"],"default":"all","description":"Disambiguates when the same username exists on both platforms"}},"required":["account"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/tag_posts":{"post":{"operationId":"tag_posts","summary":"Tag posts","description":"Add and/or remove custom tags on one or more posts of the library (Instagram or TikTok). Tags are normalized (lowercase, spaces to hyphens) and new tags are registered globally so they appear in the app's filters.","tags":["Organize"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"post_ids":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50,"description":"Post ids (UUID) from list_viral_posts / list_analyzed_posts"},"add_tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Tags to add"},"remove_tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Tags to remove"}},"required":["post_ids"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/update_asset":{"post":{"operationId":"update_asset","summary":"Update asset","description":"Update an asset of the library: rename it, set its internal notes, assign a category ('none' to clear), and add/remove custom tags. Several operations can be combined in one call. The '@model' tag is system-managed and cannot be edited.","tags":["Assets"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"asset":{"type":"string","description":"Asset to update (id from search_assets, or exact name)"},"rename":{"type":"string","default":"","description":"New name. Empty = no rename."},"notes":{"type":"string","default":"","description":"New internal notes (replaces existing notes), or 'clear' to erase them. Empty = unchanged."},"category":{"type":"string","default":"","description":"Category (id or name), or 'none' to clear. Empty = unchanged."},"add_tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Tags to add"},"remove_tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Tags to remove"}},"required":["asset"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/update_assignment":{"post":{"operationId":"update_assignment","summary":"Update assignment","description":"Update an assignment: change its production status, due date, the note/brief for the creator, or add/remove tags. Approving or refusing notifies the creator by push and requires a submitted video ('sent' status or at least one upload); 'sent' itself is set by the creator when they submit and cannot be set here.","tags":["Production"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assignment_id":{"type":"string","description":"Assignment id"},"status":{"type":"string","enum":["keep","pending","in_progress","sent","refused"],"default":"keep","description":"New status, or 'keep' to leave unchanged"},"due_date":{"type":"string","default":"","description":"New due date YYYY-MM-DD, empty = unchanged"},"admin_note":{"type":"string","default":"","description":"New note/brief for the creator, empty = unchanged"},"add_tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Tags to add to the assignment"},"remove_tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Tags to remove from the assignment"}},"required":["assignment_id"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/update_category":{"post":{"operationId":"update_category","summary":"Update category","description":"Rename a category and/or change its color. Owner or admin only.","tags":["Organize"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","description":"Category to update (id or name, see list_categories)"},"rename":{"type":"string","default":"","description":"New name. Empty = no rename."},"color":{"type":"string","default":"","description":"New hex color like #3B82F6. Empty = unchanged."}},"required":["category"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/update_folder":{"post":{"operationId":"update_folder","summary":"Update folder","description":"Update an assignment folder: ONE operation per call among rename, move to another parent, archive/unarchive (cascades to the whole subtree, unarchive also restores ancestors), or change the creator owner. Renaming keeps the subtree and all assignment links.","tags":["Folders & Drive"],"x-read-only":false,"x-destructive":false,"x-idempotent":true,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"string","description":"Folder to update (id, name or full path)"},"rename":{"type":"string","default":"","description":"New name. Empty = no rename."},"move_to_parent":{"type":"string","default":"","description":"New parent folder (id, name or path), or 'root' to make it a root folder. Empty = no move."},"archive":{"type":"string","enum":["keep","archive","unarchive"],"default":"keep","description":"Archive or restore the folder and its subtree"},"owner_model":{"type":"string","default":"","description":"New creator owner (name, email, model_id) or 'none' to clear. Empty = unchanged."}},"required":["folder"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/upload_asset":{"post":{"operationId":"upload_asset","summary":"Upload asset","description":"Add a video file to the asset library (mp4, mov, avi, webm, mkv, m4v; max 500 MB). Two modes. (1) With source_url: the server downloads the file from that public URL itself and creates the asset in one call (needs a Content-Length; large or slow files may time out, mode 2 does not). (2) Without source_url: returns an upload_url; PUT the raw file bytes to it with the returned Content-Type header (e.g. curl -X PUT -H 'Content-Type: video/mp4' --data-binary @file.mp4 '<upload_url>'); confirm_asset_upload then creates the asset from the upload_id with the name/notes/category/tags. A video already in the library (same name and size, or same exact size) is not imported twice: its existing asset is returned with duplicate=true. Analysis: edits are never used for asset matching, so they are not AI-analyzed: they only get a thumbnail and their duration (analysis=skipped_not_in_matching). Raw footage (kind='rush') is always analyzed.","tags":["Assets"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"source_url":{"type":"string","default":"","description":"Public URL of the video to import. Empty = presigned upload mode."},"file_name":{"type":"string","default":"","description":"Presigned mode only: file name with its extension (e.g. clip.mp4), required."},"file_size_bytes":{"type":"integer","minimum":0,"default":0,"description":"Presigned mode only: file size, used to check the storage quota up front (0 = checked at confirm)."},"name":{"type":"string","default":"","description":"Asset name. Empty = the file name without its extension."},"notes":{"type":"string","maxLength":5000,"default":"","description":"Internal notes saved on the asset (e.g. the caption or brief that came with the file)"},"category":{"type":"string","default":"","description":"Category (id or name). Empty = none."},"tags":{"type":"array","items":{"type":"string"},"default":[],"description":"Custom tags"},"kind":{"type":"string","enum":["edit","rush"],"default":"edit","description":"'edit' (default) = a finished reel/edit to be posted. 'rush' = raw footage meant for asset matching (e.g. migrating a library): always fully AI-analyzed."}},"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/upscale_asset":{"post":{"operationId":"upscale_asset","summary":"Upscale asset to HD","description":"Upscale a low-resolution video of the asset library to 1080 on its short side (1080x1920 for a vertical video): light denoise, lanczos upscale, gentle sharpening. No AI: the result is sharper and cleaner, but no detail is invented. Creates a NEW asset '<name> (HD)' with the same category, tags and type; the original is untouched. Returns the new asset and a download link valid 24h. Videos only, up to 150 s; a video already 1080 or more is refused (ALREADY_HD). Takes about as long as the video lasts.","tags":["Assets"],"x-read-only":false,"x-destructive":false,"x-idempotent":false,"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"asset":{"type":"string","description":"Asset to upscale (id from search_assets, or exact name)"}},"required":["asset"],"additionalProperties":false}}}},"parameters":[{"name":"include_images","in":"query","required":false,"description":"Return the inline images (thumbnails, frames) as base64 in `images`.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Tool result in `data` (the same JSON the MCP tool returns).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"Invalid arguments or business error (`error` code + `message`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown tool, or not available on this access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait `retry_after_seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agent/trial":{"post":{"operationId":"start_agent_trial","summary":"Start a free 7-day agent trial","description":"No account, no payment. Returns an API key with read-only access (Discovery preview, trending sounds). One trial per IP per day.","tags":["Agent access"],"security":[],"responses":{"201":{"description":"API key and links."},"429":{"description":"Trial already started from this network, or daily cap reached."}}}},"/api/agent/subscribe":{"get":{"operationId":"list_agent_plans","summary":"List plans an agent can buy","tags":["Agent access"],"security":[],"responses":{"200":{"description":"Plans, prices and how to pay."}}},"post":{"operationId":"subscribe_agent","summary":"Buy 30 days of a plan (Machine Payments Protocol)","description":"Answers HTTP 402 with an MPP challenge (card through a Stripe shared payment token, e.g. Link, or USDC on Tempo). Pay it and retry: returns an API key.","tags":["Agent access"],"security":[],"parameters":[{"name":"plan","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"API key."},"402":{"description":"Payment challenge (WWW-Authenticate: Payment ...)."}}}},"/api/agent/credits":{"get":{"operationId":"list_pay_per_call_prices","summary":"Pay-per-call prices, top-up amounts, and the balance (with X-Api-Key)","tags":["Agent access"],"security":[],"responses":{"200":{"description":"Prices per tool in USD, top-up packs, balance."}}},"post":{"operationId":"top_up_credits","summary":"Top up a pay-per-call balance (Machine Payments Protocol)","description":"Answers HTTP 402 with an MPP challenge. Pay it and retry. Without a key: creates a pay-per-call workspace and returns its API key. With `X-Api-Key` (trial or pay-per-call workspace): adds to its balance. Paid tools then debit the balance ($0.01 for list_discovery_posts and get_post_analysis, $0.15 for analyze_post_url); calls that end in an error are refunded; an empty balance answers 402.","tags":["Agent access"],"security":[],"parameters":[{"name":"amount","in":"query","required":true,"schema":{"type":"integer","enum":[10,25,50,100]}}],"responses":{"200":{"description":"New balance."},"201":{"description":"New workspace: API key and balance."},"402":{"description":"Payment challenge (WWW-Authenticate: Payment ...)."}}}},"/api/agent/renew":{"post":{"operationId":"renew_agent","summary":"Add 30 days, or turn a trial into a paid plan","tags":["Agent access"],"parameters":[{"name":"plan","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"New period end."},"402":{"description":"Payment challenge."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key vm_... or OAuth access token."}},"schemas":{"Result":{"type":"object","properties":{"data":{"description":"The tool's JSON result."},"notes":{"type":"array","items":{"type":"string"}},"images":{"type":"array","items":{"type":"object","properties":{"mime_type":{"type":"string"},"data_base64":{"type":"string"}}}}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}},"required":["error"]}}}}