How to get a file with its ID gid://shopify/MediaImage/XXX with an API query?

Hi,

Working now, just had to change permissions to write_files, read_files, read_products, read_themes, write_products