---
title: "Create and initiate the Content Hub ONE client"
slug: "create-and-initiate-the-content-hub-one-client"
abstract: "How to create a client and initiate a Content Hub ONE instance."
---
# Create and initiate the Content Hub ONE client

Before you can use the Content Hub ONE SDK, you must create and initiate the client.

## Create the Content Hub ONE client

Use the following code to create the Content Hub ONE client.

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

```shell
// Specify OAuth credentials
var credentials = new ClientCredentialsScheme("client_id", "client_secret");

// Create the Content Hub ONE client instance
var client = ContentHubOneClientFactory.Create(credentials);
```

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

```shell
// Specify OAuth credentials
const credentials = new ClientCredentialsScheme("client_id", "client_secret");

// Create the Content Hub ONE client instance
const client = ContentHubOneClientFactory.create(credentials);
```

:::
::::

## Initiate the Content Hub ONE client

The [clients](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/clients.html "Clients") used with the Content Hub ONE SDK follow similar usage patterns and require that you initiate a Content Hub ONE client instance. This instance exposes the underlying functionality used to interact with the APIs:

- [Content types client](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/content-types-client.md "Content types client")
- [Taxonomy client](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/taxonomy-client.md "Taxonomy client")
- [Locales client](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/locales-client.md "Locales client")
- [Content items client](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/content-items-client.md "Content items client")
- [Media client](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/media-client.md "Media client")
- [API key client](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/api-key-client.md "API key client")

To get started with the SDK, try the following [basic tasks](https://doc.sitecore.com/ch-one/en/developers/content-hub-one/content-hub-one-client-sdk/basic-tasks.html "Basic tasks"):

- Get a single content type.
- Get content items of a specific definition.