Delete many records at once
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
Deletes many records in one request, at most 1000 per call.
Best-effort per record — see batch-update; records NSIN manages are
refused per item. Requires records.edit.
Path parameters
- domainstringrequiredpath
The domain name (for example
example.com) — not a numeric id.
Request body
Content type: application/json · required
- idsarray of integerrequired
Responses
200Per-record outcome.
Content type: application/json
- succeededinteger
- failedinteger
- resultsarray of BatchItemResult
Item fields
- idinteger
- okboolean
- errorstring
Present only when
okis false.
{
"succeeded": 0,
"failed": 0,
"results": [
{
"id": 0,
"ok": true,
"error": "string"
}
]
}400Malformed body, an empty ids, or more than 1000 records.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"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.
{
"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.
{
"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.
{
"error": "read-only API key"
}409The domain is disabled or banned.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"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.
{
"error": "rate limit exceeded"
}Example request
curl -X POST "https://api.nsin.ir/domains/example.com/records/batch-delete" \
-H "Authorization: Bearer $NSIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ids": [
0
]
}'