Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Can you use Assets HTTP API to access assets in a collection in AEM DAM?

uafzal
Level 2
Level 2

Does Assets HTTP API support accessing assets in a given collection in AEM DAM? Or is there an alternative programmatically approach or another API for it?

Assets HTTP-API
1 Accepted Solution
shelly-goel
Correct answer by
Community Advisor
Community Advisor

@uafzal  Yes you can retrieve the assets in a folder in AEM Assets using the Assets Http API. Refer link below

https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html#r...

You can try accessing /api/assets/myFolder.json endpoint in postman with Basic Auth.

View solution in original post

3 Replies
shelly-goel
Correct answer by
Community Advisor
Community Advisor

@uafzal  Yes you can retrieve the assets in a folder in AEM Assets using the Assets Http API. Refer link below

https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html#r...

You can try accessing /api/assets/myFolder.json endpoint in postman with Basic Auth.

View solution in original post

umair-afzal
Level 1
Level 1
@shelly-goel Thank you for the comment. Yes, retrieving folder listing is possible. My question was regarding accessing assets in a collection. Do you know if there a way to fetch assets in a collection?
shelly-goel
Community Advisor
Community Advisor
Since collection doesn't actually hold the assets but virtually groups them together, I don't think there's any API currently available to fetch assets in a collection