> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getmodus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# conversations

> Conversation threads for a single scope.

## Constructor

```typescript
conversations(http: HttpClient, config: ModusConfig, scopeId: string | number): ScopeConversationsResource
```

### Parameters

<ResponseField name={"http"} type={"HttpClient"} required />

<ResponseField name={"config"} type={"ModusConfig"} required />

<ResponseField name={"scopeId"} type={"string | number"} required />

### Returns

`ScopeConversationsResource`

## Methods

### get()

```typescript
get(threadId: string, options?: { messageLimit: number; beforeMessageIndex: number }): Promise<object>
```

Retrieve a thread with full message history.

#### Parameters

<ResponseField name={"threadId"} type={"string"} required>
  Conversation thread id.
</ResponseField>

<ResponseField name={"options"} type={"{ messageLimit: number; beforeMessageIndex: number }"} />

#### Returns

`Promise<object>`

Conversation with messages.

### list()

```typescript
list(options?: { pageSize: number; pageToken: string }): Promise<Page<object>>
```

List conversation threads for this scope, newest first.

#### Parameters

<ResponseField name={"options"} type={"{ pageSize: number; pageToken: string }"} />

#### Returns

`Promise<Page<object>>`

Page of conversation list items.
