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

# Get All Assistant Conversations

Retrieves a paginated list of conversations for a specific assistant using the Rapida API.

> [!NOTE]
>
> For more authentication options, see: [https://doc.rapida.ai/api-reference/authentication](https://doc.rapida.ai/api-reference/authentication.md)

### Parameters

**connectionConfig** `ConnectionConfig` *required*

Configuration for the client connection.

**request** `GetAllAssistantConversationRequest` *required*

**assistantId** `uint64` *required*

The unique identifier of the assistant whose conversations to retrieve.

**paginate** `Paginate`

Pagination configuration for the results.

**page** `uint32`

Page number (0-based indexing).

**pageSize** `uint32`

Number of items per page.

**criterias** `Criteria[]`

Array of filtering criteria to apply to the search.

**key** `string`

The field key to filter on.

**value** `string`

The value to match against.

**logic** `string`

Logic operator: "should" or "must".

**source** `Source`

Source filter for conversations.

### Usages

```python Python theme={null}
from rapida import (
    ConnectionConfig,
    GetAllAssistantConversationRequest,
    get_all_assistant_conversation,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
    ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_all_assistant_conversation(
    client_cfg=connection_config,
    request=GetAllAssistantConversationRequest(
        assistantId="{assistant_id}",
        paginate=Paginate(page=0, pageSize=20),
        # criterias=[Criteria(key="KEY", value="VALUE", logic="should")],
    ),
)
pprint(response)
```

```go GO theme={null}
import (
	"context"
	"fmt"
	"os"

	clients "github.com/rapidaai/rapida-go/rapida/clients"
	rapida_proto "github.com/rapidaai/rapida-go/rapida/clients/protos"
	connections "github.com/rapidaai/rapida-go/rapida/connections"
)

func main() {
	// Configure client connection using RAPIDA_PROJECT_CREDENTIAL environment variable
	connectionConfig := connections.
		DefaultconnectionConfig(connections.WithSDK(os.Getenv("RAPIDA_PROJECT_CREDENTIAL")))

	// Retrieve all conversations for an assistant
	response, err := clients.GetAllAssistantConversation(context.Background(), connectionConfig, &rapida_proto.GetAllAssistantConversationRequest{
		AssistantId: 3456789876541212,
		Paginate: &rapida_proto.Paginate{
			Page:     0,
			PageSize: 20,
		},
		// Optional: Apply filtering criteria
		// Criterias: []*rapida_proto.Criteria{{
		// 	Key:   "status",
		// 	Value: "active",
		// 	Logic: "must",
		// }},
	})

	if err != nil {
		fmt.Printf("Error while making call using rapida: %+v\n", err)
		return
	}

	// Print the response
	fmt.Printf("Rapida calling response: %+v\n", response)
}
```

```typescript NodeJs theme={null}

import {
  ConnectionConfig,
  Paginate,
  GetAllAssistantConversation,
  GetAllAssistantConversationRequest,
} from "@rapidaai/nodejs";

(async () => {
  const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
    ConnectionConfig.WithSDK({
      ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
    })
  );
  getAllAssistantConversation(connectionCfg, 56789678987890121, 0, 20);
})();

async function getAllAssistantConversation(
  connectionCfg,
  assistantId,
  page = 0,
  pageSize = 20
) {
  const pagination = new Paginate();
  pagination.setPage(page);
  pagination.setPageSize(pageSize);

  const request = new GetAllAssistantConversationRequest();
  request.setAssistantId(assistantId);
  request.setPaginate(pagination);

  try {
    const response = await GetAllAssistantConversation(
      connectionCfg,
      request
    );
    console.log("All Assistant Conversations Response:", response.toObject());
  } catch (error) {
    console.error("Error with GetAllAssistantConversation call:", error);
  }
}
```

### Response

**code** `int32`

Numeric status code for the operation.

**success** `boolean`

Indicates whether the operation was successful.

**data** `AssistantConversation[]`

Array of assistant conversations.

**id** `uint64`

Unique identifier for the conversation.

**userId** `uint64`

Identifier of the user participating in the conversation.

**assistantId** `uint64`

Identifier of the assistant in the conversation.

**name** `string`

Name or title of the conversation.

**projectId** `uint64`

Associated project identifier.

**organizationId** `uint64`

Associated organization identifier.

**source** `string`

Source platform or origin of the conversation.

**identifier** `string`

External identifier for the conversation.

**status** `string`

Current status of the conversation.

**direction** `string`

Direction of the conversation flow.

**user** `User`

User information for the conversation participant.

**assistantProviderModelId** `uint64`

Identifier for the assistant provider model used.

**assistantConversationMessage** `AssistantConversationMessage[]`

Array of messages within the conversation.

**id** `uint64`

Unique identifier for the message.

**messageId** `string`

External message identifier.

**assistantConversationId** `uint64`

Parent conversation identifier.

**assistantId** `uint64`

Associated assistant identifier.

**assistantProviderModelId** `uint64`

Model identifier used for this message.

**request** `Message`

User's request message.

**response** `Message`

Assistant's response message.

**source** `string`

Source platform of the message.

**status** `string`

Status of the message.

**suggestedQuestions** `string[]`

Array of suggested follow-up questions.

**stages** `AssistantMessageStage[]`

Processing stages for the message.

**metrics** `Metric[]`

Performance metrics for the message.

**metadata** `Metadata[]`

Additional metadata for the message.

**createdBy** `uint64`

Identifier of the message creator.

**updatedBy** `uint64`

Identifier of the last updater.

**createdDate** `timestamp`

Timestamp when the message was created.

**updatedDate** `timestamp`

Timestamp when the message was last updated.

**contexts** `AssistantConversationContext[]`

Array of conversation contexts.

**metrics** `Metric[]`

Performance metrics for the conversation.

**metadata** `Metadata[]`

Additional metadata for the conversation.

**arguments** `Argument[]`

Arguments passed to the conversation.

**options** `Metadata[]`

Configuration options for the conversation.

**recordings** `AssistantConversationRecording[]`

Array of conversation recordings.

**assistantRecordingUrl** `string`

Pre-signed URL to access the assistant audio recording.

**userRecordingUrl** `string`

Pre-signed URL to access the user audio recording.

**createdBy** `uint64`

Identifier of the conversation creator.

**updatedBy** `uint64`

Identifier of the last updater.

**createdDate** `timestamp`

Timestamp when the conversation was created.

**updatedDate** `timestamp`

Timestamp when the conversation was last updated.

**paginated** `Paginated`

Pagination information for the response.

**page** `uint32`

Current page number.

**pageSize** `uint32`

Number of items per page.

**totalPages** `uint32`

Total number of pages available.

**totalItems** `uint64`

Total number of items across all pages.

**error** `object`

Error information, if applicable.

**errorCode** `uint64`

Numeric error code.

**errorMessage** `string`

Technical error message.

**humanMessage** `string`

Human-readable error message.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.