Sync analytics
sync_analyticsRefreshes a workspace's post analytics (views, likes, comments, shares, account stats) from the connected platforms. Same operation as the Sync button on the ShortSync Analytics tab. Runs in the background and returns a job_id right away; a sync takes roughly 15 seconds to 5 minutes. Pass job_id (with the same workspace_id) to check progress instead of starting a new sync: status goes queued → running → completed/failed, and the analytics read tools return fresh numbers once it is completed. The read tools (get_workspace_analytics, get_post_analytics, get_video_analytics, get_folder_analytics, explain_post_analytics_state) already start a sync on their own when the data is over an hour old, so only call this when the user explicitly wants a refresh now. Only one sync runs per workspace at a time. Counts against the workspace's daily sync limit; Free plan workspaces can sync once per calendar month.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | Optional: a job_id returned by an earlier call. When set, returns that job's progress and starts nothing. | |
| platform | No | Optional: sync only this platform (youtube, tiktok, instagram, etc.). Omit to sync every connected platform. | |
| workspace_id | Yes | Workspace to sync. Required; get one from list_workspaces. | |
| idempotency_key | No | Optional client-generated key (e.g., a UUID) to make retries safe. Identical calls with the same key within 10 minutes return the original result instead of running the write twice. |