Disconnect an app
DELETE
/oauth/grants/{client_id}
const url = 'https://api.nsin.ir/oauth/grants/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” client_id
required
string
Responses
Section titled “ Responses ”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"}