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.
source
share