viralhunt-mcp

v1.1.38
io.github.rodvan/viralhunt-mcp Checked 4 days ago Published 3 days ago

Trending content on 13 networks, best time, hashtags, templates, drafts and review, publish to 11.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

viralhunt_news_categories

The categories of the news corpus (source rss), with how many feeds carry each and how many articles arrived in the last 7 and 30 days. Read it once before asking for news on a subject, then pass a name as category on viralhunt_trending (source rss). Not the Editorial Board categories. Technology and Artificial Intelligence are separate categories.

viralhunt_account

Who this key is: plan (free/creator/studio/agency), requests per hour, whether it can publish, today's daily content-query quota (free plan: 24 shared across trending, search, best-time, hashtags, sounds, communities, calendar, quotes; templates, board context and news categories spend none), credits balance, and per-endpoint rules. Call it once at the start and again on a 429 or 402, and set expectations from it (free plan: trending is 72h delayed and numbers are withheld, never print 0). On the Free plan connecting accounts, publishing, scheduling and Review are not available, so never propo…

viralhunt_search_requests

The keywords our agents (the always-on extension sweep) are searching for this organization because a search, by a person in the app or by an agent through viralhunt_search / viralhunt_trending, found next to nothing. Each request: status (queued: no network searched it yet; running: some did; done: all did, the email and webhooks go out within the hour; notified: sent), the networks with searched_at and new_posts, the total new posts, and `fetch`, the search call that reads what was found. Use it instead of asking the same keyword again. Not metered: it spends no search of the daily quota.

ParameterTypeDescription
keywordstringOne keyword (as it was searched).
limitinteger
statusstringopen = not notified yet; done = notified; all (default).

viralhunt_targets

List the user's projects/brands and the connected social accounts you can publish to in each. Also returns needs_reconnect (expired connections: not targets until a person reconnects them in the app; name the network before publishing), media_limits per network (image bytes: bigger ones are re-encoded to fit; video bytes and seconds: a bigger or longer video is refused for that network only, with the numbers; text length), each project's lang and translates_to (linked projects in another language), and must_draft: '' = this token may publish directly; 'role' = a member or agent token: every po…

ParameterTypeDescription
projectstringProject name to scope the accounts to (optional).

viralhunt_schedule

Publish now, schedule, or (default when the user did not ask to publish right now) leave a DRAFT of a post on a project's connected accounts. Ask the user before publishing or scheduling: it posts to real accounts. Verify content first: never fake news, copyrighted media or spam. Never use another page's text as the copy or its branded picture as the post's picture: the picture comes from the organization's templates (viralhunt_get_template), either rendered by you and passed in media, or passed as `design` with draft=true so the app renders it when a person approves. Returns {id, status, resu…

ParameterTypeDescription
allow_duplicatebooleanOnly when the user wants a second copy on purpose: the duplicate firewall otherwise refuses an account another post of the last 72 hours already carries the same text for (409 duplicate_post when ever…
assigned_tointegerThe member who takes this post over (an id from viralhunt_members; agents count): its board card is assigned to them and they get the notification. Also on viralhunt_update_post.
author_notesstringFor the reviewer, never published: the source link, the picture's origin, what you verified. Put the source link HERE, never in the body (the networks cut the reach).
bodystringCaption/text. Optional if media or design is provided.
card_idintegerThe Editorial Board card this post comes from (optional).
carouselbooleanOnly when the user asked for a carousel: allows several pictures in media. Without it a second picture answers 422 multiple_pictures.
designobjectALWAYS when the picture was made from a ViralHunt template, even if you also rendered and uploaded the PNG (a PNG alone cannot be edited in the app; the design opens the editor on that template): {"te…
draftbooleantrue = a working copy in Drafts you still mean to edit (viralhunt_update_post, then viralhunt_submit_draft). Every draft is also an Editorial Board card (card_id in the answer) that moves with the pos…
first_commentstringOptional first comment (link-in-comments).
kindstringWhat the post IS. The reviewer applies only that kind's rules (a meme is never asked for a source). A post from a card takes the card's category when omitted.
mediaarrayPublic image/video URLs. ONE picture per post (a post made on a template has exactly one, its render). Check media_limits (viralhunt_targets) before a big video.
networksarrayPost to every account on these networks, e.g. ["instagram","facebook"].
overridesobjectPer network (or per account id), only what that account needs to differ: {"bluesky": {"body": "the 300-character version", "thread": [{"body": "part 2"}]}, "12": {"media": ["…"], "first_comment": "i…
projectstringProject name — REQUIRED if the org has more than one project.
project_idintegerProject id — alternative to project name.
scheduled_atstringISO-8601 UTC, e.g. 2026-08-01T15:30:00Z. Omit = publish now (or, with draft, the tentative time is 'when approved').
stagestringWhere the post lands, in one word: draft = a working copy (same as draft: true), review = complete and waiting for an owner or admin, even from a token that could send.
target_account_idsarrayExact account ids (from viralhunt_targets). Omit = all accounts in the project.

viralhunt_drafts

List the posts not yet sent (this project, or every project with all=true): stage 'draft' = being worked on, 'review' = complete and dated, waiting for an owner or admin. Each carries stage, body, media, targets, scheduled_at, overrides, card_id, submitted_via (api = from an agent), design, lang, translated_from_id, assigned_to and assigned_to_name (the member it is assigned to), review {score, verdict, reviewed_at, entries[]}, needs_review (no verdict on its current content), valid_verdict, content_hash and updated_at.

ParameterTypeDescription
allbooleantrue = every project of the organization.
assigned_tointegerOnly the posts assigned to this member (a user id from viralhunt_members).
needs_reviewbooleantrue = only posts with no verdict on their current content (the reviewer's queue).
projectstringProject name (default: the org's first project).
project_idinteger
stagestringOne stage only (default: both).

viralhunt_policy

The content rule a reviewer applies before any OK, kept on the platform so it changes without a release: what blocks a post (policy_* codes), what sends it back to Drafts (fix_* codes), the six scores (tos_risk, rights, fake_news, sensationalism, brand, grammar; 100 = clean) with the thresholds the server recalculates the verdict with, the extra readings every review carries (risk10 1 safe to 10 breaks a network's terms, image_match, ai_written), the kinds (fact, meme, quote, opinion, promo: a meme or a quote never gets a source or DOI demand), what changes per network, and the server rules an…

viralhunt_review_queue

The reviewer's queue: posts in Review, every project, with no verdict on their current content (never reviewed, or edited after the last verdict). Same rows as viralhunt_drafts. Read viralhunt_policy first, then one viralhunt_review_draft per post.

ParameterTypeDescription
project_idintegerOne project only (default: every project).

viralhunt_review_stats

Flags per collaborator (owner, admin, or a reviewer marked 'Their OK publishes'): for the last days (7 = week, 14 = fortnight, 30 = month), per person or agent who authored posts: reviews, ok / fix / block, flags (a fix or block, or any policy_* / fix_* warning), codes (how many of each rule, e.g. fix_doi), avg_risk10 and last_flag_at. The Team page shows the same table.

ParameterTypeDescription
daysinteger7, 14 or 30 (default 30).

viralhunt_submit_draft

Move a draft to Review once it is complete (a body or media, and at least one account): it waits there for an owner or admin to authorize it. now=true clears the time (it goes out when authorized); scheduled_at sets one; neither keeps the draft's own. Nothing is sent. On the Free plan Review is not available (403 upgrade_required): the draft stays saved and editable in the app.

ParameterTypeDescription
id *integerThe draft id.
nowboolean
scheduled_atstringISO-8601 UTC.

viralhunt_review_draft

Append your review to a post in Review: verdict ok|fix|block, a score 0-100, per-topic scores (tos_risk, rights, fake_news, sensationalism, brand, grammar; 100 = clean) plus risk10 (1 safe to 10 breaks a network's terms), image_match and ai_written (0-100), one warning per issue with the policy's code (policy_* / fix_*), the network it concerns and the severity, and a short note on how to fix it, in the post's language. Judge against viralhunt_policy (read it first), network by network; verify claims with viralhunt_search / trending rss. `fix` sends the post back to Drafts with your note (retu…

ParameterTypeDescription
id *integerThe draft id.
verdict *string
content_hashstringThe content_hash of the drafts row when you read the post. Always send it.
notestringHow to fix it, and the source you verified against.
scoreinteger
scoresobject{"tos_risk": 90, "fake_news": 70, "sensationalism": 80, "grammar": 95, "risk10": 3, "image_match": 85, "ai_written": 40}
warningsarray

viralhunt_approve_draft

Send a draft (owner or admin token only, and never without the user's explicit yes). A draft blocked by its last review cannot be approved until it is fixed and reviewed again. `translations` makes the translated draft in each linked project in the same call (see viralhunt_translate_post). Returns {status, results, warnings, translations[]}.

ParameterTypeDescription
id *integerThe draft id.
allow_duplicatebooleanOnly when the user wants a second copy on purpose: the duplicate firewall otherwise refuses an account another post of the last 72 hours already carries the same text for (409 duplicate_post when ever…
translationsarray

viralhunt_translate_post

Make the translated draft of a post (a draft or one already sent) in a linked project that publishes in another language. The app adapts the copy, the first comment, the per-network copies, the thread and the TEXT variables of a design (hashtags in the new language; links, mentions, numbers and names kept): do not translate yourself. A design keeps its picture and the answer carries needs_png=true with render {html, css, format}: render it, store the PNG with viralhunt_update_post {id, png}, then approve if wanted. A plain picture (no template) stays unless `image` hands the translated one. Th…

ParameterTypeDescription
id *integerThe source post id.
project_id *integerThe target project (from translates_to on viralhunt_targets).
account_idsarrayAccounts of the target project (default: all postable).
imagestringhttps URL of the translated picture, for a post whose picture is not a template.
langstringOverride the target language (es, en, pt, fr, de, it…).
send_modestringdraft (default) waits in the target project; send (owner/admin) goes out at once when there is nothing to render.

viralhunt_edit_log

What people changed in drafts after an agent left them: one row per field (body, media, targets, scheduled_at, first_comment, overrides, thread, design) with before, after, who and when, plus by_field counts. Drafts with submitted_via=api came from an agent: those edits are what the person did not like. Read it at the start of each batch and apply the pattern (shorter captions, another picture, another hour).

ParameterTypeDescription
idintegerOnly one draft's changes.
limitinteger
sincestringISO-8601: only changes after this moment.

viralhunt_sync_post

Refresh the status of this organization's posts from the networks (call before viralhunt_get_post when the answer matters). Returns how many rows were re-read.

viralhunt_get_post

Get the current status and per-network results (incl. permalinks) of a post you created. Also events[] (the delivery log: created, accepted by PostProxy, published with its link, refused with the reason, retried, canceled, reviewed, approved) and support_text, the text to hand the user when they ask what happened to a post. Statuses: scheduled (queued), processing (handed to the networks, or a target being retried), published (every target live), partial (some refused: each failed results[account].error carries the network's own words and error_message sums it up), failed, draft, canceled. The…

ParameterTypeDescription
id *integerThe post id returned by viralhunt_schedule.

viralhunt_render_preview

SEE THE FINAL PICTURE of a post before you hand it over: returns the image the post will publish (its rendered template PNG or its uploaded photo) as an image you can look at, reduced to about 1000 px. Use it on every draft you make or edit, to check the photo shows what the text says, the headline fits, the coloured words are the right ones and nothing covers the logo; fix and look again before telling the person it is ready. It never creates or changes anything. A template design that was never rendered has no picture yet (409 not_rendered): it renders when the person saves it in the app edi…

ParameterTypeDescription
id *integerThe post id (a draft, a post in review or a sent one).
maxintegerLong side in px (default 1000). Ask for more only to read small text.

viralhunt_fetch_image

Look at a picture by its public URL: the server downloads it and returns it as an image you can see (about 1000 px). You cannot open URLs yourself, so use this before putting any photo into a template: check it really shows what the post says, has no watermark or other brand's logo, and survives the template's crop (portrait feed 4:5, story 9:16). http(s) only; private, local and non-image addresses are refused with the reason. Read only.

ParameterTypeDescription
url *stringThe picture's public http(s) URL (for example image_url from viralhunt_search_images).
maxintegerLong side in px (default 1000).

viralhunt_search_images

Find a licensed photo for a post: searches Wikimedia Commons and returns each result with a small thumbnail you can see, plus title, author, license, license_url, attribution_required, a ready credit line, size, the file page and image_url (put image_url in the template's image variable). The license comes from Commons itself: never use a result whose license is null, and credit the author (credit) when attribution_required is true. Look at the thumbnails, open the best one at full size with viralhunt_fetch_image, then build the post. Read only; spends no daily query.

ParameterTypeDescription
query *stringWhat the photo should show, in plain words (a place, a person, an object). English names find more.
limitintegerHow many results (default 6, max 10).

viralhunt_upload_media

Upload a picture or video you made (or a logo) and get its public URL, to use in a post's media or in a template variable. Send it as base64 or a data: URL with a filename that carries its extension (jpg, png, gif, webp, mp4, mov). purpose='brand' is for a logo or picture placed INSIDE a design (PNG, JPG or WebP, 2 MB). The server checks the bytes match the extension. Writes a file; creates no post. One call carries about 5 MB (a picture, a rendered card); a video goes through the API in parts (POST schedule.php?action=upload_chunk, see the docs) or as a public URL in a post's media.

ParameterTypeDescription
data *stringThe file as base64, or a data: URL (data:image/png;base64,...).
filenamestringName with extension, e.g. card.png (needed unless data is a data: URL).
purposestring'brand' for a logo or a picture placed inside a design.

viralhunt_update_post

Edit a post. A DRAFT can be changed freely by its author, an owner or an admin (body, media, overrides, first_comment, targets, scheduled_at, design, and png: the a reviewer marked 'Their OK publishes' may change only overrides (a per-account short copy), kind, and the texts inside the image (design_fields {variable key: text}, never a picture variable or caption; with its png) on someone else's post). design_fields works on posts made on a template only (a flat picture answers no_design); without png the old render leaves (needs_png + render in the answer). overrides is MERGED per account: se…

ParameterTypeDescription
id *integerThe post id.
assigned_toDrafts and posts in review: the member who takes it over (a user id from viralhunt_members; agents count); null unassigns. Their board card, their notification. A trusted reviewer may assign on someon…
author_notesstringDrafts: notes for the reviewer, never published (the source link goes here).
bodystringNew caption.
carouselbooleanOnly when the user asked for a carousel: allows several pictures in media. Without it a second picture answers 422 multiple_pictures. A post made on a template always has ONE picture, its render.
designobjectThe filled template of this post (see viralhunt_schedule): send it to repair a post that went out with a PNG only, so its image becomes editable.
design_fieldsobjectDrafts made on a template: {variable key: corrected text} for the texts inside the image (text variables only, never caption). Send the new png with it when you can render.
first_commentstringDrafts: the first comment.
kindstringDrafts: what the post is.
mediaarrayNew media URLs (replaces the set).
networksarrayNew network set (adds/removes targets).
overridesobjectPer account id (or network): body, media, first_comment, thread. Merged per key; null removes one. On a scheduled post, only that account's network is patched.
pngstringDrafts: data:image/png;base64,… of the rendered design; stored as the post's ONE picture (it replaces any picture the post had).
scheduled_atstringNew ISO-8601 UTC time (must be in the future).
target_account_idsarrayNew exact account-id set.
threadarrayThe post's thread (X/Threads natively, Mastodon as a reply chain). On a scheduled post a changed thread makes the X/Threads post again.

viralhunt_stats

Engagement of the published posts as the networks report it back: by_network, by_project and top_posts (with permalinks). ready=false means nothing collected yet. Use it to answer 'what worked' and to find more like the winners (viralhunt_search on the winning topic); never invent a number.

ParameterTypeDescription
daysintegerWindow in days (default 30).
limitinteger
networkstring
projectstring
project_idinteger

viralhunt_calendar

The calendar base: the international days (UN, UNESCO, WHO) and the anniversaries of science, technology, space, health, the environment and civilization in a window of days, each with `why` (what is celebrated or what happened, and why it matters: write the caption FROM it, never from memory), kind (observance repeats every year; event, birth, death carry year and years_ago), category, origin, importance (3 = most brands can post about it, 2 = worth it inside its category, 1 = niche), image_url (a free Wikipedia thumbnail when there is one), source_url. Use days=7 or 31 to plan ahead; post on…

ParameterTypeDescription
calendar_idinteger
categorystringOne or several: science,technology,space,health,environment,humanity,civilization,education,culture,economy.
datestringYYYY-MM-DD or today (default today, UTC).
daysintegerHow many days from date (default 1).
kindstring
langstring
mark_usedbooleantrue with calendar_id = record that you posted about it this year.
min_importanceinteger3 = the big days only, 2 = worth a post (recommended), 1 = everything.
notestring
qstringKeyword in the title, the text or the tags.
statsbooleantrue = how many rows per category and kind instead of the rows.
unusedbooleantrue = leave out what this organization already posted about this year.

viralhunt_quotes

Quotes ranked by our popularity score, for daily-quote series: text, author, author_context (description, born, died), work, categories, rights, popularity high|medium|low and author_image (portrait url, licence, credit). Default rights=public_domain (authors dead more than 70 years): keep it unless the user asks for a modern author, and with rights=any tell the user a quote is restricted before scheduling it under their brand. Write the caption's context FROM author_context and work, never from memory. categories_list=true lists the categories held. unused=true leaves out what this organizati…

ParameterTypeDescription
authorstringPart of an author's name.
categoriesstringSeveral mixed: stoicism,leadership.
categories_listbooleantrue = list the categories instead of quotes.
categorystringOne category, e.g. stoicism.
langstringLanguage of the quote (default en).
max_charsintegerDefault 180: what the quote templates fit.
pageinteger
per_pageinteger
rightsstring
sortstring
unusedboolean

viralhunt_mark_quote_used

After scheduling a quote, mark it used for this organization so the next pick (unused=true) is a different one.

ParameterTypeDescription
quote_id *integer
notestringe.g. 'scheduled 2026-09-20 09:00 instagram'.

viralhunt_recipes

The standing orders of a brand, saved by a person in the app: each recipe says what to post from (source quotes|trending|manual with source_params, and source_call = the exact request that fetches the content), which template (template.slug for viralhunt_get_template), format, networks, cadence (daily|weekdays|weekly|manual), post_time in the project's timezone (null = the network's best time), caption_brief and last_run_at. Nothing runs on the server: you do the loop (fetch, fill, render, schedule, mark the quote used, then viralhunt_recipe_ran). daily with last_run_at older than today = due.…

ParameterTypeDescription
activeboolean
project_idintegerOne brand (default: every active recipe of the organization).

viralhunt_recipe_ran

Stamp a recipe run so the person sees in the app that it happened.

ParameterTypeDescription
recipe_id *integer
notestring

viralhunt_brand_status

Every brand (project) of the organization and whether it is being watched: keywords count, category, webhook set, alerts in the last 7 days, and per network when the extension (or the Reddit cron) last searched its keywords (last_run, never_run, found). keywords: 0 = not watched, offer to set them; never_run with an old last_run = the always-on machine is off, tell the owner.

ParameterTypeDescription
project_idintegerOne brand only (default: all).

viralhunt_brand_keywords

Read a brand's keywords (what the always-on extension searches on X, Quora, Pinterest, Instagram, TikTok, Facebook, and the server on Reddit), or REPLACE the list (owner/admin token): keywords = product names, ingredients, the problems its buyers search for, #hashtags; up to the plan's number (max in the answer: Free 5, Creator 10, Studio 20, Agency 30, Lifetime 10); every keyword is machine time on every network. The answer carries the sweep state per network.

ParameterTypeDescription
project_id *integerThe brand (project).
categorystringThe brand's niche, e.g. Hair care.
keywordsarraySend to REPLACE the whole list (owner/admin). Omit to read.
networksarrayWith keywords: x, quora, pinterest, reddit, instagram, tiktok, facebook (default: the server's set).
runbooleantrue = 'search now' (owner/admin): every keyword of the brand is marked asked; the always-on machine picks them up within five minutes, Reddit within 30. The answer's machine.extension_alive says whet…

viralhunt_brand_hot

The discussions about a brand heating up RIGHT NOW: posts of the last window that mention one of its keywords and whose comments grew by delta in the last hours (or were born loud), each with title, url, author, comments, comments_from/to, delta, hours, rising, alerted_at. The answer to 'where should I comment today': hand the user the biggest deltas with their links and a proposed comment. all=true adds what is most commented even when not climbing (rising false, delta null = one reading), rising first: the app's dashboard list. When it comes back empty read machine in the answer: extension_a…

ParameterTypeDescription
project_id *integer
allbooleantrue = every matching post of the window, rising first then most commented (default: only the rising ones).
hoursintegerThe span the comments grew in (default 8).
limitintegerWith all: how many rows (default 40, up to 100).
min_deltaintegerMinimum comments gained (default 10).
networksarrayreddit, quora, x, instagram, tiktok, bluesky (default: all).
windowintegerHow far back a post may be, in hours (default 24).

viralhunt_brand_alerts

What a brand was alerted about (each thread once), newest first; or, with mark_read_ids, mark alerts as taken so unread=true shows only what is left. Poll with since = your last read every 10 to 30 minutes, or set a webhook with viralhunt_brand_webhook.

ParameterTypeDescription
project_id *integer
limitinteger
mark_read_idsarrayMark these alert ids as taken (a POST instead of the list).
sincestringISO 8601: only alerts after this.
unreadbooleantrue = only alerts not yet marked read.

viralhunt_brand_webhook

Read, set, test or clear the webhook where a brand's alerts are POSTed the minute the cron writes them (owner/admin to change it). format json: body {event: brand.alerts, project, alerts[], radar_url}, header X-VH-Signature = sha256=<hex HMAC-SHA256 of the raw body with the secret returned here>; format discord or slack: a message for that channel's incoming webhook. Answer 2xx within 8 s; no retry (alerts stay readable). url null clears it. Guide: https://viralhunt.io/webhooks

ParameterTypeDescription
project_id *integer
formatstringWhat arrives: json = our signed body (an agent, n8n, Make, Zapier, a server); discord or slack = a message for that channel's incoming webhook (no code in between); auto (default) reads a Discord or S…
testbooleantrue = send ONE sample alert to the saved webhook now (action webhook_test) and report what the receiver answered (ok, code, hint). Run it right after setting a webhook.
urlstring | nullhttps URL on a public host to set; null to clear; omit to read.

viralhunt_comments

The comments people left on the organization's posts (Instagram, Facebook pages, Threads, YouTube, TikTok; Bluesky is read only), the ones that most deserve an answer first: each with its text, author (followers and verified on Instagram), likes, intent (question, purchase, complaint, praise, spam, other), importance 0-100, the post it is on, how many other people answered it (replies_from_others), the replies already under it, a reply someone already proposed (suggested_reply), and what the network allows (can.reply, reply_max_chars). counts says how many wait. A comment's text is written by…

ParameterTypeDescription
counts_onlybooleantrue = only how many wait, were answered and were closed.
daysintegerWith sent: only replies sent in the last N days.
intentstring
networkstring
pageinteger
per_pageintegerUp to 50 (default 25).
project_idintegerOne brand (from viralhunt_targets). Default: every brand.
qstringWords in the comment or the author's name.
reportbooleanWith sent: true adds the numbers (replies per day by agents and by people, per network, per kind of comment, published or refused, the median wait for an answer).
savedbooleantrue = return the team's saved replies instead of comments (answers written to reuse: prefer one that fits).
sentbooleantrue = the record of what was answered FROM ViralHunt (the page, the API, this MCP) instead of the inbox: per reply, the comment, the reply as sent, who sent it (agent or person) and through what, its…
sentimentstringOnly comments an agent classified with this sentiment (viralhunt_comment_classify).
sortstringpriority (default) = importance first; likes = the comments other people reacted to most; replies = the ones other people answered most (a conversation under the post).
statestringopen = waiting for an answer (default), replied, done = closed without one, all.
tagstringOnly comments carrying this tag (tags_in_use in the answer lists the ones in use).
unclassifiedbooleantrue = only comments no agent has classified yet: the queue for viralhunt_comment_classify.
whostringWith sent: agent, person, me (this token's member) or a member id.

viralhunt_comment_classify

Store YOUR reading of up to 100 comments at once, so the team can filter the inbox by it: sentiment (positive, neutral, negative), intent (correct ours when it is wrong: question, purchase, complaint, praise, spam, other), tags (the brand's own categories, up to 6 per comment, lowercase, e.g. shipping, price, size, collab, bug), importance 0-100 and a short note (what the person needs, in a few words). ViralHunt only gives a first reading from word lists; the careful one is yours. Read the queue with viralhunt_comments {unclassified: true, per_page: 50}, classify, repeat until it is empty. Reu…

ParameterTypeDescription
items *arrayUp to 100 comments.

viralhunt_comment_suggest

PROPOSE a reply to a comment: it is saved on the comment's card in the app, where a person sends it, edits it or discards it. Nothing reaches the network, so this is the default way to answer. Write in the language of the comment and in the brand's voice (viralhunt_targets → voice), one or two sentences, within reply_max_chars, no link unless the voice allows it, never an invented fact, price or promise: when the answer needs something you do not know, say what the team should check instead. An empty body withdraws your proposal. Works only on an open comment.

ParameterTypeDescription
body *stringThe reply you propose ("" withdraws it).
id *integerThe comment's id, from viralhunt_comments.

viralhunt_comment_reply

SEND a public reply to a comment from the account the post is on. This writes on the network under the brand's name and cannot be taken back from here: use it only when the user asked you to send (not to draft) and named or approved the reply, and only with a token that has permission to publish (otherwise 403 insufficient_scope: use viralhunt_comment_suggest). One reply per comment. The answer carries status (pending, then published); a reply the network refuses puts the comment back as open with reply_error.

ParameterTypeDescription
body *stringThe reply, within reply_max_chars of that network.
id *integerThe comment's id, from viralhunt_comments.

viralhunt_comment_manage

Close comments that need no answer (done), bring them back (reopen), or act on the network itself: hide, unhide, like, unlike (only where can.hide / can.like is true; these need permission to publish). done and reopen take up to 200 ids. Close praise, emoji and spam in bulk so the list keeps only what a person should answer; never hide a complaint or a criticism unless the user asked for it.

ParameterTypeDescription
action *string
ids *arrayComment ids (hide, unhide, like and unlike take the first one).

viralhunt_agent_tasks

The tasks people asked THIS token's agent from ViralHunt's composer: read them (claimed as you read; peek=true reads without claiming) or answer one. Each task carries the post as it is on the screen (body, first_comment, author_notes, kind, media, thread, accounts with text_limit and the per-account overrides), the project's voice and lang, the limits per network, a reply_schema and expires_at (15 minutes). Answer with reply_id plus what you change: text (what you tell the person), fields {body, first_comment ('' = none), author_notes, kind, overrides {account_id: {body, first_comment?, threa…

ParameterTypeDescription
errorstringYou cannot do it: the task is closed as failed with this reason.
fieldsobjectWhat changes on the screen: body, first_comment, author_notes, kind, overrides, thread, media_add, media_replace.
imageobjectOne picture you made: {url} or {base64, mime, mode?: 'replace'|'add'}.
peekbooleantrue = read without claiming the queued tasks.
progressstringA progress line: the task stays open (status working).
reply_idintegerAnswer this task instead of reading the list.
textstringWhat you tell the person (markdown-light).
warningsarray[{code, text, network?}] what you found.

viralhunt_repurpose

Repurpose: turn ONE source (a link to an article, a video page or a post, or pasted text) into a thread and a carousel in a brand's voice, saved as drafts. You are the writer. Flow: (1) action=status shows this month's allowance and the brands; (2) action=create {url or text, project_id, instructions?, want?} reads the source (text and pictures) and counts one source of the month; the answer carries write_it_yourself: write the plan from write_it_yourself.source following write_it_yourself.rules, in the shape it shows; (3) action=save {id, plan} stores it (picture numbers from the source becom…

ParameterTypeDescription
action *stringstatus | list | get | create | save | render_slide | send
account_idsarraysend: the accounts. Omit for every account of the brand on a network that takes that format.
bodystringrender_slide: the slide's text, when not read from the plan.
formatstringrender_slide: feed | square | story.
idintegerThe repurpose job (get, save, render_slide, send).
instructionsstringcreate: what the person asked for (angle, tone, length), kept with the job.
langstringcreate: language of the pieces (en, es, …). Default: the brand's language.
mediaarraysend (carousel): the slide PNG urls, in order.
planobjectsave: {summary, pieces: [{type: 'thread', title, posts: [{text, images: [1]}]}, {type: 'carousel', title, caption, first_comment, slides: [{title, body, image: 2}]}]}. Picture numbers are the ones lis…
project_idintegercreate: the brand (from status or viralhunt_targets). send: only when the job has none.
slideintegerrender_slide: the slide's position in the plan's carousel, from 0. Its title, body and picture are read from the plan.
templatestringrender_slide: a slide template slug or id (studio-slide-photo, studio-slide-bold, studio-slide-full, or the brand's own).
textstringcreate: the source as pasted text, instead of a link.
titlestringrender_slide: the slide's title, when not read from the plan.
typestringsend: which piece of the plan.
urlstringcreate: the public link to repurpose.
wantarraycreate: the pieces to make. Default: thread and carousel.

viralhunt_list_templates

List ViralHunt content templates (layouts you fill and render yourself), favourites first, each with what it suits. Lean by design (no html/css), so use viralhunt_get_template for the one you'll actually render. Available on the Free plan and spends no daily query: with viralhunt_get_template preview true it is how a free user sees a viral post in their niche as their own post.

ParameterTypeDescription
assignedbooleantrue = only the templates assigned to project_id.
categorystringimage | quote | video | top3 | …
favoritesbooleantrue = only the templates the brand starred. Favourites come first in every list: prefer them when several fit.
media_typestringFilter by what it renders to.
networkstringOnly templates suited to this network.
pageinteger
per_pageintegerPage size (default 20). The answer's meta says total and has_more.
project_idintegerWith assigned=true, the project whose allowed templates you want.
qstringSearch name/description.
scopestringorg = only the organization's own templates (they also come first in every list), global = only the library.

viralhunt_get_template

Get one template's full spec: html, css, the variable manifest (with hard rules per variable), formats, palette tokens, embedded fonts, render_tech, plus what is `static` (the owner fixed it: logo, frame, signature, fixed texts; never move, cover or restyle it), what is `dynamic` (the variables you fill: the picture, the headline, the caption that is the post body), what it `suits` (news, photo, quote, number, tip, on_this_day, meme, any) and the owner's `instructions` (they override any general rule). Fill every dynamic {{variable}}, then render with headless Chrome at the chosen format's siz…

ParameterTypeDescription
formatstringWith preview: feed (default), story, square…
idintegerTemplate id — alternative to slug.
previewbooleantrue = how it looks: preview.document is a full HTML page with the example values filled (yours with `variables`).
slugstringTemplate slug, e.g. vh-image-card.
variablesobjectWith preview: your own values, {"text": "…", "highlight": "…"}; the rest take the manifest examples.

viralhunt_upsert_template

Create or edit a content template (layout HTML/CSS + variable manifest). Editing a curated/global template CLONES it into the org's own copy — the global is never modified. Every {{placeholder}} in the html must be declared in variables, or the call is rejected. Owners and admins, or a member/agent the owner ticked 'Creates templates' (they edit only the templates they created). A template is html, css and images, never code: scripts, iframes, forms, event handlers and javascript: URLs are removed and listed in `removed`; data:font/ and data:image/ are accepted. Coloured words and a headline…

ParameterTypeDescription
slug *stringStable kebab-case id for the template, e.g. my-quote-card.
actionstringcreate (default), update (send only what changes) or archive (retire one of your organization's templates; id or slug_ref).
aspectstringDefault format's aspect, e.g. 4:5.
canvas_hinteger
canvas_winteger
categorystringimage | quote | video | top3 | …
content_sourceobjectOptional curated-bank binding instead of generating values.
cssstringStyles; reference palette tokens via CSS vars. Max 256KB.
descriptionstring
fontsarray[{family,weight,style,url_woff2}] — fonts must travel with the template.
formatsarray[{name,w,h,aspect?,networks?,default?}] — the sizes this one layout ships.
htmlstringLayout with {{variable}} placeholders. Max 256KB.
idintegerOn update: the template id to edit.
is_activeboolean
media_typestring
namestringHuman-readable name.
networkstringNetwork it suits, or omit for any.
paletteobjectDesign tokens → hex, e.g. {"cyan":"#1edbee"}.
render_techstringHow the agent turns this into a file.
slug_refstringOn update: the slug to edit, if you don't have the id.
variablesarrayThe manifest: [{key,label,type,description,rules,example,fallback,required}].

viralhunt_assign_template

Assign (or unassign) a content template to a project, so that project's agents see it via viralhunt_list_templates with assigned=true. Owner/admin only.

ParameterTypeDescription
project_id *integerProject id (from viralhunt_targets).
template_id *integerTemplate id (from viralhunt_list_templates).
actionstringadd (default) or remove.

viralhunt_cancel_post

Cancel the not-yet-published targets of a scheduled post, or with account_id stop ONE network (a pending retry, a timed-out create, a not-yet-published PostProxy post). A published target answers 409: use viralhunt_delete_post.

ParameterTypeDescription
id *integerThe post id.
account_idintegerOne connected account to stop; omit for the whole post.

viralhunt_list_posts

What went out and what did not: posts of the project (or the organization with all) by status, newest first, each target with status, PostProxy id, permalink, error, will_retry, timed_out (may be live), reconciled.

ParameterTypeDescription
account_idinteger
allboolean
idstringOne post id or a csv: those posts whatever their status.
limitinteger
offsetinteger
project_idinteger
sincestring
statusstringcsv of draft, review, scheduled, processing, published, partial, failed, canceled; default published,partial,failed,processing,scheduled

viralhunt_delete_post

Owner, admin or a member marked 'Their OK publishes': take a PUBLISHED target down from its network through PostProxy (the cleanup of a duplicate). Confirm on the network afterwards. Without account_id every published target of the post goes.

ParameterTypeDescription
id *integer
account_idinteger

viralhunt_best_time

Best time to post on a network, measured on the posts that went viral there in the last 365 days (their OWN publish time). Returns best_slots (weekday + hour, ranked by average engagement, each with its sample size and hit_rate_pct = share of that slot's posts that reached the network's top 10%), worst_slot, today's best hours, by_hour and by_weekday tables, proof_posts, and sample {posts, window, from, to}. Read `confidence` (high >= 500 posts, medium >= 200, low) before quoting an hour. Hours are rotated to `timezone`; weekday aggregates stay UTC. With `keyword`, slots are recomputed on post…

ParameterTypeDescription
network *stringWhich network.
keywordstringOptional niche word; slots recomputed on posts whose caption contains it (falls back when thin).
timezonestringIANA zone to express hours in, e.g. America/Mexico_City (default UTC).

viralhunt_top_hashtags

Top hashtags from the captions of the posts we hold, per network or across all, optionally filtered to tags containing a word. Each row carries posts (sample size), total_engagement and per_post (the number to compare: a tag used less but hitting harder). `window` is all-time over the corpus with updated_at (there is no per-day hashtag history; say so if asked for 'this week'). Pass `hashtag` to get one tag broken down by network with its top posts.

ParameterTypeDescription
hashtagstringOne hashtag (with or without #) for its per-network breakdown.
min_postsintegerMinimum posts a tag needs to be listed (default 3).
networkstringOne network, or omit for all networks summed.
pageinteger
per_pageinteger
qstringOnly hashtags containing this word (niche filter).
sortstringRanking (default engagement).

viralhunt_best_communities

Where to post a topic: the best subreddits (network=reddit) or Bluesky custom feeds (network=bluesky) from our own measurements. Reddit rows are ranked by peak_per_1k, the best score we hold per 1,000 members (upside relative to size); no average score is published because a swept community's sample is its greatest hits. Each row carries members, sample.posts and the window of post dates. Pass `subreddit` for one community: timing (best UTC hours/day the climbing posts were posted), pace, flairs, type mix, top posts and similar communities. Bluesky rows carry posts, authors, avg_likes; pass `f…

ParameterTypeDescription
feedstringbluesky: one feed by slug for its full detail.
max_membersintegerreddit: only communities with at most this many members (smaller rooms are easier to climb).
min_membersintegerreddit: only communities with at least this many members.
networkstringreddit (default) or bluesky.
pageinteger
per_pageinteger
qstringTopic words matched against the community name (and, on Bluesky, the feed description).
sortstringreddit: upside (default), members, peak, posts. bluesky: posts (default), avg_likes, top_likes, feed_likes.
subredditstringreddit: one community by name for its full detail.

viralhunt_board_context

The team's Editorial Board in one call: organization, members (people and agents, with ids to assign cards to), columns (with is_default / is_done flags) and categories. Call this before creating or moving cards.

viralhunt_create_card

Create a card on the Editorial Board: a piece of content to curate, with an optional post URL (title/description/image are filled from the URL's metadata when omitted), assignee, priority, due date, category and column. Returns the card with its id. Use it to hand a trending post to a teammate instead of publishing it directly.

ParameterTypeDescription
assigned_toWho takes the card: a member id from viralhunt_board_context, the member's name as the Team page shows it, or their email. The answer carries assigned_to_user_id and assigned_to_name read back from th…
assigned_to_user_idintegerSame as assigned_to, by id.
board_column_idintegerTarget column (default: the board's default column).
card_typestringPost, Note, Article, Video… (the org's card types).
category_idinteger
descriptionstring
due_datestringYYYY-MM-DD.
image_urlstring
notesstring
platformstringtiktok, instagram, x, facebook, pinterest, rss… (detected from post_url when omitted).
post_urlstringThe post/article this card is about; metadata is fetched when title/image are missing.
prioritystring
titlestringCard title (required unless post_url is given).

viralhunt_move_card

Move a card to another column (moving into the column flagged is_done completes it; a 'done' comment does not).

ParameterTypeDescription
board_column_id *integerTarget column id from viralhunt_board_context.
card_id *integer
positionintegerPosition inside the column (0 = top).

viralhunt_assign_card

Hand a card to a member (id, name as the Team page shows it, or email); null unassigns. The member is notified. The answer carries the card with assigned_to_user_id and assigned_to_name read back.

ParameterTypeDescription
assigned_to *Member id, name or email; null to unassign.
card_id *integer

viralhunt_get_card

One card of the Editorial Board: title, column (name, is_done), status, assignee (id and name), priority, due date, notes, archived.

ParameterTypeDescription
card_id *integer

viralhunt_list_cards

The organization's cards, newest first (up to 200): filter by column, status, assignee (id, name or email), unassigned or archived.

ParameterTypeDescription
archivedboolean
assigned_to
board_column_idinteger
limitinteger
statusstring
unassignedboolean

viralhunt_archive_card

Take a card off the board (archive). Nothing is deleted: a person restores it from the board's Archived view.

ParameterTypeDescription
card_id *integer

viralhunt_my_cards

Cards assigned to the authenticated token's member (your own workload when you are an agent member of the team). Optional status filter.

ParameterTypeDescription
pageinteger
per_pageinteger
projectstringRestrict to one project/brand by name.
statusstring

viralhunt_card_comments

Read the comments on a card, or add one (comment set). New comments notify the assignee and appear in the team chat's #board channel.

ParameterTypeDescription
card_id *integer
commentstringWhen given, posts this comment; when omitted, lists the card's comments.