---
title: "Get account"
method: GET
path: "/api/v1/user/account"
tags: ["My Account"]
---

# Get account

`GET /api/v1/user/account`

Get account information

## Response `200`

Success

- ApiGetAccountResponse
  - `results` SerializedAccount, required — From T, pick a set of properties whose keys are in the union K
    - `organization` PartialPickOrganizationNameOrOrganizationUuidOrCreatedAt, required — Make all properties in T optional
      - `name` string — The name of the organization
      - `organizationUuid` string, uuid — The unique identifier of the organization
      - `createdAt` string, date-time
    - `authentication` union, required
      - SessionAuth
        - `source` string, required
        - `type` 'session', required
      - JwtAuth
        - `source` string, required
        - `data` CreateEmbedJwt, required
          - `exp` number, double
          - `iat` number, double
          - `expiresIn` string
          - `user` object
            - `externalId` string
            - `email` string
          - `userAttributes` object
          - `writeActions` EmbedWriteActions
            - `spaceUuid` string, required
            - `userUuid` string
            - `serviceAccountUserUuid` string
          - `content` union, required
            - EmbedJwtContentDashboardUuid
              - …
            - EmbedJwtContentDashboardSlug
              - …
            - EmbedJwtContentChart
              - …
            - EmbedJwtContentDataApp
              - …
            - EmbedJwtContentAiAgent
              - …
            - EmbedJwtContentMetricsCatalog
              - …
            - EmbedJwtContentApiAccess
              - …
        - `type` 'jwt', required
      - ServiceAccountAuth
        - `serviceAccountDescription` string, required
        - `serviceAccountUuid` string, required
        - `source` string, required
        - `type` 'service-account', required
      - PersonalAccessTokenAuth
        - `source` string, required
        - `type` 'pat', required
      - OauthAuth
        - `resource` string — The **`URL`** interface is used to parse, construct, normalize, and encode URL. [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL) `URL` class is a global reference for `import { URL } from 'url'` https://nodejs.org/api/url.html#the-whatwg-url-api
        - `expiresAt` number, double
        - `scopes` string[], required
        - `clientId` string, required
        - `token` string, required
        - `source` string, required
        - `type` 'oauth', required
    - `requestContext` AccountRequestContext — Per-request metadata captured by the auth middleware. Used by the audit log to record the IP, user agent and request id alongside permission checks.
      - `requestId` string
      - `userAgent` string
      - `ip` string
    - `user` OmitAccountAtUserAbilityOrAbilityRules, required — From T, pick a set of properties whose keys are in the union K
      - `id` string, required
      - `type` 'registered' | 'anonymous', required
      - `email` string
      - `isActive` boolean, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.net/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/versions/40c933755c9a/schema)
