cs-icon.svg

Understanding Asset URL

The asset URL is auto-generated when you upload an asset file, and it follows a default pattern.

Understanding the Parameters in Asset URL

The default pattern of the Asset URL is as follows:

https://{base_url}/v3/assets/{stack_api_key}/{asset_uid}/{version_uid}/filename

Here's the breakdown of the Asset URL:

  • base_url: Depending on the asset uploaded, this can be either assets.contentstack.io (generic URL for assets) or images.contentstack.io (specific URL for images).
  • stack_api_key: The API Key of your stack.
  • asset_uid: The Unique ID of your asset file.
  • version_uid: The version ID of the asset file. Each version of your asset file has a unique version ID.

Additional Resource: You can also generate a permanent URL for your asset, which remains constant irrespective of any subsequent updates to the asset. To know more, read our documentation.

Was this article helpful?
^