Regarding The asset.json API To Detect If Store Owner Has Enabled The App Embed Block

Solved

Regarding The asset.json API To Detect If Store Owner Has Enabled The App Embed Block

shaileshbizspic
Shopify Partner
6 0 1

Hello Team,
We have a question regarding the usage of assests.json API.
Can we access the assets.json API to detect whether the store owner has enabled the app embed block?
If we use this API to detect, Will it affect our build for the Shopify badge?

image (3).png

image (2).png

Please let us know so that we can move forward according to it.

Accepted Solution (1)

Liam
Community Manager
3108 340 871

This is an accepted solution.

Hi Shaileshbizspic,

 

Apps on the Shopify App Store can make GET requests to the Assets API, and this won't affect Built for Shopify, as you're not making any changes with GET requests. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Reply 1 (1)

Liam
Community Manager
3108 340 871

This is an accepted solution.

Hi Shaileshbizspic,

 

Apps on the Shopify App Store can make GET requests to the Assets API, and this won't affect Built for Shopify, as you're not making any changes with GET requests. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog