---
title: "GET /api/v1/auth/sessions/current"
method: GET
path: "/api/v1/auth/sessions/current"
tags: ["AuthService"]
---

# GET /api/v1/auth/sessions/current

`GET /api/v1/auth/sessions/current`

GetCurrentSession returns the current active session information.
 This method is idempotent and safe, suitable for checking current session state.

## Response `200`

OK

- GetCurrentSessionResponse
  - `user` User
    - `name` string — The resource name of the user. Format: users/{user}
    - `role` 'ROLE_UNSPECIFIED' | 'HOST' | 'ADMIN' | 'USER', enum, required — The role of the user.
    - `username` string, required — Required. The unique username for login.
    - `email` string — Optional. The email address of the user.
    - `displayName` string — Optional. The display name of the user.
    - `avatarUrl` string — Optional. The avatar URL of the user.
    - `description` string — Optional. The description of the user.
    - `password` string — Input only. The password for the user.
    - `state` 'STATE_UNSPECIFIED' | 'NORMAL' | 'ARCHIVED', enum, required — The state of the user.
    - `createTime` string, date-time — Output only. The creation timestamp.
    - `updateTime` string, date-time — Output only. The last update timestamp.
  - `lastAccessedAt` string, date-time — Last time the session was accessed. Used for sliding expiration calculation (last_accessed_time + 2 weeks).

## Other responses

- `default` — Default error response

## Changes

- **2025-12-15** `d740073f088f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usememos/apis/untitled-api/changes/api/v1/auth/sessions/current/get.md)

---

[API](https://skmtc.dev/usememos/apis/untitled-api.md) · [All operations](https://skmtc.dev/usememos/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usememos/untitled-api/revisions/d740073f088f/schema)
