Update Monitor
monitor-updateChange a monitor's settings and return it. Free. Send only what changes. status 'paused' stops scheduled runs (monitor-trigger still runs it once) and 'active' resumes them, also after a pause for credits or a failing webhook. The per-source options (web_count, x_count, x_lang, x_min_likes, x_accounts, reddit_subreddits, youtube_channels, tiktok_count, tiktok_accounts, tiktok_hashtags, threads_accounts, instagram_accounts, instagram_hashtags, facebook_pages, meta_ads_count) replace the monitor's options as a whole: send every option you want to keep, including its watched accounts and hashtags (an empty list watches none). The API checks the monitor as changed: an update that leaves 'instagram' without instagram_accounts or instagram_hashtags or 'facebook' without facebook_pages (new sources with the current options, or new options with the current sources) is a 422. A new webhook_url gets a new webhook_secret, returned only in this response; remove_webhook removes the webhook. The old values are not kept.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"monitor_id": "<monitor_id>"
},
"name": "monitor-update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A label for the console and webhook deliveries. | |
| query | No | New query (3-500 characters). | |
| status | No | 'paused' stops scheduled runs; 'active' resumes them. | |
| x_lang | No | Only X posts in this language, example: 'en'. Sent as options.x.lang. | |
| sources | No | Where to look: any of 'web', 'x', 'reddit', 'youtube', 'threads', 'tiktok', 'instagram', 'facebook', 'meta_ads' (API default ['web', 'x']). Each run searches each source once, or reads its watched accounts and hashtags (x_accounts, reddit_subreddits, youtube_channels, tiktok_accounts, tiktok_hashtags, threads_accounts, instagram_accounts, instagram_hashtags, facebook_pages). 'instagram' and 'facebook' only read watched feeds: 'instagram' needs instagram_accounts or instagram_hashtags and 'facebook' needs facebook_pages (422 otherwise). 'meta_ads' searches the Meta Ad Library (ads) with the query as keywords. | |
| summary | No | Write a short digest of the items each run keeps (API default false). Billed as its LLM usage plus 50%. | |
| x_count | No | Newest X posts read per run (1-100, API default 20). Not used with x_accounts (a timeline page is 20 posts). Sent as options.x.count. | |
| criteria | No | Up to 5 conditions a new item must meet to be kept, each up to 300 characters, example: ['Announces a new subnet, release or partnership']. Each is one yes/no question in the screen. | |
| interval | No | How often it runs: '1h', '3h', '6h', '12h', '1d' (API default), or '7d'. Each run is billed. | |
| metadata | No | Your own labels, example: {"team": "growth"}. Up to 20 keys of 1-64 characters; values are strings of up to 500 characters. Echoed in webhook deliveries; the monitor does not use them. | |
| min_score | No | Score (0-100) an item needs to be kept (API default 60). The score is the lowest of relevant and each criterion. | |
| web_count | No | Web pages read per run: 10 (API default), 15, or 20. Sent as options.web.count. | |
| monitor_id | Yes | monitor_id returned by monitor-create or monitor-list, example: '6f1d0c9e-0d55-4b8e-9a3c-3c4d9b8e2a10'. | |
| x_accounts | No | Up to 10 X usernames (1-15 characters) to watch, example: ['OpenAI', '@sama', 'https://x.com/opentensor']. With accounts, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. x_lang and x_min_likes still filter the timelines. Sent as options.x.accounts. | |
| webhook_url | No | HTTPS URL on a public address that receives new items as signed POSTs (redirects are not followed). A new or changed URL gets a new webhook_secret, returned only in this response. | |
| x_min_likes | No | Only X posts with at least this many likes. Sent as options.x.min_likes. | |
| tiktok_count | No | TikTok posts read per run: 10 (API default), 20, or 30; per account and per hashtag with tiktok_accounts or tiktok_hashtags. Billed per read, not per post (see the billing note). Sent as options.tiktok.count. | |
| facebook_pages | No | Facebook pages to watch, 1-10: a page name, a numeric page ID, or a page URL (profile.php?id=... and /pages/Name/123... URLs are read as the ID), example: ['NASA', '100064869009429']. Required with the 'facebook' source, which has no keyword search or hashtag feed and reads only these pages (422 without any); for ads by keyword use the 'meta_ads' source. Each run reads up to 10 newest posts per page; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Each page is one read per run ($0.003), whatever the number of posts. Sent as options.facebook.pages. | |
| meta_ads_count | No | Meta Ad Library ads read per run with the 'meta_ads' source: 10 (API default), 20, or 30. The search is one read per run ($0.003), whatever the count. The Ad Library is searched with the query as keywords (a brand, product, or short phrase). Sent as options.meta_ads.count. | |
| remove_webhook | No | true removes the webhook (sent as webhook: null). Do not combine with webhook_url. | |
| webhook_events | No | Events sent to webhook_url: 'monitor.items.found' (a run kept at least one item), 'monitor.run.completed' (every completed run), 'monitor.run.failed'. API default ['monitor.items.found', 'monitor.run.failed']. Needs webhook_url. | |
| tiktok_accounts | No | Up to 10 TikTok usernames to watch, example: ['openai', '@tiktok']. With accounts, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Sent as options.tiktok.accounts. | |
| tiktok_hashtags | No | Up to 10 TikTok hashtags to watch, in any script, example: ['skincare', '#სილამაზე', 'https://www.tiktok.com/tag/skincare']. A hashtag feed lists popular posts before recent ones from any account, so it finds posts outside the watched accounts, and since a new post can reach it days late, a run keeps the hashtag posts from the last 7 days that the monitor has not seen; with accounts or hashtags, the source reads those feeds each run instead of searching by keyword, and the query and criteria still decide what is kept (min_score 0 keeps every new post). Hashtags are sent as given and the API returns them without # (a tag URL becomes its tag); one it cannot read is a 422. Each hashtag is one read per run ($0.003), whatever the number of posts. Sent as options.tiktok.hashtags. | |
| threads_accounts | No | Up to 10 Threads usernames to watch, example: ['zuck', '@mosseri', 'https://www.threads.com/@zuck']. Threads keyword search returns loosely matched posts, so accounts work better. With accounts, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Each account is one request per run ($0.00207). Sent as options.threads.accounts. | |
| youtube_channels | No | Up to 10 YouTube channels to watch: an @handle, a UC... channel ID, or a channel URL, example: ['@OpenAI']. With channels, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Sent as options.youtube.channels. | |
| reddit_subreddits | No | Up to 10 subreddits to watch, example: ['LocalLLaMA', 'r/bittensor_']. With subreddits, the source reads their newest posts each run instead of searching by keyword; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Sent as options.reddit.subreddits. | |
| instagram_accounts | No | Up to 10 Instagram usernames to watch, example: ['openai', '@nasa', 'https://www.instagram.com/nasa/']. The 'instagram' source has no keyword search and reads only watched accounts and hashtags, so it needs instagram_accounts or instagram_hashtags (422 without either). Each run reads up to 12 newest posts per account; the query and criteria still decide what is kept (min_score 0 keeps every new post). Names are sent as given and the API returns them cleaned; a name it cannot read is a 422. Each account is one read per run ($0.003), whatever the number of posts. Sent as options.instagram.accounts. | |
| instagram_hashtags | No | Up to 10 Instagram hashtags to watch, in any script, example: ['skincare', '#სილამაზე', 'https://www.instagram.com/explore/tags/skincare/']. A hashtag feed lists popular posts before recent ones from any account, so it finds posts outside the watched accounts, and since a new post can reach it days late, a run keeps the hashtag posts from the last 7 days that the monitor has not seen; with accounts or hashtags, the source reads those feeds each run instead of searching by keyword, and the query and criteria still decide what is kept (min_score 0 keeps every new post). Hashtags are sent as given and the API returns them without # (a tag URL becomes its tag); one it cannot read is a 422. Each run reads up to 12 posts per hashtag; each hashtag is one read per run ($0.003), whatever the number of posts. Sent as options.instagram.hashtags. |