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>'
{
  "$schema": "https://api.steamsets.com/schemas/V1AccountGetSessionBody.json",
  "accountId": 123456,
  "avatar": "f1a1d2c3d0c9d1e1f2f3f4f5f6f7f8f9.jpg",
  "email": "flo@example.com",
  "isNew": true,
  "level": 1,
  "name": "flo",
  "resources": [
    {
      "resource": "animated_avatar",
      "value": "1"
    }
  ],
  "roles": [
    {
      "extras": {},
      "rating": 123,
      "role": "user"
    }
  ],
  "sessionData": {
    "createdAt": "2023-01-01T00:00:00Z",
    "expiresAt": "2023-01-01T00:00:00Z",
    "ip": "127.0.0.1",
    "lastSeen": "2023-01-01T00:00:00Z",
    "sessionId": "123456",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
  },
  "steamId": "76561198842603734",
  "xp": 10000
}
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
required

The account id

Required range: x >= 0
Examples:

123456

avatar
string
required

The avatar of the account

Examples:

"f1a1d2c3d0c9d1e1f2f3f4f5f6f7f8f9.jpg"

isNew
boolean
required

Whether the account is new

Examples:

true

level
integer
required

The level of the account

Required range: x >= 0
Examples:

1

name
string
required

The name of the account

Examples:

"flo"

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

Examples:

"76561198842603734"

xp
integer
required

The XP of the account

Required range: x >= 0
Examples:

10000

$schema
string<uri>

A URL to the JSON Schema for this object.

Examples:

"https://api.steamsets.com/schemas/V1AccountGetSessionBody.json"

email
string | null

The email of the account

Examples:

"flo@example.com"