nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Uptime

Delete an uptime monitor

deletehttps://api.nsin.ir/uptime/monitors/{id}

Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.

Requires domain.settings. The monitor's open incident is resolved without a recovery notification; its resolved incident history is kept, because it is the record behind alerts you may still be reading.

Path parameters

  • idintegerrequiredpath

Query parameters

  • domainstringrequiredquery

    The domain name (for example example.com). These endpoints take the domain as a query parameter rather than a path segment.

Responses

200Deleted.

Content type: application/json

  • deletedboolean
json
{
  "deleted": true
}
400Invalid monitor id.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "read-only API key"
}
401Missing, malformed, revoked or expired API key. (A valid key whose account has been deactivated gets 403 account is inactive instead.)

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "invalid API key"
}
403The key is read-only, your role on the domain lacks the required permission, or the domain's plan does not include the feature.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "read-only API key"
}
404No such monitor on this domain. A monitor id belonging to another domain is reported the same way, so an id can never be used to probe another tenant.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "monitor not found"
}
429The key exceeded its request budget (300 requests per minute by default).

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "rate limit exceeded"
}

Example request

bash
curl -X DELETE "https://api.nsin.ir/uptime/monitors/0?domain=example.com" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc