I’m just trying to authenticate with an API Endpoint which expects a fixed token to be passed as the Authorization HTTP header.
Does this look like it should work? I need to pull the token/API key from the Vault.
<arc:set attr="http.URL" value="https://api.XXXX.com/carrier/api/shipment-listing/[data.shipmentNumber]" />
<arc:set attr="http.header:Authorization" value="Bearer [Vault(My.API.Token)]"/>
<arc:set attr="http.contenttype" value="application/json"/>
<arc:call op="httpGet" in="http">
<arc:set attr="output.data" value="[http:content]" />
</arc:call>
I’m getting a 401
thanks
Best answer by James B
View original