Peter
Peter

Reputation: 285

Twitter API Postman: Code 32: Could not authenticate you

I want to test the Twitter API for an app in the future. I was trying to test it with Postman but I get this error all the time.

"code": 32,
"message": "Could not authenticate you."

I made an new app from my developers account and put all the generated tokens into Postman like this:

Postman_Screenshot2

My parameters are the same like this screenshot: (with the correct tokens)

Postman_Screenshot1

Do I need to check something important? I hope someone has already faced this problem or just can help me with this.

Upvotes: 22

Views: 36803

Answers (6)

trckster
trckster

Reputation: 610

I had troubles encoding my oauth_callback param, fixing this helped.

Upvotes: 0

QiuYi
QiuYi

Reputation: 133

Follow the picture and you will get the correct return. enter image description here

Upvotes: 2

muya_
muya_

Reputation: 1008

Another thing to check is the ! character in the status that's being posted. Ensure it's encoded correctly.

See here for more details: https://groups.google.com/d/msg/google-appengine/6ILDt39anbs/gEwMVBNJLkYJ

Upvotes: 1

ryanulit
ryanulit

Reputation: 5001

For anyone still having issues...

My problem was that the Content-Type: application/x-www-form-urlencoded header was not set for my POST request when testing with Postman. Once I added that, all was well.

Upvotes: 6

Daniel
Daniel

Reputation: 3011

Error 32 "Could not authenticate you" can also happen when the content of the tweet triggers the Twitter censorship filter.

Upvotes: 7

Matt
Matt

Reputation: 750

Under the "Authorization" tab in Postman, choose "Request Headers" from the "Add authorization data to:" drop down.

Useful reference: https://developer.twitter.com/en/docs/basics/authentication/guides/authorizing-a-request.html

Upvotes: 37

Related Questions