---
title: "Content Hub ONE Client SDK"
slug: "content-hub-one-client-sdk"
abstract: "Overview of the SDK and how to authenticate"
---
# Content Hub ONE Client SDK

The Content Hub ONE client software development kit (SDK) provides a unified set of APIs and tools that let you develop apps. It interacts with the Content Management API so you can make requests to create, edit, manage, and publish content in your preferred programming language using typed objects.

> [!note]
> Content Hub ONE includes a .NET and a JavaScript SDK.

> [!important]
> To use the localization features, you need version 2.0.1 and later.

## Authentication

Authentication is done through the Sitecore Identity service. By default, the SDK connects to the production endpoints for the API.

You can copy client credentials from the [Content Hub ONE web app](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/authentication.md "Authentication") and then use them in your code to create an authenticated client.

::::tabs
:::tab{title="C#"}

```csharp
using Sitecore.ContentHubOne.Sdk;
using Sitecore.ContentHubOne.Sdk.Authentication;

namespace Examples
{
  public class Program
  {
    static void Main(string[] args)
    {
      // Enter your credentials here
      var credentials = new ClientCredentialsScheme("client_id", "client_secret");

      // Create the Headless client
      var client = ContentHubOneClientFactory.Create(credentials);
    }
  }
}
```

:::
:::tab{title="Javascript"}

```csharp
import {
 ClientCredentialsScheme,
 ContentHubOneClientFactory,
 ContentHubOneClientOptions,
} from "@sitecore/contenthub-one-sdk";

const credentials = new ClientCredentialsScheme(
 "client_id",
 "client_secret"
);

const client = ContentHubOneClientFactory.create(
 credentials,
 new ContentHubOneClientOptions({
  apiEnvironment: {
   apiBasePath: "base_path",
   identityAuthority: "authority",
   identityAudience: "audience",
   mediaUploadBasePath: "media_path",
  },
 })
);
```

:::
::::

Before you use the SDK, you must:

- [Create and initiate the Content Hub ONE Client](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/create-and-initiate-the-content-hub-one-client.html "Create and initiate the Content Hub ONE client")
- [Set up the Content Hub ONE Client SDK](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/set-up-the-content-hub-one-client-sdk.html "Set up the Content Hub ONE Client SDK")