v4

latestOpenAPI 3.1.02026-07-3196251302.5 KB
account

Get user session information

post/v1/account.getSession

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

accountIdinteger required

The account id

avatarstring required

The avatar of the account

emailstring nullable

The email of the account

isNewboolean required

Whether the account is new

levelinteger required

The level of the account

namestring required

The name of the account

steamIdstring required

The steam id

xpinteger required

The XP of the account

Example response

{
  "$schema": "https://api.steamsets.com/schemas/V1AccountGetSessionBody.json",
  "accountId": 123456,
  "avatar": "f1a1d2c3d0c9d1e1f2f3f4f5f6f7f8f9.jpg",
  "email": "flo@example.com",
  "isNew": true,
  "level": 1,
  "name": "flo",
  "resources": [
    {
      "value": "1"
    }
  ],
  "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
}