getAssetEndpoint Method

Obtain an endpoint URL and access token for the specified Cesium Ion asset.

getAssetEndpoint(assetId: string, iTwinId?: string): Promise<CesiumAssetEndpoint | undefined>

@returns The resolved endpoint, or undefined if the asset cannot be accessed.

Parameter Type Description
assetId string The Cesium Ion asset identifier (e.g. "1" for Cesium World Terrain).
iTwinId string Optional iTwin context identifier. May be used by implementations to scope requests
to a specific iTwin context, but is not required by the iTwin Platform Cesium Curated Content API.

Returns - Promise<CesiumAssetEndpoint | undefined>

The resolved endpoint, or undefined if the asset cannot be accessed.

Defined in

Last Updated: 23 June, 2026