Get OAuth2 Sessions Logout
GET
/appid-{appId}/recipe/oauth/sessions/logoutAuthorization
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.
Query parameters
clientIdstringidTokenHintstringpostLogoutRedirectUristringstatestringHeader parameters
cdi-versionstringX.Y of the X.Y.Z CDI version.
Responses
200OAuth2 Sessions Logout Result
One of:
object
statusstatusOKAllowed:
OKredirectTostringoauthError
statusstringrequiredAllowed:
OAUTH_ERRORerrorstringrequirederrorDescriptionstringrequiredstatusCodeintegerrequired400error code 400
string401error code 401
string402error code 402
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Request
curl -X GET "/appid-{appId}/recipe/oauth/sessions/logout" \
-H "api-key: YOUR_API_KEY"const response = await fetch("/appid-{appId}/recipe/oauth/sessions/logout", {
method: "GET",
headers: {
"api-key": "YOUR_API_KEY"
}
});import requests
response = requests.get(
"/appid-{appId}/recipe/oauth/sessions/logout",
headers={
"api-key": "YOUR_API_KEY"
},
)Response
{
"status": "OK",
"redirectTo": "{apiDomain}/oauth/logout?..."
}"string""Invalid API key""License Error""Not Found""Internal Error"