Skip to content
nsin docs

Remove the NsinNabz analytics tag

DELETE
/domains/{domain}/analytics-tag
curl --request DELETE \
--url https://api.nsin.ir/domains/example.com/analytics-tag \
--header 'Authorization: Bearer <token>'

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.

domain
required
string

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

Example
example.com

Removed

Missing, malformed, revoked or expired API key. (A valid key whose account has been deactivated gets 403 account is inactive instead.)

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example invalidKey
{
"error": "invalid API key"
}

The key is read-only, your role on the domain lacks the required permission, or the domain’s plan does not include the feature.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

The key exceeded its request budget (300 requests per minute by default).

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example limited
{
"error": "rate limit exceeded"
}