---
title: "Whoami"
method: GET
path: "/api/auth/whoami"
tags: ["auth"]
---

# Whoami

`GET /api/auth/whoami`

## Request

- Base URL: `https://otakusolutions.com` (the document declares no server; this is the origin it was published from)
- URL: `https://otakusolutions.com/api/auth/whoami`
- Auth: none declared

세션 인트로스펙션 엔드포인트.

docs.otakusolutions.com 서버가 os_session 쿠키를 포워딩해서 호출.
request.state.user 는 SessionMiddleware 가 이미 채워 놓음.
본인 세션만 반환(쿠키 기반, 타인 조회 파라미터 없음).

반환:
    비로그인/만료: {"authenticated": false}
    로그인:        {"authenticated": true, "email": ..., "role": ..., "is_admin": ...}

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/otakusolutions/apis/otakusolutions-homepage.md) - [All operations](https://skmtc.dev/otakusolutions/apis/otakusolutions-homepage/llms.txt) - [OpenAPI document](https://skmtc.dev/otakusolutions/apis/otakusolutions-homepage/revisions/e5bf958d0a23?raw)
