Get session data
GET
/appid-{appId}/recipe/session/datadeprecatedAuthorization
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
sessionHandlehandleUsers session handle
Header parameters
ridstringcdi-versionstringX.Y of the X.Y.Z CDI version.
Responses
200Get Session Data
One of:
object
statusstatusOKAllowed:
OKuserDataInDatabaseuserDataInDatabaseshould be a JSON object (not a JSON literal nor an array)
unauthorisedMessageResponse
statusunauthorisedResponseAllowed:
UNAUTHORISEDmessagemessage400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Request
curl -X GET "/appid-{appId}/recipe/session/data" \
-H "api-key: YOUR_API_KEY"const response = await fetch("/appid-{appId}/recipe/session/data", {
method: "GET",
headers: {
"api-key": "YOUR_API_KEY"
}
});import requests
response = requests.get(
"/appid-{appId}/recipe/session/data",
headers={
"api-key": "YOUR_API_KEY"
},
)Response
{
"status": "OK",
"userDataInDatabase": {
"test": 123
}
}"string""Invalid API key""Not Found""Internal Error"