Sample - Slack Web API
POST/dnd.endDnd

End Do Not Disturb

Ends the authenticated user's active Do Not Disturb session immediately. Use this operation when the authenticated user wants to stop the current Do Not Disturb period rather than wait for its scheduled end.

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

1 parameter
tokenstringrequired
Authentication token with the `dnd:write` scope.

2 status codes
200Returns `ok: true` after the authenticated user's Do Not Disturb session ends.
okbooleanrequired
Allowed:true
defaultReturned when authentication, token validity, account status, permissions, or request encoding is invalid.
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:unknown_errornot_authedinvalid_authaccount_inactivetoken_revokedno_permissionorg_login_requireduser_is_botinvalid_arg_nameinvalid_array_arginvalid_charsetinvalid_form_data
okbooleanrequired
Allowed:false

Error handling

token must provide authentication with the dnd:write scope. The token must belong to an active account permitted to change the authenticated user's Do Not Disturb state.