Search code examples
pythonapislackslack-api

slack API users.identity not working


I am trying to get my python slack bot to work. I want to get the info of the user who is trying to make API calls using users.identity API. However, I was unable to make it to work.

Any tips and idea why?

This is the error I get.

this is the error i get

Thanks in advance.


Solution

  • It won't work on https://api.slack.com/methods/users.identity/test. But if you create an "app/script" where you can authenticate and then request with https://slack.com/api/users.identity?token=xxx you will get a valid response for the logged in person. With User Name,User id and Team id