Accessing response headers of REST API query

Hi!
I am using a REST resource (in this case the Shopify orders endpoint) and get some data from there. I would like to access the response headers in a JS transformer (specifically the "Link" header) but it seems like headers cannot be accessed there?
Is there any way to access those headers in JS transformers, or in regular JS actions?

Thanks a lot!

Hi @JustSomeUser !

Is this value available inside the query.metadata.headers property? Should be able to have a peek in the left panel:


Ah, yes, it is, thanks a lot!

1 Like