We send out a lot of emails specific to school affiliations. In one send there could be 170 school versions and over 10,000 urls. I verify that each url and image exists by running a script in nodejs that makes a get request to each url and looks for a 200 response code. It’s pretty simple except that now that we migrated to shopify I get all 403 forbidden responses making it impossible to audit the emails. Has anyone run into this? Do I need to add specific headers so Shopify knows the traffic is legit? If I put the same urls in the browser they work.
It’s a little unclear which Admin API query you’re using here, but the 403 error suggests that your access token likely does not have appropriate permissions. I’d recommend reviewing our docs on authentication & authorization methods and the list of authenticated access scopes here.
Hope that helps!
It’s not using the api’s at all. Just a frontend request for a webpage.