# WebApi Headers update via Code Blocks

**URL:** <https://community.thunkable.com/t/webapi-headers-update-via-code-blocks/18239>\
**Category:** Questions about Thunkable X\
**Created:** [February 28, 2018, 10:58am UTC](https://community.thunkable.com/t/webapi-headers-update-via-code-blocks/18239 "2018-02-28T10:58:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Hawkins](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@David\_Hawkins](https://community.thunkable.com/u/David_Hawkins)\
**Post date:** [February 28, 2018, 10:58am UTC](https://community.thunkable.com/t/webapi-headers-update-via-code-blocks/18239/1 "2018-02-28T10:58:56Z")

</div>

Hi,

Is there any way yet to set WebApi headers via code blocks? JSON Web Tokens (JWT) require these for authentication and would allow to consume greater number of API’s.

Kind regards,  
David

---

<div class="post-metadata">

**Author:** ![Avram](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/avram/32/13989_2.png) [@Avram](https://community.thunkable.com/u/Avram)\
**Post date:** [March 2, 2018, 12:24am UTC](https://community.thunkable.com/t/webapi-headers-update-via-code-blocks/18239/2 "2018-03-02T00:24:47Z")

</div>

Note that some JWT implementations allow token to be passed via query param, i.e. `?token=YOUR_TOKEN`, but yes, we need this as not only tokens are passed in headers.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:04pm UTC](https://community.thunkable.com/t/webapi-headers-update-via-code-blocks/18239/3 "2024-11-08T12:04:24Z")

</div>


