---
title: "Get current user"
method: GET
path: "/api/user"
tags: ["Private User"]
---

# Get current user

`GET /api/user`

Returns the authenticated user with their workspaces and subscriber hash.

## Response `200`

The authenticated user

- object
  - `user` PrivateUser — Authenticated user with their workspaces and subscriber hash.
    - `sId` string, required — Unique string identifier for the user
    - `id` integer, required — Numeric model identifier
    - `createdAt` integer, required — Unix timestamp of user creation
    - `provider` 'auth0' | 'github' | 'google' | 'okta' | 'samlp' | 'waad', nullable — Authentication provider
    - `username` string, required
    - `email` string, required
    - `firstName` string, required
    - `lastName` string, nullable
    - `fullName` string, required
    - `image` string, nullable — URL of the user's profile image
    - `lastLoginAt` integer, nullable
    - `workspaces` PrivateWorkspace[], required
      - `id` integer, required
      - `sId` string, required
      - `name` string, required
      - `role` 'admin' | 'builder' | 'user' | 'none', required
      - `segmentation` string, nullable
      - `whiteListedProviders` string[], nullable — Allowed model provider IDs
      - `defaultEmbeddingProvider` string, nullable
      - `ssoEnforced` boolean
      - `regionalModelsOnly` boolean, required — When true, only models whose regionalAvailability includes the workspace's region are usable.
      - `metadata` object, nullable
    - `selectedWorkspace` string — sId of the currently selected workspace
    - `origin` string — How the user joined (e.g. invitation, provisioned)
    - `subscriberHash` string, nullable — Hash used for Intercom identity verification

## Other responses

- `404` — User not found

---

[API](https://skmtc.net/dust-tt/apis/dust-api-documentation.md) · [All operations](https://skmtc.net/dust-tt/apis/dust-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dust-tt/dust-api-documentation/revisions/5fb378acc79f/schema)
