curl --location --request GET 'https://api.synap.ac/v3/session-context'
{
"data": {
"id": "FID001",
"type": "SessionContext",
"attributes": {
"locale": "string",
"caslPolicies": [
[
{
"group": "string",
"subject": "string",
"actions": "create",
"conditions": {}
}
]
],
"isPortalOwner": true,
"intercomHash": "string",
"apiHostname": "string",
"region": "eu-west-1",
"regionalApiUrl": "https://use1.prod.api.synap.ac"
},
"relationships": {
"user": {
"data": {
"id": "FID001",
"type": "User"
}
},
"userType": {
"data": {
"id": "FID001",
"type": "UserType"
}
},
"studyType": {
"data": {
"id": "FID001",
"type": "UserType"
}
},
"pinnedNotes": {
"data": [
{
"id": "FID001",
"type": "Note"
}
]
},
"subPortal": {
"data": {
"id": "FID001",
"type": "SubPortal"
}
}
}
},
"included": [
{
"id": "FID001",
"type": "_User",
"attributes": {},
"relationships": {
"property1": {
"data": {
"id": "FID001",
"type": "_User"
},
"links": {
"self": "string",
"related": "string"
},
"meta": {}
},
"property2": {
"data": {
"id": "FID001",
"type": "_User"
},
"links": {
"self": "string",
"related": "string"
},
"meta": {}
}
}
}
]
}