A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
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 revokedclient.auth.revoke_token()await auth.RevokeTokenAsync();try await auth.revokeToken()auth.revokeToken();
// client's tokens have been revokedoauth.revoke()client.revokeTokens("<TOKEN>")
.then(() => {
// the client's access token have been revoked
});