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

KeyDatatypeRequiredDescription
environmentstringEnter the name of the environment if you want to retrieve the assets published in a particular environment.
include_fallbackbooleanEnter 'true' to include the published asset details from the fallback locale when the specified locale does not contain published content.
relative_urlsbooleanEnter 'true' to include the relative URLs of the assets in the response.
include_dimensionbooleanEnter '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_branchbooleanSet 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

KeyDatatypeRequiredDescription
api_keystringEnter the API key of your stack.
access_tokenstringEnter the environment-specific delivery token of your stack. Check Authentication .
branchstringEnter your branch unique ID.
Content-Typestring