# Twitter API v2 401 error

**URL:** <https://community.postman.com/t/twitter-api-v2-401-error/31123>\
**Category:** Help Hub\
**Created:** [December 29, 2021, 7:55pm UTC](https://community.postman.com/t/twitter-api-v2-401-error/31123 "2021-12-29T19:55:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![material-observer-25](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@material-observer-25](https://community.postman.com/u/material-observer-25)\
**Post date:** [December 29, 2021, 7:55pm UTC](https://community.postman.com/t/twitter-api-v2-401-error/31123/1 "2021-12-29T19:55:32Z")

</div>

Hello,

I’m following along the tutorial of twitter about postman:

> **[Getting started with Postman - X](https://developer.twitter.com/en/docs/tutorials/postman-getting-started)**
>
> In this tutorial, we will discuss what Postman is and how to quickly get set up with it.

However, I’m not able to send request and have to create a folk to my workspace based on the recommendation of postman. So I tried it but it didn’t work. I got the 401 error mentioning about the header. What should I do?

 ![question-twitter](https://us1.discourse-cdn.com/getpostman/original/3X/3/d/3db90619a725f6e7f26f89dc1cf9d23ef55e98ec.png)

Thank you for your help

---

<div class="post-metadata">

**Author:** ![jetison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jetison/32/12_2.png) [@jetison](https://community.postman.com/u/jetison)\
**Post date:** [December 29, 2021, 8:23pm UTC](https://community.postman.com/t/twitter-api-v2-401-error/31123/2 "2021-12-29T20:23:23Z")

</div>

Hi there @material-observer-25 -

The Twitter API requires that you include personal credentials with your API request so that they know who you are and that you are allowed to access that information.

They show how to do this under “Generating a User Access Token with Postman”, but it looks like there are broken links and missing screenshots in their tutorial 😞 Check out these step-by-step instructions for Twitter’s OAuth 1.0a [Twitter API Authorization](https://community.postman.com/t/twitter-api-authorization/9512)

---

<div class="post-metadata">

**Author:** ![material-observer-25](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@material-observer-25](https://community.postman.com/u/material-observer-25)\
**Post date:** [December 29, 2021, 11:09pm UTC](https://community.postman.com/t/twitter-api-v2-401-error/31123/3 "2021-12-29T23:09:19Z")

</div>

Thank you, that solved my problem. May I ask why do we use Twitter’s OAuth 1.0 instead of 2.0? What’s the difference between those two?

---

<div class="post-metadata">

**Author:** ![jetison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jetison/32/12_2.png) [@jetison](https://community.postman.com/u/jetison)\
**Post date:** [December 29, 2021, 11:27pm UTC](https://community.postman.com/t/twitter-api-v2-401-error/31123/4 "2021-12-29T23:27:00Z")

</div>

I’m not really sure - but here’s is an article that breaks down the differences: [Overview of the different authentication methods | Docs | Twitter Developer Platform](https://developer.twitter.com/en/docs/tutorials/authenticating-with-twitter-api-for-enterprise/authentication-method-overview)

And if you feel like tweeting at [TwitterDev](https://twitter.com/TwitterDev?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor), perhaps they will fix their tutorial 😁

---

<div class="post-metadata">

**Author:** ![material-observer-25](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@material-observer-25](https://community.postman.com/u/material-observer-25)\
**Post date:** [December 30, 2021, 5:48pm UTC](https://community.postman.com/t/twitter-api-v2-401-error/31123/5 "2021-12-30T17:48:26Z")

</div>

Thank you for your help, I will check it 😃
