---
title: "Who am I?"
method: POST
path: "/public/v1/query/whoami"
tags: ["Sessions"]
---

# Who am I?

`POST /public/v1/query/whoami`

Get basic information about your current API or WebAuthN user and their organization. Affords sub-organization look ups via parent organization for WebAuthN or API key users.

## Request body

- V1GetWhoamiRequest
  - `organizationId` string, required — Unique identifier for a given organization. If the request is being made by a WebAuthN user and their sub-organization ID is unknown, this can be the parent organization ID; using the sub-organization ID when possible is preferred due to performance reasons.

## Response `200`

A successful response.

- V1GetWhoamiResponse
  - `organizationId` string, required — Unique identifier for a given organization.
  - `organizationName` string, required — Human-readable name for an organization.
  - `userId` string, required — Unique identifier for a given user.
  - `username` string, required — Human-readable name for a user.

## Other responses

- `default` — An unexpected error response.

---

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