Account

Get account details

Changed on

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.

get/account/get-account-details

Request

  • Base URL
    https://api.smallest.ai/atoms/v1
  • URL
    https://api.smallest.ai/atoms/v1/account/get-account-details
  • Auth
    HTTP bearer

Response

Account details retrieved successfully.

userIdstring

Unique user ID.

emailstring email
firstNamestring
lastNamestring
phonestring nullable
picturestring

URL of the user's avatar image.

hasOnboardedboolean

Whether the user has completed initial onboarding.

Example response

{
  "userId": "69561896a37fd214b9a8d33a",
  "email": "user@example.com",
  "firstName": "Ada",
  "lastName": "Lovelace"
}

Changes