---
title: "Get user info"
method: GET
path: "/whoami"
tags: ["Account"]
---

# Get user info

`GET /whoami`

Returns basic info about the current user.

## Response `200`

Info about the current user.

- User — Info about the user.
  - `name` string, required — Name of the user.
  - `loginId` string, required — Email address of the user.
  - `type` 'user', required — The type of this resource.
  - `pictureLink` string, url — Browser-friendly link to the user's avatar image.
  - `scoped` boolean, required — True if the token used to make this request has restricted/scoped access to the API.
  - `tokenName` string, required — Returns the name of the token used for this request.
  - `href` string, url, required — API link to the user.
  - `workspace` WorkspaceReference, required — Reference to a Superhuman Docs workspace.
    - `id` string, required — ID of the Superhuman Docs workspace.
    - `type` 'workspace', required — The type of this resource.
    - `organizationId` string — ID of the organization bound to this workspace, if any.
    - `browserLink` string, url, required — Browser-friendly link to the Superhuman Docs workspace.
    - `name` string — Name of the workspace; included if the user has access to the workspace.

## Other responses

- `401` — The API token is invalid or has expired.
- `429` — The client has sent too many requests.

---

[API](https://skmtc.net/coda/apis/superhuman-docs-api.md) · [All operations](https://skmtc.net/coda/apis/superhuman-docs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coda/superhuman-docs-api/revisions/c65a8418f3c8/schema)
