---
title: "Get the session document for the active user"
method: GET
path: "/mySession"
tags: ["Authentication"]
---

# Get the session document for the active user

`GET /mySession`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/mySession`
- Auth: none declared

Returns the session for the active user.

## Response `200`

The session document for the logged in user.

- AuthenticationGetMySessionResponse200
  - `id` string: The session token for the logged in user
  - `loginMethod` 'Web' | 'sudo': The way a user logged in
  - `session_start` integer: The Unix epoch time when the session started
  - `ttl` integer: The default ttl for a user session
  - `principalId` string: The accountId for the logged in user
  - `requestCount` integer: The number of API requests made during the active session

## Other responses

- `500`: Error response from API

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
