Skip to main content
POST
/
v1
/
account.getSession
Get user session information
curl --request POST \
  --url https://api.steamsets.com/v1/account.getSession \
  --header 'Authorization: Bearer <token>'
{
  "accountId": 1,
  "avatar": "<string>",
  "isNew": true,
  "level": 1,
  "name": "<string>",
  "resources": [
    {
      "resource": "animated_avatar",
      "value": "<string>"
    }
  ],
  "roles": [
    {
      "extras": {},
      "rating": 123,
      "role": "user"
    }
  ],
  "sessionData": {
    "createdAt": "2023-11-07T05:31:56Z",
    "expiresAt": "2023-11-07T05:31:56Z",
    "ip": "<string>",
    "lastSeen": "2023-11-07T05:31:56Z",
    "sessionId": "<string>",
    "userAgent": "<string>"
  },
  "steamId": "<string>",
  "xp": 1,
  "$schema": "<string>",
  "email": "<string>"
}
This endpoint is not intended for public use and requires user authentication

Authentication Required

This endpoint requires an active user session and cannot be accessed via API keys. It’s designed for authenticated user interactions within the web application.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

OK

accountId
integer<int32>
required

The account id

Required range: x >= 0
avatar
string
required

The avatar of the account

isNew
boolean
required

Whether the account is new

level
integer<int32>
required

The level of the account

Required range: x >= 0
name
string
required

The name of the account

resources
object[] | null
required

The resources the account has (permissions)

roles
object[] | null
required

The roles the account has

sessionData
object
required

The session data

steamId
string
required

The steam id

xp
integer<int32>
required

The XP of the account

Required range: x >= 0
$schema
string<uri>

A URL to the JSON Schema for this object.

email
string | null

The email of the account