---
title: "Get user session information"
method: POST
path: "/v1/account.getSession"
tags: ["account"]
---

# Get user session information

`POST /v1/account.getSession`

## Response `200`

OK

- V1AccountGetSessionBody
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `accountId` integer, required — The account id
  - `avatar` string, required — The avatar of the account
  - `email` string, nullable — The email of the account
  - `isNew` boolean, required — Whether the account is new
  - `level` integer, required — The level of the account
  - `name` string, required — The name of the account
  - `resources` Resource[], nullable, required — The resources the account has (permissions)
    - `resource` 'go_to_leaderboard_entry' | 'max_leaderboard_entries' | 'account_refresh_rate' | 'inventory_refresh_rate' | 'social_links' | 'vanity' | 'account_queues' | 'short_link_domain' | 'max_find_owners' | 'max_badge_crafters' | 'search_result_limit' | 'max_compare_accounts' | 'max_saved_searches' | 'profile_theme_color' | 'name_effect', required
    - `value` string, required — The value of the resource, this can be a string, number, boolean or even a cron expression
  - `roles` Role[], nullable, required — The roles the account has
    - `extras` object, nullable, required — Extra data associated with the role
    - `rating` integer, required — The higher the more presedence it has
    - `role` 'user' | 'donator' | 'staff' | 'developer' | 'partner' | 'owner' | 'amethyst' | 'amber' | 'emerald' | 'sapphire' | 'ruby' | 'diamond' | 'contributor' | 'early_supporter' | 'beta' | 'translator' | 'top_100' | 'badge_scout' | 'nitro_booster' | 'astral' | 'nebula', required
  - `sessionData` Session, required
    - `createdAt` string, date-time, required — The time the session was created
    - `expiresAt` string, date-time, required — The time the session expires
    - `ip` string, required — The ip of the session
    - `lastSeen` string, date-time, required — The time the session was last seen
    - `sessionId` string, required — The session id
    - `userAgent` string, required — The user agent of the session
  - `steamId` string, required — The steam id
  - `xp` integer, required — The XP of the account

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/steamsets/apis/steamsets-api.md) · [All operations](https://skmtc.net/steamsets/apis/steamsets-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/steamsets/steamsets-api/versions/2e8ba266b27f/schema)
