How to get business logo using rest Api

I am used the version 2022-04. try to get business logo →

GET https://<STORE_NAME>.myshopify.com/admin/themes/<THEME_ID>/assets.json?asset[key]=config/settings_data.json
{
  "current": {
    "sections": {
      "header": {
        "type": "header",
        "settings": {
          "logo": "shopify:\/\/shop_images\/a403eac45598213843f12eb307dce365.jpg"
        }
    }
  }
}

But is not working, my object sections.header.settings is empty {}
I saved one logo in manage account → general → details → upload photo.
too, i put one photo in settings → brand. If is possible get is photo by rest api with the version 2022-04 ?

1 Like