# Get-IntelligenceXAccount

Returns the current account details. Review available syntax, parameters, pipeline guidance, and reference details in IntelligenceX PowerShell Cmdlet Reference.

Command 

**Module**

`IntelligenceX.PowerShell`

**Inputs**

`IntelligenceX.OpenAI.IntelligenceXClient`

**Outputs**

`IntelligenceX.Json.JsonValue` `IntelligenceX.OpenAI.AppServer.Models.AccountInfo`

Returns the current account details.

## Syntax

```
Get-IntelligenceXAccount
[-Client <IntelligenceXClient>]
[-Raw]
[<CommonParameters>]
```

[#](#method-get-intelligencexaccount-intelligencexclient-switchparameter)

## Examples

### Example 1

```powershell
Get-IntelligenceXAccount
```

Get account info

### Example 2

```powershell
Get-IntelligenceXAccount -Raw
```

Get raw JSON account payload

### Example 3

```powershell
$login = Start-IntelligenceXChatGptLogin; Wait-IntelligenceXLogin -LoginId $login.LoginId; Get-IntelligenceXAccount
```

Verify account after login in a script

## Parameters

**-Client IntelligenceXClient optionalpipeline: true (ByValue)**

Client instance to use. Defaults to the active client.

**-Raw SwitchParameter optional**

Returns the raw JSON-RPC payload instead of typed account info.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:6B27B7ADAF8286B7E4DB6CDCA5E5ABF4076966AB7625BCE82D3ACBA279AF0DA9 -->
