READ_FILES can list it; one with
WRITE_FILES can add media to it.
The store is bound to your app token server-side. Never send a shop id.
What the gallery contains
List results exclude paid digital files (private: true), because those belong
to a buyer rather than the store’s media library. Cap covers and page images are
reached through the digital product instead.
List files
limit is capped at 100. Pass type=image or type=video to narrow by
mimetype. A store that has never uploaded anything answers with an empty list,
not 404.
Get one file
Register media you already host
size: 0
and the store keeps depending on your host. Only image/* and video/*
mimetypes are accepted.
Use it when your app generates media and serves it from its own CDN, and you
want it to appear in the merchant’s gallery so they can pick it in the theme
editor.
Copy a public URL into the store’s storage
Update and delete
WRITE_FILES. Update changes the tags and name a merchant sees; it
does not replace the media.
Deleting a gallery file removes it from the merchant’s library, so a product,
blog post or page that still points at it will show a broken image. Check what
references a file before removing it, and prefer registering a new file over
overwriting one an app did not create.

