API calls for Slack

The Slack connector makes API calls to Slack to retrieve data.

Admin User

The Admin User API call can be done only if you have a Slack edition for Enterprise Grid.

The call uses the POST operation to retrieve a list of users in your Slack enterprise.

URI: https://slack.com/api/admin.users.list

For more information, see Slack API docs

User

The User API call can be done if you have any of the Slack non-enterprise editions such as Free, Pro, Business+, or Compliance.

The call uses the GET operation to retrieve a list of users in your Slack workspace.

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

For more information, see Slack API docs

License

The call uses the GET operation to retrieve licensing information for your Slack instance.

URI: https://slack.com/api/team.billing.info

For more information, see Slack API docs

Activity

The call differs depending on whether you have an Enterprise or a non-Enterprise plan for Slack.

For Enterprise:

The call uses the GET operation to retrieve user activity for your Slack enterprise.

URI: https://slack.com/api/admin.analytics.getFile

For more information, see Slack API docs

For Non-Enterprise:

The call uses the GET operation to retrieve a list of user logs in your Slack workspace.

URI: https://slack.com/api/team.accessLogs

For more information, see Slack API docs

Refresh token

The call uses the POST operation to retrieve a refresh token.

URI: https://slack.com/api/oauth.v2.access

For more information, see Slack API docs

Access token

The call uses the POST operation to retrieve an access token.

URI: https://slack.com/api/oauth.v2.access

For more information, see Slack API docs

Auth test

The Auth test API call can be done only if you have any of the Slack non-enterprise editions such as Free, Pro, Business+, or Compliance.

The call uses the POST operation to validate an access token and retrieve basic information of the authenticated user and workspace.

URI: https://slack.com/api/auth.test

For more information, see Slack API docs