---
title: "The current user, or null"
method: GET
path: "/v1/auth/session"
tags: ["Auth"]
---

# The current user, or null

`GET /v1/auth/session`

## Request

- Base URL: `https://api.stackdata.io`
- URL: `https://api.stackdata.io/v1/auth/session`
- Auth: one of:
  - none
  - API key in header `X-API-Key`

## Response `200`

Whoami.

- object
  - `user` User: The signed-in user. Never includes the password hash or raw session.
    - `id` string
    - `nickname` string
    - `email` string: May be null for an OAuth-only account.
    - `email_verified` boolean
    - `avatar_seed` string: Seed for GET /v1/avatar/{seed}.
    - `has_password` boolean
    - `tier` string
    - `default_visibility` 'public' | 'private'
    - `providers` string[]: Linked OAuth providers.
    - `created_at` string

---

[API](https://skmtc.dev/stackdata/apis/stackdata-api.md) · [All operations](https://skmtc.dev/stackdata/apis/stackdata-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stackdata/apis/stackdata-api/revisions/91358ae3f6e8?raw)
