How do I get the response headers from a POST API call?

How do I get the response headers from a POST API call?

I can see the response object but not the headers. Any help greatly appreciated

Hi @tjmcdonough :wave:

The payload headers are available as a result of the request action:

image

__

The request headers are available in the “config” object of the result:

3 Likes

@Joyce I saw this but you only return content-length and content-type on each response. I have about 13 response headers that aren’t being returned

Could you share what your call and response look like in Postman so I can reproduce them in WeWeb?

If it’s the authentication token you need (based on our conversation in the chat), then you can retrieve its value by creating a Variable of type Query in WeWeb that has exactly the same name.

In the example below, that would be accessToken
cleanshot-2022-08-11-at-172633_tgxk7g

If it’s something else, can you provide us with a little bit more context so we can look into it?