Get Token Information¶
Get information about the currently logged-in user according to the Access Token.
Request Format¶
GET https://{apigw-address}/app-portal-service/v2.1/session/info
Request Parameters (Header)¶
Name |
Required or Not |
Data Type |
Description |
---|---|---|---|
Authorization |
true |
String |
Access Token, represented as Bearer Token. Refer to Log In or Refresh Access Token to learn how to get Access Token. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
data struct |
null |
data Struct¶
Name |
Data Type |
Description |
---|---|---|
userId |
String |
User ID |
userName |
String |
User name |
currentOrgId |
String |
Current organization ID |
currentOrgName |
String |
Current organization name |
Sample¶
Request Sample¶
GET
https://{apigw-address}/app-portal-service/v2.1/session/info
headers: {"Authorization":"Bearer APP_PORTAL_S_TDKKeqfYBK3m5z3LRgKVqThWDYnRBN44"}
Return Sample¶
{
"code": 200,
"message": "",
"data": {
"userId": "yourUserId",
"userName": "portal_demo",
"currentOrgId": "yourOrgId",
"currentOrgName": "Portal Demo"
}
}