ViralNote
v0.2.4Schedule, publish, and analyze social posts on TikTok, Instagram, YouTube, X, Threads, LinkedIn.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_posts
List the user's posts. Returns post objects with id, caption, status, target platforms, scheduled time, and attached media ids, plus a `cursor` field when more pages exist. Use this to find a post's id before calling get_post, update_post, delete_post, or publish_post, or to review upcoming scheduled content. For per-platform delivery outcomes or metrics, prefer list_post_results or list_analytics instead.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque pagination cursor from the previous response. Omit for the first page. |
limit | integer | Maximum posts per page (1-50). |
platform | string | Only return posts that target this platform. Omit to include all platforms. |
status | string | Filter by lifecycle state: draft (saved, no publish time), scheduled (queued for a future time), publishing (delivery in progress), published (delivered), failed (delivery errored). Omit to list all. |
get_post
Fetch a single post by id, including its full per-platform publish results (success or error per platform). Use after list_posts to inspect one post in detail, or after publish_post to check how delivery went. Returns an error if the id does not exist or belongs to another account.
| Parameter | Type | Description |
|---|---|---|
postId * | string | The post's id, as returned by list_posts or create_post. |
create_post
Create a new post as a draft or schedule it for automatic publishing. With status='draft' (or is_draft=true) the post is saved with no publish time; with scheduledFor set it is queued and publishes automatically at that time. Returns the created post object including its id. Media must already exist in the library — call import_media or list_media first to get a media id. The user must have connected each target platform (verify with list_social_accounts if unsure). To publish an existing draft immediately, use publish_post rather than creating a new post.
| Parameter | Type | Description |
|---|---|---|
platforms * | array | Platforms to publish to. Each must already be connected to the user's ViralNote account. |
caption | string | The post text, used for all target platforms. Platform-specific length limits apply at publish time. |
is_draft | boolean | Convenience flag: true saves the post as a draft (status='draft'). False with scheduledFor set schedules it. |
libraryItemId | string | Id of one media library item to attach (from list_media or import_media). Mutually exclusive with mediaIds. |
mediaIds | array | Media library item ids for a multi-image carousel post, up to 10. Mutually exclusive with libraryItemId. Platform support for carousels varies. |
scheduledFor | string | When to auto-publish, as an ISO 8601 UTC timestamp (e.g. 2026-07-10T09:00:00Z). Must be in the future. Required for scheduled posts; omit for drafts. |
status | string | Explicit lifecycle state. Overrides is_draft when both are passed. |
update_post
Edit a draft or scheduled post before it publishes. Send only the fields to change — omitted fields keep their current values. Returns the updated post object. Posts that are already publishing, published, or failed cannot be edited. Common uses: reschedule by passing a new scheduledFor, fix a caption, swap attached media, or convert a draft to scheduled by passing status='scheduled' together with scheduledFor.
| Parameter | Type | Description |
|---|---|---|
postId * | string | Id of the draft or scheduled post to edit, from list_posts. |
caption | string | Replacement post text. |
libraryItemId | string | Replacement single media item id. Mutually exclusive with mediaIds. |
mediaIds | array | Replacement carousel media ids (up to 10). Mutually exclusive with libraryItemId. |
platforms | array | Replacement list of target platforms (replaces the whole list, not a merge). |
scheduledFor | string | New auto-publish time, ISO 8601 UTC, in the future. |
status | string | Move between draft and scheduled. Scheduling requires scheduledFor to be set (here or previously). |
delete_post
Permanently delete a post by id. If the post is scheduled, this cancels the pending publish. This does not retract content already delivered to social platforms — it only removes the ViralNote record. Irreversible: confirm with the user before deleting. Use update_post instead if the goal is to fix or reschedule a post.
| Parameter | Type | Description |
|---|---|---|
postId * | string | Id of the post to delete, from list_posts. |
publish_post
Publish an existing draft post to all of its target platforms immediately, skipping the schedule queue. Only valid on posts with status='draft' — returns an error for scheduled or already-published posts. Returns the post with delivery kicked off; individual platforms can still succeed or fail independently, so follow up with get_post or list_post_results to confirm the outcome.
| Parameter | Type | Description |
|---|---|---|
postId * | string | Id of the draft post to publish, from list_posts or create_post. |
list_media
List items in the user's media library. Returns each item's id, name, type, and folder, plus a `cursor` field when more pages exist. Use this to find a media id to attach to a post via create_post or update_post, or to check whether a file was already imported before calling import_media.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque pagination cursor from the previous response. Omit for the first page. |
folder | string | Only items in this library folder (exact name match). Omit for all folders. |
limit | integer | Maximum items per page (1-50). |
sort | string | Sort order by upload date. |
type | string | Filter by media kind. 'clip' is a short-form clip generated by ViralNote's AI clipping. |
import_media
Import a file into the media library so it can be attached to posts. Two modes: (1) URL mode — pass `url` with an HTTPS direct-download link (up to 200MB; Dropbox and Canva share links supported via the matching `source`); (2) inline mode — pass `data` with base64-encoded bytes (3MB max before encoding) plus `mimeType`, with source='direct'. Exactly one of `url` or `data` must be provided. Returns the created library item including the id to use in create_post. For files over 3MB, always use URL mode.
| Parameter | Type | Description |
|---|---|---|
name * | string | Display name for the library item, including the file extension (e.g. 'clip-01.mp4'). |
source * | string | Origin of the file: 'dropbox' or 'canva' when url is a share link from those services; 'direct' for base64 data or a generic HTTPS URL. |
bytes | integer | Optional declared file size in bytes, letting the API reject oversized files before downloading. |
data | string | Base64-encoded file bytes, 3MB maximum raw size. Mutually exclusive with `url`; requires `mimeType`. |
mimeType | string | MIME type such as video/mp4 or image/png. Required with `data`; optional with `url` (detected from the download). |
url | string | HTTPS direct-download URL of the file, up to 200MB. Mutually exclusive with `data`. |
delete_media
Permanently delete a media library item by id. The file cannot be recovered — confirm with the user before deleting. Use list_media to find the item's id and verify it is the right file (check name and type) first.
| Parameter | Type | Description |
|---|---|---|
mediaId * | string | Id of the media library item to delete, from list_media or import_media. |
list_social_accounts
List the social accounts connected to the user's ViralNote account: platform and account identity for each. Takes no parameters. Use before create_post to confirm the intended target platforms are actually connected — posting to an unconnected platform fails. Note that connecting or disconnecting accounts happens in the ViralNote dashboard UI (OAuth); it cannot be done through this API.
list_analytics
List published posts with their latest per-platform metrics: views, likes, comments, shares, and engagement. Metrics are collected periodically by ViralNote, so values are the most recent snapshot rather than real-time. Use to report on content performance or find top-performing posts; use list_post_results instead when the question is whether delivery succeeded. Paginated via cursor.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque pagination cursor from the previous response. Omit for the first page. |
limit | integer | Maximum posts per page (1-50). |
platform | string | Only include metrics for posts targeting this platform. Omit for all platforms. |
list_post_results
Check delivery outcomes: returns recent published or failed posts with each platform's individual result (success, or the error that occurred). Pass postId to inspect one post's delivery; omit it to scan recent posts filtered by status. Use after publish_post to verify delivery, or when the user asks why a post didn't appear on a platform. For engagement metrics rather than delivery status, use list_analytics.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum posts to return (1-50). |
postId | string | Restrict to a single post's results. When set, status and limit are ignored. |
status | string | Which recent posts to scan when postId is omitted: successfully published, or failed deliveries. |
list_webhooks
List all webhook subscriptions on the account: each subscription's id, target URL, and subscribed events. Takes no parameters. Use to find a webhookId before delete_webhook, or to check whether an event is already covered before calling create_webhook (avoids duplicate subscriptions).
create_webhook
Subscribe a URL to ViralNote event notifications. ViralNote sends an HTTP POST with a JSON payload to the URL each time a subscribed event fires — for example post.published when a post goes live, or post.failed when delivery errors. Returns the created subscription including its id. The URL must be an HTTPS endpoint you control and that is publicly reachable. Check list_webhooks first to avoid duplicating an existing subscription.
| Parameter | Type | Description |
|---|---|---|
events * | array | Event names to subscribe to, e.g. 'post.published', 'post.failed'. |
url * | string | Publicly reachable HTTPS endpoint that will receive event POSTs. |
delete_webhook
Delete a webhook subscription by id. The target URL immediately stops receiving event notifications. Irreversible, but a subscription can be recreated with create_webhook. Use list_webhooks to find the id and confirm which URL/events it covers before deleting.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | Id of the webhook subscription to delete, from list_webhooks. |