Endpoint
assets/<productSlug>/<version>/ in the repository’s build output. The content-type response header is set based on the asset’s file extension.
Path parameters
The slug identifying the product whose assets you want to retrieve.Examples:
terraform-plugin-framework, vault, consulThe documentation version. Use
latest to resolve to the most recent stable version.Examples: latest, v1.9.x, v20220610-01The path to the asset within the product’s assets directory. Segments are joined with
/.Example: img/docs/plan-comments.pngExample requests
Response
Returns the raw binary content of the asset with an appropriatecontent-type header.
Response headers
| Header | Description |
|---|---|
content-type | MIME type of the asset, determined from the file extension (e.g., image/png, image/svg+xml) |
served-from | Indicates whether the asset was served from current build or production |
Error responses
| Status | Body | Cause |
|---|---|---|
404 | Not found | The productSlug is not in the product configuration, the version does not exist, or no asset was found at the specified assetPath. |
How assets are stored
Assets are copied from product content directories during the prebuild step intopublic/assets/<productSlug>/<version>/. The API reads assets from this pre-built output directory rather than from the content/ source directory directly.