Get a single asset
GET https://{{base_url}}/v3/assets/{{asset_uid}}?environment={{environment}}
The Get a single asset request fetches the latest version of a specific asset of a particular stack.
To use the API Request, you'll need to use the Delivery Token of the respective environment.
Read more about it in Authentication.
For more information, refer to the Get a single asset API Reference document
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
environment | string | Enter the name of the environment if you want to retrieve an asset published in a particular environment. | |
version | number | Specify the version number of the asset that you want to retrieve. To retrieve a specific version, keep the environment parameter blank. If the version is not specified, the details of the latest version will be retrieved. | |
include_fallback | boolean | Enter 'true' to include published asset details from the fallback locale when the specified locale does not contain published information. | |
include_dimension | boolean | Enter 'true' to include the dimensions (height and width) of the image in the response. Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD. | |
relative_urls | boolean | Enter 'true' to include the relative URL of the asset in the response. | |
include_branch | boolean | Set this to true to include the _branch top-level key in the response. This key states the unique ID of the branch where the concerned Contentstack module resides. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Enter the API key of your stack. | |
access_token | string | Enter the environment-specific delivery token of your stack. Check Authentication . | |
branch | string | Enter your branch unique ID. | |
Content-Type | string |