get https://api.nodecraft.studio/v1/ident/session
Get the current Player Session. This will also refresh the Player Access Token expiry date.
Responses
Get the current Player Session. This will also refresh the Player Access Token expiry date.
xxxxxxxxxx
GET /v1/ident/session HTTP/1.1
Accept: application/json
Host: api.nodecraft.studio
​
​
xxxxxxxxxx
18{
"code": "ident.session_success",
"message": "Successfully validated session from Player Access Token.",
"success": true,
"data": {
"token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"date_expires": "string",
"server_region_id": "string",
"player": {
"id": "00000000-0000-0000-0000-000000000000",
"username": "Slayer1337",
"ident": "76561198047699606",
"ident_type": "steam",
"image_avatar": "https://nodecraft.com/images/avatar.png"
}
},
"error": false
}