Monitors

Delete a monitor

DELETE /v1/monitors/{id}

Deletes a monitor, its runs, its changes and its own webhook. A run in progress finishes and is charged.

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

Example

cURL
curl -X DELETE 'https://socialtap.dev/v1/monitors/<id>' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
200 example
JSON
{
  "data": {
    "deleted": true,
    "id": "string",
    "object": "string"
  },
  "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_…).

Response

application/json

200

Delete a monitor

dataobject
ShowHide 3 child fields
deletedboolean

Always true.

idstring
objectstring

The deleted object's type (webhook_endpoint, monitor).

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.

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

Last updated