Monitors

Run a monitor now

POST /v1/monitors/{id}/run

Starts a run now, charged like a scheduled one; the schedule doesn't move. A monitor runs one run at a time: while one is running, the answer is that run. wait waits for it to end.

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

Send an idempotency-key header to retry safely: the same key and body within 1 day never repeat the work.

Example

cURL
curl -X POST 'https://socialtap.dev/v1/monitors/<id>/run' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
200 · 202 example
JSON
{
  "data": {
    "changes": {
      "changed": 0,
      "new": 0
    },
    "credits_charged": 0,
    "error": {
      "charged": true,
      "code": "string",
      "details": {},
      "doc_url": "string",
      "message": "string",
      "param": "string",
      "remediation": "string",
      "request_id": "string",
      "retryable": true,
      "status": 0
    },
    "finished_at": "2026-10-27T12:00:00Z",
    "id": "string",
    "monitor_id": "string",
    "object": "monitor_run",
    "pages": 0,
    "request_ids": [
      "string"
    ],
    "started_at": "2026-10-27T12:00:00Z",
    "status": "running",
    "trigger": "schedule"
  },
  "meta": {
    "client_request_id": "string",
    "credits_charged": 0,
    "credits_remaining": 0,
    "request_id": "string",
    "warnings": [
      {
        "code": "string",
        "doc_url": "string",
        "message": "string"
      }
    ]
  }
}

Shape of the answer; values are placeholders.

x-api-keystringheaderrequired

Your API key, with the jobs scope. Authentication

idstringrequired

Monitor ID (mon_…).

idempotency-keystringmax 255 chars

On any POST: your unique key for the request (1–255 printable ASCII characters; a UUID is ideal), kept 24 hours. Retrying with the same key and body never repeats the work: the answer is the first request's result, in its current state.

waitintegermin 0max 60

Seconds to wait for the run to end before answering: the run as it is then.

Response

application/json

200 · 202

Run a monitor now

dataobject
ShowHide 12 child fields
changesobject

What it found.

ShowHide 2 child fields
changedinteger

Items whose watched fields changed.

newinteger

Items it hadn't seen.

credits_chargedinteger
errorobjectnullable

Exactly the endpoint's error object; null unless failed.

ShowHide 10 child fields
chargedboolean

Whether the request was charged: always false, failed requests are free.

codestring

Machine-readable error code (see the error codes list); stable.

detailsobject

The code's dynamic values (the error codes list documents each code's keys); {} when none.

doc_urlstring

URL of this code's documentation.

messagestring

What went wrong and how to fix it, for humans and agents; wording may change.

paramstringnullable

The query parameter or header the error is about; null when it is not about one input.

remediationstring

What to do about this code, one sentence.

request_idstring

Unique request ID; include it when contacting support.

retryableboolean

True when repeating the same request later may succeed (after details.retry_after when present).

statusinteger

The HTTP status of the response, repeated for clients that only see the body.

finished_atstring date-timenullable

Null while it runs.

idstring

The run ID (mrun_…).

monitor_idstring
objectstring

Always monitor_run.

One ofmonitor_run

pagesinteger

Pages it read.

request_idsstring[]

The requests it made (the request log's IDs), one per page.

started_atstring date-time
statusstring

running, succeeded (whether or not it found changes) or failed (error says why; a failed run is free).

One ofrunningsucceededfailed

triggerstring

schedule, or manual (POST /v1/monitors/{id}/run).

One ofschedulemanual

metaobject

The shared route meta (see the API reference introduction).

400

400 Bad Request.

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.

unauthorizedNo retry

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.

forbiddenNo retry

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. 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.

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.

409

409 Conflict.

A request with this Idempotency-Key is still running.

Retry after the seconds in the retry-after header to get that request's result.

422

422 Unprocessable.

This Idempotency-Key was already used for a different request, or for this one when its answer held a secret we no longer keep (details.reason answer_expired).

Use a new key for a different request; reuse a key only to retry the identical one. For answer_expired, check what the first request created (GET /v1/api_keys, GET /v1/webhook_endpoints) before retrying under a new key.

429

429 Too Many Requests.

rate_limitedYes, 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 to raise the ceiling; without an API key, send one.

operationId monitors.run