---
title: "Assets client"
slug: "assets-client-1523442"
abstract: ""
---
# Assets client

The SDK provides an **Assets client** to get access to asset-specific operations.

> [!note]
> In the following code example, the `client` variable refers to the `ContentHubClient` instance. When using the JavaScript SDK, you can choose your own variable name, but it is called `client` at instantiation in the documentation.

## Create a public link for an asset

For example, the following snippet creates a public link for the `preview` rendition of the asset with id `12345`:

```javascript
const publicLinkId = await client.assets.createPublicLinkAsync(12345, "preview");

```