---
title: "Configure API Client"
slug: "configure-api-client"
updated: 2026-03-10T17:31:59Z
published: 2026-03-10T17:31:59Z
---

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

# Configure API Client

The first step is to configure the Fortanix-Data-Security-Manager (DSM) service endpoint to communicate with the Fortanix DSM service and authenticate with the service.

The endpoint is the full Fortanix DSM cluster URL. For example, `https://smartkey.io/`.

- [C#](/docs/configure-api-client#tabs-1)
- [Go](/docs/configure-api-client#tabs-2)
- [Java](/docs/configure-api-client#tabs-3)
- [Python](/docs/configure-api-client#tabs-4)
- [PHP](/docs/configure-api-client#tabs-5)
- [Javascript](/docs/configure-api-client#tabs-6)
- [REST API using curl](/docs/configure-api-client#tabs-7)

### C#

```bash
using Fortanix.SDKMS.Client;

Configuration.Default.BasePath = "<Endpoint URL>";
```

### Go

```bash
import (
    "github.com/fortanix/sdkms-client-go/sdkms"
)
client := sdkms.Client{
      Endpoint: "<Endpoint URL>",
      HTTPClient: http.DefaultClient,
}
```

### Java

```bash
ApiClient apiClient = new ApiClient();
apiClient.setBasePath(<Endpoint URL>);
```

### Python

```bash
config = sdkms.v1.Configuration()
config.host = "<Endpoint URL>"
client = sdkms.v1.ApiClient(configuration=config)
```

### PHP

```bash
$configuration = new SdkmsClient\Configuration();
$configuration->setHost('<Endpoint URL>');
$client = new SdkmsClient\ApiClient($configuration);
```

### Javascript

```bash
var FortanixSdkmsRestApi = require('fortanix_sdkms_rest_api');
var client = FortanixSdkmsRestApi.ApiClient.instance;
client.basePath = '<Endpoint URL>';
```

### REST API using curl

```bash
 curl <Endpoint URL> ...
```

Fortanix Data Security Manager (DSM) is the world’s first cloud service secured with Intel® SGX. With Fortanix DSM, you can securely generate, store, and use cryptographic keys and certificates, as well as other secrets such as passwords, API keys, tokens, or any blob of data. Your business-critical applications and containers can integrate with Fortanix DSM using legacy cryptographic interfaces (PKCS#11, CNG, and JCE) or using the native Fortanix DSM RESTful interface.

Fortanix Data Security Manager (DSM) is the world’s first cloud service secured with Intel® SGX. With Fortanix DSM, you can securely generate, store, and use cryptographic keys and certificates, as well as other secrets such as passwords, API keys, tokens, or any blob of data. Your business-critical applications and containers can integrate with Fortanix DSM using legacy cryptographic interfaces (PKCS#11, CNG, and JCE) or using the native Fortanix DSM RESTful interface.

## Related

- [Fortanix DSM for LUKS2 Volume Encryption and Decryption](/using-fortanix-data-security-manager-for-luks-volume-encryption-and-decryption.md)
- [User Authentication](/user-authentication.md)
- [SDKs for REST API](/clients-sdks-for-rest-api.md)
- [Fortanix DSM - Quickstart](/fortanix-data-security-manager-quickstart.md)
- [Introduction](/introduction.md)
