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

**URL:** <https://community.weweb.io/t/how-do-i-get-the-response-headers-from-a-post-api-call/975>\
**Category:** How do I?\
**Created:** [August 11, 2022, 6:31am UTC](https://community.weweb.io/t/how-do-i-get-the-response-headers-from-a-post-api-call/975 "2022-08-11T06:31:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [August 11, 2022, 6:31am UTC](https://community.weweb.io/t/how-do-i-get-the-response-headers-from-a-post-api-call/975/1 "2022-08-11T06:31:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 12, 2022, 1:02pm UTC](https://community.weweb.io/t/how-do-i-get-the-response-headers-from-a-post-api-call/975/2 "2022-08-12T13:02:16Z")

</div>

Hi @tjmcdonough 👋

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

![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/0/0ad5954b3bf499a29f223b057aa4a1b0cc5200a4.png)

\_\_

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

 ![image (1)](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1696e33594df356fb011fd7dff06c279ca263cdd.png)

---

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [August 13, 2022, 6:27am UTC](https://community.weweb.io/t/how-do-i-get-the-response-headers-from-a-post-api-call/975/3 "2022-08-13T06:27:26Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 17, 2022, 8:06am UTC](https://community.weweb.io/t/how-do-i-get-the-response-headers-from-a-post-api-call/975/4 "2022-08-17T08:06:21Z")

</div>

> [@tjmcdonough](#):
>
> 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](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/99be6b479be9c8f020109cbdd1013cf0d6566421.png)

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