Contentstack provides asset URL security, allowing teams to protect content by restricting public access to asset URLs. When enabled for a stack, assets cannot be accessed directly by their URLs without valid authentication parameters, helping prevent unauthorized retrieval of sensitive or private content.
To access a secured asset, you must include both a delivery token and an environment name as query parameters in the asset URL.
Example URLs:
Note: Delivery tokens are scoped to environments. Adding the environment parameter strengthens validation by ensuring the asset is authorized in the correct context.
When secure asset URLs are enabled, the following limitations apply:
Warning: Manually appending the asset URL is not recommended for rich text fields due to maintainability and potential security exposure.
To access draft (unpublished) assets, use either an Authtoken or a Management Token with the Content Management APIs.
Note: Delivery tokens work only for published assets and cannot be used to fetch draft versions.
To enable asset URL security for your stack, contact our support team.
Note: Asset security is applied at the stack level. Authenticated users can still download and manage assets directly through the Contentstack web app.
Securing asset URLs adds an additional layer of control and protection for your content.