Media Library
Container URLs
Container URLs provide a stable, shareable link to Media Library assets.
Container URLs provide a stable, shareable link to Media Library assets. They automatically reflect changes to an asset’s version or visibility (public or private), so you never need to update links manually. Container URLs are optimised for delivery by Sanity’s CDN and are available through both the Media Library UI and GROQ.
Copy a Container URL from the UI
- Open Media Library from your Dashboard.
- Select an asset to view its details in the right panel.
- Click the ellipsis menu at the bottom of the right panel.
- Select Copy URL > Copy asset CDN URL to copy the Container URL to your clipboard.
Loading...
Querying Container URLs
*[_type=="event"][0] {
poster {
"containerURL": documents::get(media).url
}
}Update durations
Because Container URLs are served by Sanity’s CDN, it can take some time for visibility or version changes to propagate. Updates typically appear within minutes.
