Skip to content

Disconnect an app

DELETE
/oauth/grants/{client_id}
curl --request DELETE \
--url https://api.nsin.ir/oauth/grants/example \
--header 'Authorization: Bearer <token>'

Withdraws the user’s approval of one application and revokes every refresh token it holds for them, so it is signed out rather than merely un-listed. It can ask for consent again on the next sign-in.

client_id
required
string

The application is disconnected.

Media type application/json
object
ok
boolean
Example generated
{
"ok": true
}

Missing, malformed, revoked or expired API key — or the owning account is inactive.

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"
}