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

Disconnect an app

deletehttps://api.nsin.ir/oauth/grants/{client_id}

Auth: panel session — see API keys.

Withdraws the user's approval of one application and revokes every refresh token it holds for them and every nsin_ API key it minted for them, so it is signed out rather than merely un-listed; an access token still in flight sees no domain at all. It can ask for consent again on the next sign-in.

Path parameters

  • client_idstringrequiredpath

Responses

200The application is disconnected.

Content type: application/json

  • okboolean
json
{
  "ok": true
}
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"
}

Example request

bash
curl -X DELETE "https://api.nsin.ir/oauth/grants/%7Bclient_id%7D" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc