Sample - Slack Web API
GET/dnd.teamInfo

List team Do Not Disturb statuses

Lists the Do Not Disturb status for up to 50 users on a team. Provide users as a comma-separated set of user identifiers, or omit it to use the method's default team scope.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
tokenstringoptional
Authentication token with the `dnd:read` scope.
usersstringoptional
A comma-separated list of users whose Do Not Disturb status to retrieve; the list supports up to 50 users.

2 status codes
200Returns `ok: true` with the available team Do Not Disturb status response.
okbooleanrequired
Allowed:true
defaultReturned when the request cannot be processed.
okbooleanrequired
Allowed:false

Error handling

token must provide authentication with the dnd:read scope. If supplied, users must be a comma-separated list containing no more than 50 user identifiers.