Revoke OAuth2 Session
POST
/appid-{appId}/recipe/oauth/session/revokeAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
cdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonsessionHandlestringResponses
200OAuth2 Session Revocation Result
One of:
object
statusstatusOKAllowed:
OKdidExistbooleanoauthError
statusstringrequiredAllowed:
OAUTH_ERRORerrorstringrequirederrorDescriptionstringrequiredstatusCodeintegerrequired400error code 400
string401error code 401
string402error code 402
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/appid-{appId}/recipe/oauth/session/revoke" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessionHandle": "string"
}'const response = await fetch("/appid-{appId}/recipe/oauth/session/revoke", {
method: "POST",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"sessionHandle": "string"
})
});import requests
response = requests.post(
"/appid-{appId}/recipe/oauth/session/revoke",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"sessionHandle": "string"
},
)Response
{
"status": "OK",
"didExist": true
}"string""Invalid API key""License Error""Not Found""Internal Error"