> ## 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 Endpoint

Retrieves data or executes operations on a specified endpoint using the Rapida API.

> [!NOTE]
>
> For full setup and authentication options, see the [Installation guide](https://doc.rapida.ai/api-reference/installation.md).

## Parameters

**connectionConfig** `ConnectionConfig` *required*

Configuration for the client connection.

**request** `GetEndpointRequest` *required*

**id** `uint64` *required*

A unique identifier for the endpoint. This is a mandatory field for the request.

**endpointProviderModelId** `uint64 (optional)`

An optional identifier for the provider model associated with the endpoint.

### Usage

```python Python theme={null}
from rapida import (
    ConnectionConfig,
    GetEndpointRequest,
    get_endpoint
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
    ConnectionConfig.with_sdk("{your-rapida-api-key}")
)
response = get_endpoint(
    client_cfg=connection_config,
    request=GetEndpointRequest(id=2223006263292198912),
)
pprint(response)
```

```go Go theme={null}
package main

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"))).WithLocal()

	// Provide the endpoint ID to fetch endpoint details
	response, err := clients.GetEndpoint(context.Background(), connectionConfig, &rapida_proto.GetEndpointRequest{
		Id: 2223006263292198912,
	})

	if err != nil {
		fmt.Printf("Error while fetching endpoint details: %+v\n", err)
		return
	}

	// Print the retrieved endpoint details
	fmt.Printf("Endpoint details: Code: %d, Success: %t, Endpoint ID: %d\n", response.Code, response.Success, response.Data.Id)
}
```

```typescript NodeJs theme={null}
import {
  ConnectionConfig,
  GetEndpoint,
  GetEndpointRequest,
} from "@rapidaai/nodejs";

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

async function getEndpoint(connectionCfg) {
  const request = new GetEndpointRequest();
  // endpointId
  request.setId(2223006263292198912);

  const response = await GetEndpoint(connectionCfg, request);
  if (response.getError()) {
    console.error(
      "Error fetching endpoint details:",
      response.getError()?.getHumanmessage()
    );
  } else {
    console.log("Endpoint Details:", response.getData());
  }
}
```

### Response

**code** `int32`

Numeric status code for the operation.

**success** `boolean`

Indicates whether the operation was successful.

**data** `object`

Detailed information about the endpoint.

**id** `uint64`

Unique identifier for the endpoint.

**status** `string`

Operational status of the endpoint.

**visibility** `string`

Visibility status of the endpoint.

**source** `string`

Source of the endpoint.

**sourceIdentifier** `uint64`

Identifier mapping to the endpoint's source.

**projectId** `uint64`

Associated project identifier.

**organizationId** `uint64`

Associated organization identifier.

**endpointProviderModelId** `uint64`

Model identifier tied to the endpoint provider.

**language** `string`

Selected language configuration for the endpoint.

**name** `string`

Name assigned to the endpoint.

**description** `string`

Description of the endpoint's purpose.

**createdDate** `timestamp`

Timestamp of endpoint creation.

**updatedDate** `timestamp`

Timestamp of last endpoint update.

**createdBy** `uint64`

Identifier of the creator.

**updatedBy** `uint64`

Identifier of the last updater.

**error** `object`

Error information, if applicable.

**errorCode** `string`

Machine-readable error code.

**errorMessage** `string`

Detailed error message.


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