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

Dismiss a recommendation

posthttps://api.nsin.ir/recommendations/dismiss

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

Hides one checklist item for the calling user on this domain. Dismissals are per user, not per domain — they do not affect other members.

How long it stays hidden depends on the item's severity: a low item is hidden for good, a medium one for 7 days, and a high one cannot be hidden at all (409). Repeating the call on a medium item restarts its 7 days. Requires domain.view — dismissing only changes what you see.

Query parameters

  • domainstringrequiredquery

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

Request body

Content type: application/json · required

  • keystringrequired

    The recommendation's key.

Responses

200Dismissed.

Content type: application/json

  • okboolean
    One of: true
json
{
  "ok": true
}
400Missing domain, or missing key in the body.

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 and this endpoint is a write. Read-only keys may only issue GET, HEAD and OPTIONS.

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"
}
409The item is a high-severity warning, which cannot be dismissed.

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 POST "https://api.nsin.ir/recommendations/dismiss?domain=example.com" \
  -H "Authorization: Bearer $NSIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "key": "string"
}'
esc