---
title: "Get Current Public Auth Identity"
method: GET
path: "/v1/public/auth/whoami"
tags: ["Public Auth"]
---

# Get Current Public Auth Identity

`GET /v1/public/auth/whoami`

## Response `200`

OK

- PublicAuthWhoamiResponse
  - `data` PublicAuthWhoamiPayload, required
    - `user_id` string, required
    - `username` string, nullable
    - `email` string, nullable
    - `workspace_id` string, nullable
    - `workspace_code` string, nullable
    - `workspace_name` string, nullable
    - `auth_mode` string, required
    - `principal_key` string, required
    - `token_id` string, nullable
    - `token_name` string, nullable
    - `permission_level` string, nullable
    - `permissions` string[]
    - `scopes` string[]
    - `oauth_app_id` string, nullable
  - `message` string, required
  - `ctx_id` string, nullable

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/sankahq/apis/ninjaapi.md) · [All operations](https://skmtc.net/sankahq/apis/ninjaapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sankahq/ninjaapi/revisions/c273ff62266a/schema)
