Slack Dnd API

Do Not Disturb management

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /dnd.setSnooze Turn on Do Not Disturb for some minutes · Slack Set Snooze Duration #
Ask an LLM
“How do I snooze my notifications for the next hour?”
“Can I set Do Not Disturb for a specific number of minutes?”
Tell an agent
Turn on Do Not Disturb for {num_minutes} minutes.
Snooze my notifications for {num_minutes} minutes.
GET /dnd.info Check a user's Do Not Disturb status · Slack Get Dnd Status for a User #
Ask an LLM
“Is a teammate in Do Not Disturb mode right now?”
“When does my current snooze end?”
Tell an agent
Check the Do Not Disturb status of {user}.
Show my current Do Not Disturb settings.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/slack-dnd-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

slack-dnd-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Slack Web Dnd API
  description: The Slack Web API is an HTTP-based interface that provides access to all of Slack's platform features.
  version: 1.0.0
  termsOfService: https://slack.com/terms-of-service/api
  contact:
    name: Slack Developer Support
    url: https://docs.slack.dev
  license:
    name: Slack API Terms of Service
    url: https://slack.com/terms-of-service/api
servers:
- url: https://slack.com/api
  description: Slack Web API production server
security:
- bearerAuth: []
tags:
- name: Dnd
  description: Do Not Disturb management
paths:
  /dnd.setSnooze:
    post:
      tags:
      - Dnd
      summary: Slack Set Snooze Duration
      description: Turns on Do Not Disturb mode for the current user for the specified number of minutes.
      operationId: dndSetSnooze
      externalDocs:
        description: API method documentation
        url: https://docs.slack.dev/reference/methods/dnd.setSnooze
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - num_minutes
              properties:
                num_minutes:
                  type: integer
                  description: Number of minutes to snooze for.
      responses:
        '200':
          description: Snooze set
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  snooze_enabled:
                    type: boolean
                  snooze_endtime:
                    type: integer
                  snooze_remaining:
                    type: integer
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /dnd.info:
    get:
      tags:
      - Dnd
      summary: Slack Get Dnd Status for a User
      description: Retrieves a user's current Do Not Disturb status.
      operationId: dndInfo
      externalDocs:
        description: API method documentation
        url: https://docs.slack.dev/reference/methods/dnd.info
      parameters:
      - name: user
        in: query
        description: User to fetch status for.
        schema:
          type: string
      responses:
        '200':
          description: DND info retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  dnd_enabled:
                    type: boolean
                  next_dnd_start_ts:
                    type: integer
                  next_dnd_end_ts:
                    type: integer
                  snooze_enabled:
                    type: boolean
                  snooze_endtime:
                    type: integer
                  snooze_remaining:
                    type: integer
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Slack API uses Bearer token authentication. Pass a bot token or user token in the Authorization header.