Revoke OAuth token
Revokes an access/refresh token - the client id and secret can also be provided in an authorization header using the Basic scheme
POST
/{apiBasePath}/oauth/revokePath parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
Request body
application/jsontokenstringrequiredclient_idstringclient_secretstringResponses
200Revoked the access/refresh token
One of:
object
statusstatusOKrequiredSuccess status indicator
Allowed:
OKgeneralErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
400OAuth2 specific error response
errorstringThe OAuth2 error code
error_descriptionstringHuman readable error description
404Resource not found error
string500Internal server error
stringTry it
Server
Parameters
Bodyapplication/json
Request
curl -X POST "/auth/oauth/revoke" \
-H "Content-Type: application/json" \
-d '{
"token": "string",
"client_id": "st-cl-test-client",
"client_secret": "superSecret"
}'const response = await fetch("/auth/oauth/revoke", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"token": "string",
"client_id": "st-cl-test-client",
"client_secret": "superSecret"
})
});import requests
response = requests.post(
"/auth/oauth/revoke",
headers={
"Content-Type": "application/json"
},
json={
"token": "string",
"client_id": "st-cl-test-client",
"client_secret": "superSecret"
},
)Response
{
"status": "OK"
}{
"error": "invalid_request",
"error_description": "Unsupported grant type: password"
}"Not Found""Internal Error"