Verify dashboard user session
Verify a Dashboard user’s sessionId
POST
/appid-{appId}/recipe/dashboard/session/verifyAuthorization
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
ridstringcdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonsessionIdstringResponses
200Indicates success with the status property
One of:
object
statusstringAllowed:
OKemailstringobject
statusstringAllowed:
USER_SUSPENDED_ERRORmessagestringobject
statusstringAllowed:
INVAlID_SESSION_ERROR400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/appid-{appId}/recipe/dashboard/session/verify" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sessionId": "rf32f-f32342f-32f-323r2f3-23"
}'const response = await fetch("/appid-{appId}/recipe/dashboard/session/verify", {
method: "POST",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"sessionId": "rf32f-f32342f-32f-323r2f3-23"
})
});import requests
response = requests.post(
"/appid-{appId}/recipe/dashboard/session/verify",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"sessionId": "rf32f-f32342f-32f-323r2f3-23"
},
)Response
{
"status": "OK",
"email": "string"
}"string""Invalid API key""Not Found""Internal Error"