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

Remove the NsinNabz analytics tag

deletehttps://api.nsin.ir/domains/{domain}/analytics-tag

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

Removes the tag; the edge stops inserting it with the next records sync. Answers 204 whether or not there was a tag. NsinNabz calls this when its edge install is switched off or the site leaves the account. Deleting the domain removes its tag too, and restoring the domain does not bring it back. Requires domain.settings.

Path parameters

  • domainstringrequiredpath

    The domain name (for example example.com) — not a numeric id.

Responses

204Removed
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 domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "read-only API key"
}
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/domains/example.com/analytics-tag" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc