---
title: "Returns information about the currently logged in user."
method: GET
path: "/api/auth/whoami"
tags: ["Authentication"]
---

# Returns information about the currently logged in user.

`GET /api/auth/whoami`

## Request

- Base URL: `https://passivelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://passivelogic.com/api/auth/whoami`
- Auth: one of:
  - API key in header `X-PL-AUTH`
  - API key in header `Authorization: PL-API-KEY`
  - API key in header `PL-API-KEY`
  - HTTP basic
- TypeScript: <https://skmtc.dev/passivelogic/apis/passivelogic-http-api/docs/api/auth/whoami/get.ts> (a function with typed inputs; its response is checked against the schema)

Useful to check if a user is authenticated.

## Response `200`

OK

- WhoAmIResponse: Information about the authenticated user
  - `userID` string, uuid, required: Unique ID for the user
  - `eulaAccepted` boolean, nullable: Flag to mark if the user has acept the terms of the EULA
  - `emailVerified` boolean, nullable: Flag to mark if the user's email is verified
  - `firstName` string, nullable: User's first name
  - `lastName` string, nullable: User's last name

---

[API](https://skmtc.dev/passivelogic/apis/passivelogic-http-api.md) - [All operations](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/revisions/28fce63bcdbb?raw)
