> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# getAccount

# Package: accounts

# Namespace: AccountService

# Method link: https://dev.wix.com/docs/api-reference/account-level/accounts/get-account.md

## Permission Scopes:
Manage Team Members: SCOPE.IDENTITY.MANAGE-TEAM-MEMBERS

## Introduction

Retrieves an account.

---

## REST API

### Schema

```
 Method: getAccount
 Description: Retrieves an account.
 URL: https://www.wixapis.com/accounts/v1/accounts/{accountId}
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  accountId
 Method parameters: 
   param name: accountId | type:   none | required: true 
 Return type: AccountResponse
  - name: account | type: Account | description:   
     - name: accountId | type: string | description: Account GUID.  | validation: format GUID
     - name: slug | type: string | description: Slug used in the prefix of a free site's URL.  
     - name: accountName | type: string | description: Account name for display.  
     - name: status | type: AccountStatus | description: Account status.  
         - enum: ACTIVE, BLOCKED, DELETED
     - name: accountOwner | type: string | description: Account owner's user GUID.  
     - name: accountProperties | type: AccountProperties | description: Additional account properties.  
        - name: isTeam | type: boolean | description: Whether this account is a team account.  
        - name: accountImg | type: string | description: Account image for display. Relevant primarily for accounts with [custom branding](https://support.wix.com/en/article/wix-studio-setting-up-custom-branding).  
        - name: accountBanner | type: string | description: Account banner for display. Relevant primarily for accounts with [custom branding](https://support.wix.com/en/article/wix-studio-setting-up-custom-branding).  
        - name: accountLogo | type: string | description: Account logo, displayed on customer sites that inherit the custom branding.  
        - name: coBranding | type: CoBranding | description: Account [custom branding](https://support.wix.com/en/article/wix-studio-setting-up-custom-branding) status.  
             - enum:
             -     None: The account does not have custom branding.
             -     CoBranded: The account has custom branding.
             -     CoBranded_Customer_New: The account is a contributor of an account with custom branding and was created because of the contributor invite.
             -     CoBranded_Customer_Existing: The account is a contributor of an account with custom branding and existed before receiving the contributor invite.
        - name: websiteUrl | type: string | description: Account website URL. This URL is displayed on customer sites that inherit the custom branding.  
        - name: parentAccountId | type: string | description: GUID of parent account to this account, if relevant.  
        - name: dataLocality | type: boolean | description: Whether the account's data should be stored locally.  
        - name: accountType | type: string | description: The type of this account, as an open string drawn from the Wix user-type vocabulary (e.g. `Nautilus`, `Wixel`). Mirrors the user's user type; unset for regular Wix accounts. Once set, it can be updated but not cleared.  | validation: maxLength 100
     - name: dateCreated | type: string | description: Date and time the account was created.  | validation: format date-time
     - name: dateUpdated | type: string | description: Date and time the account was last updated.  | validation: format date-time


```

### Examples

### Get Account
```curl
curl -X GET \
'https://www.wixapis.com/accounts/v1/account' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
        "accountId": "7132aa87-7890-00ab-a375-e80d5484eac5"
    }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.userManagement.accounts.getAccount(accountId)
 Description: Retrieves an account.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  accountId
 Method parameters: 
   param name: accountId | type: string | description: Account GUID to retrieve. | required: true | validation: format GUID
 Return type: PROMISE<AccountResponse>
  - name: account | type: Account | description:   
     - name: accountId | type: string | description: Account GUID.  | validation: format GUID
     - name: slug | type: string | description: Slug used in the prefix of a free site's URL.  
     - name: accountName | type: string | description: Account name for display.  
     - name: status | type: AccountStatus | description: Account status.  
         - enum: ACTIVE, BLOCKED, DELETED
     - name: accountOwner | type: string | description: Account owner's user GUID.  
     - name: accountProperties | type: AccountProperties | description: Additional account properties.  
        - name: isTeam | type: boolean | description: Whether this account is a team account.  
        - name: accountImg | type: string | description: Account image for display. Relevant primarily for accounts with [custom branding](https://support.wix.com/en/article/wix-studio-setting-up-custom-branding).  
        - name: accountBanner | type: string | description: Account banner for display. Relevant primarily for accounts with [custom branding](https://support.wix.com/en/article/wix-studio-setting-up-custom-branding).  
        - name: accountLogo | type: string | description: Account logo, displayed on customer sites that inherit the custom branding.  
        - name: coBranding | type: CoBranding | description: Account [custom branding](https://support.wix.com/en/article/wix-studio-setting-up-custom-branding) status.  
             - enum:
             -     None: The account does not have custom branding.
             -     CoBranded: The account has custom branding.
             -     CoBranded_Customer_New: The account is a contributor of an account with custom branding and was created because of the contributor invite.
             -     CoBranded_Customer_Existing: The account is a contributor of an account with custom branding and existed before receiving the contributor invite.
        - name: websiteUrl | type: string | description: Account website URL. This URL is displayed on customer sites that inherit the custom branding.  
        - name: parentAccountId | type: string | description: GUID of parent account to this account, if relevant.  
        - name: dataLocality | type: boolean | description: Whether the account's data should be stored locally.  
        - name: accountType | type: string | description: The type of this account, as an open string drawn from the Wix user-type vocabulary (e.g. `Nautilus`, `Wixel`). Mirrors the user's user type; unset for regular Wix accounts. Once set, it can be updated but not cleared.  | validation: maxLength 100
     - name: dateCreated | type: Date | description: Date and time the account was created.  
     - name: dateUpdated | type: Date | description: Date and time the account was last updated.  


```

### Examples

### getAccount
```javascript
import { accounts } from '@wix/user-management';

async function getAccount(accountId) {
  const response = await accounts.getAccount(accountId);
};
```

### getAccount (with elevated permissions)
```javascript
import { accounts } from '@wix/user-management';
import { auth } from '@wix/essentials';

async function myGetAccountMethod(accountId) {
  const elevatedGetAccount = auth.elevate(accounts.getAccount);
  const response = await elevatedGetAccount(accountId);
}
```

### getAccount (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { accounts } from '@wix/user-management';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { accounts },
  // Include the auth strategy and host as relevant
});


async function getAccount(accountId) {
  const response = await myWixClient.accounts.getAccount(accountId);
};
```

---