account

Get user session information

Changed on
post/v1/account.getSession

Request

  • Base URL: https://api.steamsets.com
  • URL: https://api.steamsets.com/v1/account.getSession
  • Auth: HTTP bearer

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",
    "location": {
      "city": "Berlin",
      "countryCode": "DE",
      "countryName": "Germany",
      "region": "Berlin"
    },
    "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
}

Changes

    • info

      added the optional property / to the response with the status

    • warning

      added the new name_effect enum value to the // response property for the response status

    • warning

      added the new profile_theme_color enum value to the // response property for the response status