---
agent:
  instructions: "Search the SocialTap docs with keywords or a question instead of crawling pages: GET https://socialtap.dev/.well-known/search?q={query} returns the best sections as Markdown (JSON with Accept: application/json), free and without a key."
  endpoint: "https://socialtap.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://socialtap.dev/docs/agents/#docs-for-agents"
---
# Update, pause or resume a monitor

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

Monitors

PATCH `/v1/monitors/{id}`

Changes a monitor's interval, watched fields, webhook, email or metadata, or pauses and resumes it (status); fields left out keep their value. Its endpoint and params never change: create another monitor. Resuming it binds it to the key (or dashboard) that resumed it.

**Auth:** an API key with the `jobs` scope, or the dashboard session.

## Example

cURL:

```shell
curl -X PATCH 'https://socialtap.dev/v1/monitors/<id>' \
  -H "x-api-key: $SOCIALTAP_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "email": true,
  "interval_s": 300,
  "max_age": 0,
  "metadata": {},
  "name": "string",
  "pages_per_run": 1,
  "status": "active",
  "watch": [
    {
      "field": "string"
    }
  ],
  "webhook_secret": "string",
  "webhook_url": "string"
}'
```

## Authorizations

`x-api-key`stringheaderrequired

Your API key, with the `jobs` scope. [Authentication](https://socialtap.dev/docs/authentication/index.md)

## Path parameters

| Name | Type | Description | Example |
| --- | --- | --- | --- |
| `id` required | `string` | Monitor ID (mon_…). | — |

## Body

JSON. Fields marked nullable may be `null`; optional ones may be left out.

| Field | Type | Description |
| --- | --- | --- |
| `email?` | `boolean` or `null` | Email the owner what it finds. |
| `interval_s?` | `integer` or `null` | Seconds between runs (as on create). |
| `max_age?` | `integer` or `null` | Seconds a cached answer may be old; 0 for always fresh. |
| `metadata?` | `object` or `null` | Replaces your metadata; left out, it stays. |
| `name?` | `string` or `null` | Your label; an empty string removes it. |
| `pages_per_run?` | `integer` or `null` | Lists only: the most pages a run reads. |
| `status?` | `string` or `null` | paused stops its runs; active resumes it, from the key (or the dashboard) that resumes it.<br>One of `active`, `paused` |
| `watch?` | `object[]` or `null` | Replaces the watched fields. A newly watched field is compared from its first value. |
| `watch[].above?` | `number` or `null` | Numbers only: report it each time it rises above this (from at or below it). |
| `watch[].below?` | `number` or `null` | Numbers only: report it each time it falls below this (from at or above it). |
| `watch[].field` | `string` | The field's path in the item, as fields= names it (metrics.follower_count, author.username); its endpoint's reference page lists them. |
| `watch[].min_change?` | `number` or `null` | Numbers only: report it when it moved at least this much since the value last reported. |
| `watch[].min_change_percent?` | `number` or `null` | Numbers only: report it when it moved at least this many percent of the value last reported. |
| `webhook_secret?` | `string` or `null` | A new signing secret of yours (whsec_…); the previous one keeps signing for an hour. |
| `webhook_url?` | `string` or `null` | Its own webhook's URL; an empty string removes the webhook. |

## Response

### 200

Update, pause or resume a monitor

| Field | Type | Description |
| --- | --- | --- |
| `data` | `object` |  |
| `data.api_key_id` | `string` or `null` | The API key (key_…) its runs are charged to and limited by (its spend limit); the dashboard's own key for a monitor made in the dashboard. |
| `data.created_at` | `string` (date-time) |  |
| `data.created_by_user` | `string` or `null` | The person (GET /v1/members user_id) who created it in the dashboard, or whose API key created it. Null when no person did. |
| `data.email` | `boolean` | Whether the owner is emailed what it finds. |
| `data.endpoint` | `string` | The endpoint it runs.<br>One of `amazon.deal_products`, `amazon.offers`, `amazon.product`, `amazon.reviews`, `amazon.search_products`, `amazon.seller`, `amazon.shop`, `amazon.shop_lists`, `amazon.shop_posts`, `amazon.top_products`, `applemusic.album`, `applemusic.artist`, `applemusic.search_albums`, `applemusic.search_artists`, `applemusic.search_playlists`, `applemusic.search_tracks`, `applemusic.top_albums`, `applemusic.top_playlists`, `applemusic.top_tracks`, `applemusic.track`, `bluesky.comments`, `bluesky.post`, `bluesky.posts`, `bluesky.profile`, `bluesky.search_posts`, `cosmos.collection`, `cosmos.collection_posts`, `cosmos.collections`, `cosmos.post`, `cosmos.posts`, `cosmos.profile`, `cosmos.search_collections`, `cosmos.search_posts`, `facebook.ad`, `facebook.ads`, `facebook.advertiser`, `facebook.comments`, `facebook.engagement`, `facebook.event`, `facebook.events`, `facebook.group`, `facebook.group_posts`, `facebook.listing`, `facebook.photos`, `facebook.place_events`, `facebook.post`, `facebook.posts`, `facebook.profile`, `facebook.reels`, `facebook.replies`, `facebook.search_ads`, `facebook.search_advertisers`, `facebook.search_events`, `facebook.search_groups`, `facebook.search_listings`, `facebook.search_places`, `facebook.search_posts`, `facebook.search_profiles`, `fandom.comments`, `fandom.post`, `fandom.search_wiki_pages`, `fandom.wiki`, `fandom.wiki_activity`, `fandom.wiki_page`, `fandom.wiki_page_comments`, `fandom.wiki_pages`, `fandom.wiki_posts`, `fandom.wiki_recent_posts`, `github.activity`, `github.followers`, `github.following`, `github.issue`, `github.issue_comments`, `github.issues`, `github.pinned_repositories`, `github.profile`, `github.profile_pull_requests`, `github.releases`, `github.repositories`, `github.repository`, `github.repository_contributors`, `github.search_issues`, `github.search_profiles`, `github.search_repositories`, `github.trending_profiles`, `github.trending_repositories`, `google.ad`, `google.ads`, `google.advertiser`, `google.search_ads`, `google.search_advertisers`, `google.search_suggestions`, `googlemaps.contributor`, `googlemaps.contributor_reviews`, `googlemaps.place`, `googlemaps.place_photos`, `googlemaps.place_posts`, `googlemaps.place_reviews`, `googlemaps.post`, `googlemaps.search_places`, `hackernews.comment`, `hackernews.comments`, `hackernews.feed_stories`, `hackernews.search_comments`, `hackernews.search_stories`, `hackernews.story`, `hackernews.user`, `hackernews.user_comments`, `hackernews.user_favorites`, `hackernews.user_stories`, `hackernews.whoishiring_jobs`, `instagram.comment`, `instagram.comments`, `instagram.engagement`, `instagram.hashtag`, `instagram.hashtag_posts`, `instagram.highlights`, `instagram.place`, `instagram.place_posts`, `instagram.playlist_stories`, `instagram.popular_trends`, `instagram.post`, `instagram.posts`, `instagram.profile`, `instagram.reels`, `instagram.search_hashtags`, `instagram.search_places`, `instagram.search_posts`, `instagram.search_profiles`, `instagram.search_sounds`, `instagram.search_suggestions`, `instagram.similar_profiles`, `instagram.sound`, `instagram.sound_posts`, `instagram.story`, `instagram.topic`, `instagram.trending_posts`, `instagram.username`, `kick.post`, `komi.page`, `kwai.post`, `kwai.posts`, `kwai.profile`, `linkbio.profile`, `linkedin.ad`, `linkedin.comments`, `linkedin.employees`, `linkedin.engagement`, `linkedin.following`, `linkedin.job`, `linkedin.job_related_jobs`, `linkedin.jobs`, `linkedin.liked_posts`, `linkedin.post`, `linkedin.post_reactions`, `linkedin.post_reposts`, `linkedin.posts`, `linkedin.profile`, `linkedin.profile_comments`, `linkedin.profile_groups`, `linkedin.search_ads`, `linkedin.search_jobs`, `linkedin.search_posts`, `linkedin.search_profiles`, `linkme.profile`, `linktree.profile`, `pillar.page`, `pinterest.board`, `pinterest.board_pins`, `pinterest.boards`, `pinterest.pin`, `pinterest.pins`, `pinterest.profile`, `pinterest.search_pins`, `pinterest.top_trends`, `pinterest.topic`, `pinterest.web_page`, `reddit.comments`, `reddit.engagement`, `reddit.post`, `reddit.posts`, `reddit.profile`, `reddit.profile_comments`, `reddit.search_comments`, `reddit.search_posts`, `reddit.search_profiles`, `reddit.search_subreddits`, `reddit.subreddit`, `reddit.subreddit_posts`, `rumble.comments`, `rumble.engagement`, `rumble.post`, `rumble.posts`, `rumble.profile`, `rumble.search_posts`, `snapchat.comments`, `snapchat.profile`, `snapchat.spotlight`, `soundcloud.artist`, `soundcloud.track`, `soundcloud.tracks`, `spotify.album`, `spotify.artist`, `spotify.playlist`, `spotify.playlist_tracks`, `spotify.podcast`, `spotify.podcast_episodes`, `spotify.search_albums`, `spotify.search_artists`, `spotify.search_playlists`, `spotify.search_podcasts`, `spotify.search_tracks`, `spotify.track`, `telegram.channel`, `telegram.channel_posts`, `telegram.post`, `telegram.search_channels`, `threads.comments`, `threads.post`, `threads.posts`, `threads.profile`, `threads.search_posts`, `threads.search_profiles`, `tiktok.ad`, `tiktok.audience`, `tiktok.comment`, `tiktok.comments`, `tiktok.effect`, `tiktok.effect_posts`, `tiktok.engagement`, `tiktok.followers`, `tiktok.following`, `tiktok.hashtag`, `tiktok.hashtag_posts`, `tiktok.liked_posts`, `tiktok.live`, `tiktok.place_posts`, `tiktok.playlist_posts`, `tiktok.playlists`, `tiktok.post`, `tiktok.posts`, `tiktok.profile`, `tiktok.replies`, `tiktok.search_ads`, `tiktok.search_hashtags`, `tiktok.search_posts`, `tiktok.search_profiles`, `tiktok.search_sounds`, `tiktok.search_suggestions`, `tiktok.search_top`, `tiktok.sound`, `tiktok.sound_posts`, `tiktok.top_ads`, `tiktok.top_posts`, `tiktok.trending_hashtags`, `tiktok.trending_posts`, `tiktokshop.product`, `tiktokshop.products`, `tiktokshop.reviews`, `tiktokshop.search_products`, `truthsocial.post`, `truthsocial.posts`, `truthsocial.profile`, `twitch.profile`, `twitch.schedule`, `twitch.video`, `twitch.videos`, `x.comments`, `x.community`, `x.community_posts`, `x.engagement`, `x.friendship`, `x.list`, `x.list_followers`, `x.post`, `x.posts`, `x.profile`, `x.profile_mentions`, `x.search_communities`, `x.search_hashtags`, `x.search_posts`, `x.search_profiles`, `x.space`, `yelp.search_businesses`, `youtube.channel_posts`, `youtube.comments`, `youtube.engagement`, `youtube.hashtag_posts`, `youtube.playlist`, `youtube.playlist_posts`, `youtube.playlists`, `youtube.post`, `youtube.post_related_posts`, `youtube.posts`, `youtube.profile`, `youtube.replies`, `youtube.search_playlists`, `youtube.search_posts`, `youtube.search_profiles`, `youtube.search_suggestions`, `youtube.sound_posts`, `youtube.top_posts`, `youtube.trending_posts` |
| `data.first_run` | `string` | One of `baseline`, `report` |
| `data.id` | `string` | The monitor ID (mon_…). |
| `data.interval_s` | `integer` | Seconds between runs. |
| `data.kind` | `string` | list: each run finds new items (and changes to watched fields of items it has seen). item: each run checks one item's watched fields.<br>One of `list`, `item` |
| `data.last_run` | `object` or `null` | Its latest run; null before the first. |
| `data.last_run.changes` | `object` | What it found. |
| `data.last_run.credits_charged` | `integer` |  |
| `data.last_run.error` | `object` or `null` | Exactly the endpoint's error object; null unless failed. |
| `data.last_run.finished_at` | `string` (date-time) or `null` | Null while it runs. |
| `data.last_run.id` | `string` | The run ID (mrun_…). |
| `data.last_run.monitor_id` | `string` |  |
| `data.last_run.object` | `string` | Always monitor_run.<br>One of `monitor_run` |
| `data.last_run.pages` | `integer` | Pages it read. |
| `data.last_run.request_ids` | `string[]` | The requests it made (the request log's IDs), one per page. |
| `data.last_run.started_at` | `string` (date-time) |  |
| `data.last_run.status` | `string` | running, succeeded (whether or not it found changes) or failed (error says why; a failed run is free).<br>One of `running`, `succeeded`, `failed` |
| `data.last_run.trigger` | `string` | schedule, or manual (POST /v1/monitors/{id}/run).<br>One of `schedule`, `manual` |
| `data.max_age` | `integer` or `null` | Seconds a cached answer may be old; null when runs are always fresh. |
| `data.metadata` | `object` | Your metadata; {} when none. |
| `data.name` | `string` or `null` | Your label; null when none. |
| `data.next_run_at` | `string` (date-time) or `null` | When it runs next; null while paused. |
| `data.object` | `string` | Always monitor.<br>One of `monitor` |
| `data.pages_per_run` | `integer` | The most pages a run reads (1 for an item). |
| `data.params` | `object` | The endpoint's params it runs with. |
| `data.paused_reason` | `string` or `null` | Why it is paused: user (a person or key paused it), key_revoked, key_expired or key_forbidden (the key it runs as was revoked, expired or lost the endpoints scope: resume it from another key or the dashboard), failing (its runs failed for 1 day: last_run.error says why), endpoint_retired. Null while active.<br>One of `user`, `key_revoked`, `key_expired`, `key_forbidden`, `failing`, `endpoint_retired` |
| `data.status` | `string` | active: it runs on schedule. paused: it doesn't (paused_reason says why).<br>One of `active`, `paused` |
| `data.totals` | `object` | Its runs, changes and credits since it was created. |
| `data.totals.changes` | `integer` | Changes it recorded (new items and changed ones). |
| `data.totals.credits_charged` | `integer` | Credits its runs were charged. |
| `data.totals.runs` | `integer` |  |
| `data.updated_at` | `string` (date-time) |  |
| `data.watch` | `object[]` | The watched fields; \[\] when none. |
| `data.watch[].above?` | `number` or `null` | Numbers only: report it each time it rises above this (from at or below it). |
| `data.watch[].below?` | `number` or `null` | Numbers only: report it each time it falls below this (from at or above it). |
| `data.watch[].field` | `string` | The field's path in the item, as fields= names it (metrics.follower_count, author.username); its endpoint's reference page lists them. |
| `data.watch[].min_change?` | `number` or `null` | Numbers only: report it when it moved at least this much since the value last reported. |
| `data.watch[].min_change_percent?` | `number` or `null` | Numbers only: report it when it moved at least this many percent of the value last reported. |
| `data.webhook_endpoint_id` | `string` or `null` | The webhook endpoint (we_…) that delivers to webhook_url: GET /v1/webhook_endpoints/{id}/deliveries lists its deliveries. Null when none. |
| `data.webhook_secret?` | `string` or `null` | The secret SocialTap made to sign its webhook (whsec_…): only in the answer that made it. Store it. |
| `data.webhook_url` | `string` or `null` | Its own webhook's URL; null when none. |
| `meta` | `object` | The shared route meta (see the API reference introduction). |

### 400

400 Bad Request.

| Code | HTTP | Retry | Meaning | What to do |
| --- | --- | --- | --- | --- |
| `invalid_input` | 400 | No | A parameter is missing or malformed, or the link is not one this endpoint takes. | Fix the parameter named in param as the message says. For a link of the wrong kind, call an endpoint listed in details.endpoints, when there is one. |

### 401

401 Unauthorized.

| Code | HTTP | Retry | Meaning | What to do |
| --- | --- | --- | --- | --- |
| `unauthorized` | 401 | No | The x-api-key header is missing, or its key is unknown or revoked. On the dashboard's routes: the session cookie is missing or expired. | Send a valid API key in the x-api-key header. No key yet? A person gets one at details.signup_url; an AI agent follows details.agent_auth_url. |

### 403

403 Forbidden.

| Code | HTTP | Retry | Meaning | What to do |
| --- | --- | --- | --- | --- |
| `forbidden` | 403 | No | The API key is valid but may not make this request; details.reason says why. It concerns the key, never the item: a private item is private_or_unavailable, also 403. A running job stops with it when its key or account can no longer run it. | Act on details.reason. suspended: contact [support](mailto:support@socialtap.dev). scope: use a key with details.required_scope. previous_secret: use the new secret. key_expired or key_revoked: create a new key. ip_not_allowed: call from an allowed IP. not_confirmed: ask your user before calling again. |

### 404

404 Not Found.

| Code | HTTP | Retry | Meaning | What to do |
| --- | --- | --- | --- | --- |
| `monitor_not_found` | 404 | No | The account has no monitor (or monitor run) with this ID: the ID is wrong, the monitor was deleted, or the run is past its retention. | Check the ID: GET /v1/monitors lists the account's monitors. |

### 429

429 Too Many Requests.

| Code | HTTP | Retry | Meaning | What to do |
| --- | --- | --- | --- | --- |
| `rate_limited` | 429 | Yes, later | The account passed its runaway-protection ceiling (plans have no rate limit), or its failed requests in the past hour cost far more than its successful ones paid for. Requests without an API key are limited per IP. | Wait the seconds in the retry-after header, then retry. If your steady traffic needs more, ask [support](mailto:support@socialtap.dev) to raise the ceiling; without an API key, send one. |

operationId `monitors.update`

---

[HTML version](https://socialtap.dev/docs/reference/monitors/update/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
