Revoke an active Access Token, effectively logging a user out that has been previously authenticated.
"ly1nj6n11vionaie65emwzk575hnnmrk"
The Client ID of the application requesting to revoke the access token.
"hOzsTeFlT6ko0dme22uGbQal04SBPYc1"
The client secret of the application requesting to revoke an access token.
"n22JPxrh18m4Y0wIZPIqYZK7VRrsMTWW"
The access token to revoke.
Returns an empty response when the token was successfully revoked.
An authentication error.
An authentication error.
curl -i -X POST "https://api.box.com/oauth2/revoke" \
-H "content-type: application/x-www-form-urlencoded" \
-d "client_id=[CLIENT_ID]" \
-d "client_secret=[CLIENT_SECRET]" \
-d "token=[ACCESS_TOKEN]"
await auth.revokeTokens();
// client's tokens have been revoked
client.auth.revoke_token()
await auth.RevokeTokenAsync();
oauth.revoke()
client.revokeTokens("<TOKEN>")
.then(() => {
// the client's access token have been revoked
});