Get all assets
GET https://{{base_url}}/v3/assets?environment={{environment}}
The Get all assets request fetches the list of all the assets of a particular stack. It returns the content of each asset in JSON format. You can also specify the environment of which you want to get the assets.
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 all assets API Reference document
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
environment | string | Enter the name of the environment if you want to retrieve the assets published in a particular environment. | |
include_fallback | boolean | Enter 'true' to include the published asset details from the fallback locale when the specified locale does not contain published content. | |
relative_urls | boolean | Enter 'true' to include the relative URLs of the assets in the response. | |
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. | |
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 |