One way to interact with the Slack platform is its HTTP RPC-based Web API, a collection of methods requiring OAuth 2.0-based user, bot, or workspace tokens blessed with related OAuth scopes.
curl \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://slack.com/api/api.test
curl \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://slack.com/api/dnd.info
curl \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://slack.com/api/auth.test