Getting not_authed slack error when calling web api, although the token is passed

I successfully added the application to the slack api with a permission area to administer commands :

I generated a token from the Legacy token generator . I am making an api call with the following information from a postman.

endpoint: https://slack.com/api/users.list

method: get

Headers:

key = token

value = token generated

He returns me the following answer

{
  "ok": false,
  "error": "not_authed"
}

An attempt to perform the same actions with curl works, but with the POST method and does not work in the GET method

curl -X POST https://slack.com/api/users.list --data "token=codehere"

Where exactly am I mistaken.

+4
source share
1 answer

GET, URL, .

:

https://slack.com/api/users.list?token=YOURTOKEN 
+2

Source: https://habr.com/ru/post/1675342/


All Articles