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 -X DELETE 'https://socialtap.dev/v1/monitors/<id>' \
-H "x-api-key: $SOCIALTAP_API_KEY"200 example
{
"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.
Monitor ID (mon_…).
Response
200
Delete a monitor
dataobjectShowHide 3 child fields
deletedbooleanAlways true.
idstringobjectstringThe deleted object's type (webhook_endpoint, monitor).
metaobjectThe shared route meta (see the API reference introduction).
400
400 Bad Request.
invalid_inputNo retryA 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 retryThe 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 retryThe 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.
monitor_not_foundNo retryThe 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, laterThe 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