# Bad HTTP authentication header format, statusCode: 400

**URL:** <https://community.auth0.com/t/bad-http-authentication-header-format-statuscode-400/83257>\
**Category:** Get Help\
**Tags:** api\
**Created:** [May 11, 2022, 1:30pm UTC](https://community.auth0.com/t/bad-http-authentication-header-format-statuscode-400/83257 "2022-05-11T13:30:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![techtools](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/techtools/32/12714_2.png) [@techtools](https://community.auth0.com/u/techtools)\
**Post date:** [May 11, 2022, 1:30pm UTC](https://community.auth0.com/t/bad-http-authentication-header-format-statuscode-400/83257/1 "2022-05-11T13:30:21Z")

</div>

The following code supposes to update the user that has just been created and make him verified without sending the user’s verification emails I used the flow of the actions for this, after a lot of thought I got into this code and tried to implement it but every time I got the following error:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/c/5c68f265a4b95ba0c23b4975fe1fb4193ae6d037.png)

I checked the generated API key for the Management API with the manual test and it worked,  
I’ve tried to figure out what it could be but have no luck by now so I would like help thanks a lot

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/d/ed76f99c9e3ee29a0ae27b65a1f7d71c903a5a76.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 20, 2022, 11:24pm UTC](https://community.auth0.com/t/bad-http-authentication-header-format-statuscode-400/83257/3 "2022-05-20T23:24:43Z")

</div>

Hi @techtools,

Have you inspected the token? Make sure your token has the correct scopes. You can decode it and see what it contains using [jwt.io](http://jwt.io).

Let me know!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 28, 2022, 10:35pm UTC](https://community.auth0.com/t/bad-http-authentication-header-format-statuscode-400/83257/4 "2022-06-28T22:35:10Z")

</div>


