Delivery and gateway links
Sitecore Content Hub uses two types of links served from the respective endpoints: delivery and gateway. The difference between these relates to their security.
Delivery links are the standard way to access assets in Content Hub. The delivery URLs contain a SAS-token with an embedded expiration time recalculated on each API request. As a result, you can only use these URLs for a default duration of 20 minutes. Delivery links use the following format:
https://contenthub-instance.cloud/en-us/asset/<id>
The id is a system ID automatically generated by Content Hub upon creation of the asset.
Gateway links (or direct links) are another way to access assets using the gateway API. Gateway URLs require that a valid logged-in user makes the request. It needs an OAuth token to authenticate. Gateway is mainly used in Sitecore Content Hub Digital Apps integrations. Gateway links use the following format:
https://contenthub-instance.cloud/api/gateway/identifier/<id>/preview
The id is a system ID automatically generated by Content Hub upon creation of the asset.
To access the gateway link of an asset:
-
On the menu bar, click Assets.
-
On the Assets page, select the asset for which you want to create a gateway link.
-
On the asset details page, click Use direct link .