---
title: "Get account details"
method: GET
path: "/account/get-account-details"
tags: ["Account"]
---

# Get account details

`GET /account/get-account-details`

Returns the calling user's profile (email, name, avatar) along with every organization
the user belongs to. Use this to resolve the user's active org list before switching
context, or to render user info in a management UI.

## Response `200`

Account details retrieved successfully.

- object
  - `userId` string — Unique user ID.
  - `email` string, email
  - `firstName` string
  - `lastName` string
  - `phone` string, nullable
  - `picture` string — URL of the user's avatar image.
  - `hasOnboarded` boolean — Whether the user has completed initial onboarding.
  - `organizations` object[] — Organizations the user is a member of. `roleId` is 0 for owner, 1 for member (and higher values for finer-grained roles).
    - `orgId` string
    - `name` string
    - `ownerEmail` string, email
    - `roleId` integer
    - `onPremEnabled` boolean

## Other responses

- `401` — Missing or invalid API key.

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/274a178284a4/schema)
