> ## 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 Assistant Analysis

Retrieves detailed information about a specific assistant analysis 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** `GetAssistantAnalysisRequest` *required*

**id** `uint64` *required*

The unique identifier of the assistant analysis to retrieve.

**assistantId** `uint64` *required*

The unique identifier of the assistant associated with the analysis.

### Usage

```python Python theme={null}
from rapida import (
    ConnectionConfig,
    GetAssistantAnalysisRequest,
    get_assistant_analysis,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
    ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_assistant_analysis(
    client_cfg=connection_config,
    request=GetAssistantAnalysisRequest(
        id="{assistant_analysis_id}", assistantId="{assistant_id}"
    ),
)
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 assistant analysis information
	response, err := clients.GetAssistantAnalysis(context.Background(), connectionConfig, &rapida_proto.GetAssistantAnalysisRequest{
		AssistantId: 3456789876541212,
		Id:          567898765456788765,
	})

	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,
  GetAssistantAnalysis,
  GetAssistantAnalysisRequest,
} from "@rapidaai/nodejs";

(async () => {
  const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
    ConnectionConfig.WithSDK({
      ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
    })
  );
  getAssistantAnalysis(connectionCfg, 3456789876541212, 567898765456788765);
})();

async function getAssistantAnalysis(connectionCfg, assistantId, analysisId) {
  const request = new GetAssistantAnalysisRequest();
  request.setAssistantId(assistantId);
  request.setId(analysisId);

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

### Response

**code** `int32`

Numeric status code for the operation.

**success** `boolean`

Indicates whether the operation was successful.

**data** `AssistantAnalysis`

Detailed information about the assistant analysis.

**id** `uint64`

Unique identifier for the assistant analysis.

**name** `string`

Name of the assistant analysis.

**description** `string`

Description of the assistant analysis purpose.

**endpointId** `uint64`

Identifier of the associated endpoint.

**endpointVersion** `string`

Version of the endpoint being used.

**endpointParameters** `map[string]string`

Key-value pairs of parameters for the endpoint.

**assistantId** `uint64`

Identifier of the associated assistant.

**status** `string`

Current status of the assistant analysis.

**createdBy** `uint64`

Identifier of the analysis creator.

**createdUser** `User`

User object of the analysis creator.

**updatedBy** `uint64`

Identifier of the last updater.

**updatedUser** `User`

User object of the last updater.

**createdDate** `timestamp`

Timestamp when the analysis was created.

**updatedDate** `timestamp`

Timestamp when the analysis was last updated.

**executionPriority** `uint32`

Priority level for analysis execution.

**error** `object`

Error information, if applicable.

**errorCode** `uint64`

Machine-readable error code.

**errorMessage** `string`

Detailed error message.

**humanMessage** `string`

Human-readable error message.


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