# Get-IntelligenceXThread

Lists available threads. 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.ThreadListResult`

Lists available threads.

## Syntax

```
Get-IntelligenceXThread
[-Client <IntelligenceXClient>]
[-Cursor <string>]
[-Limit <int>]
[-ModelProvider <string[]>]
[-Raw]
[-SortKey <string>]
[<CommonParameters>]
```

[#](#method-get-intelligencexthread-intelligencexclient-string-int-string-switchparameter-string)

## Examples

### Example 1

```powershell
Get-IntelligenceXThread -Limit 20 -SortKey updated_at
```

List recent threads

### Example 2

```powershell
Get-IntelligenceXThread -Cursor $result.cursor -Limit 20
```

Continue a previous page

### Example 3

```powershell
Get-IntelligenceXThread -ModelProvider "openai","anthropic"
```

Filter by model provider

## Parameters

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

Client instance to use. Defaults to the active client.

**-Cursor string optional**

Cursor from a previous list response.

**-Limit int optional**

Maximum number of threads to return.

**-ModelProvider string[] optional**

Filter by model providers.

**-Raw SwitchParameter optional**

Return raw JSON response.

**-SortKey string optional**

Sort key (created_at or updated_at).

## 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:7357449B0E97B2CDC50F8F15430A9A8BED828D6449234E005A3C3F426D814D1C -->
