> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Asset visibility

Control asset access using visibility settings and enable secure delivery using signed URLs.

Asset visibility controls how individual assets like images and files can be accessed from Sanity’s Content Delivery Network (CDN). This feature ensures Media Library can securely manage confidential assets, embargoed launches, and other sensitive or licensed materials. Visibility and signed URLs apply only to Media Library assets. Assets stored in a project's dataset are always public on the CDN, even when the dataset is private.

- **Public**: Anyone with the asset's URL or identifier can request and view it.
- **Private**: Access is restricted to authenticated Media Library and Studio users. External controlled access can be granted using signed URLs.

> [!NOTE]
> Video assets
> Video assets support private visibility. Private videos include thumbnails, timeline scrubbing, and full-screen previews in Media Library and Studio.

## Change an asset's visibility

![Screenshot of the Media Library showing the visibility switcher](https://cdn.sanity.io/images/3do82whm/next/2f91af899fd1556702a756d3dc7f0b708c48fc6c-1600x1035.webp)

1. Select the asset in Media Library.
2. In the asset sidebar, select the visibility indicator. If the asset is public, it displays **Public** with a globe icon. If the asset is private, it displays **Private** with a lock icon.
3. Select the visibility you want from the list in the popover.

> [!TIP]
> Switching visibility does not require a **Publish** action for changes to take effect.

## Set visibility when you upload

By default, assets are uploaded with public visibility. To change this for your session, select **Upload** at the top of the asset grid and use the visibility switcher in the upload modal before uploading.

![Media Library interface with an Upload modal open, showing the visibility switcher affordance for setting the visibility of assets as they are uploaded.](https://cdn.sanity.io/images/3do82whm/next/189e9a91d87ff820822db70021bdc16d96ae6214-2822x1908.webp)

### Caching and propagation

When switching an asset's visibility from public to private, the CDN may continue serving cached responses for up to 30 days. To minimize exposure, set sensitive assets to private before upload.

## Signed URLs

Signed URLs provide a secure way to deliver private assets through Sanity's CDN. Each URL includes a signature that both validates access and ensures the asset is served only with the exact transformations specified in the URL. This prevents unauthorized use, hotlinking, and unapproved image manipulation.

To display images with private visibility using signed URLs, the `@sanity/image-url` [package](https://github.com/sanity-io/image-url?tab=readme-ov-file#signed-urls) exports an extended image URL builder with signing methods from the `@sanity/image-url/signed` export path.

For non-image assets such as PDFs and audio files, use the lower-level `@sanity/signed-urls` [package](https://github.com/sanity-io/signed-urls) to create a signed version of a given asset URL.

Check the READMEs of both packages for more details on signing URLs.

Video assets don't use signing keys. To play a private video, get signed URLs from the playback info endpoint. See "Private videos and signed URLs" in [Working with video](https://www.sanity.io/docs/media-library/working-with-video).

> [!WARNING]
> Keep signing keys server-side
> Sign URLs on the server only. Never expose your private signing key in client-side code.

### Signing keys

Signing URLs requires providing a private key, an associated key ID, and an expiry time to whichever helper functions you are using. Signing keys are managed in the Media Library itself:

1. At the top of the left panel, click the Media Library dropdown.
2. Select **Signing keys**.

![Media Library interface with a "Signing keys" modal open, listing keys for marketing, mobile, and web applications, and a button to add a new key.](https://cdn.sanity.io/images/3do82whm/next/c3ede98db5b642f8eafee90a03d9b473ec6a0e19-2823x2007.webp)



## Related changelog entries

Entries are listed newest first; each link points to the full entry as markdown. Follow one when you need to know what changed, when, or why — for example, to summarize recent updates, explain behavior that differs from older documentation, or check whether a fix has shipped.

- [Media Library v2026-01-14: PDF previews, signed URLs, static video renditions, and draft indicators](https://www.sanity.io/docs/changelog/1f542ae0-74ef-4523-a447-bdd1ea52bbbf.md) — January 14, 2026