---
title: "Slack Slash Command"
method: POST
path: "/webhooks/slack/commands"
---

# Slack Slash Command

`POST /webhooks/slack/commands`

Receive a Slack slash command, verify signature, and ack immediately.

Slack requires a response within 3 seconds.  This endpoint verifies the
request signature, parses the URL-encoded form payload, and returns an
immediate acknowledgement.  Any long-running work (task creation, etc.)
should be dispatched asynchronously using ``response_url``.

Reads ``SLACK_SIGNING_SECRET`` from environment for HMAC verification.
Returns 200 on success, 401 on bad/missing signature, 400 on parse error.

Slash command form fields parsed:
    - ``command``      - the slash command (e.g. ``/bernstein``)
    - ``text``         - text following the command
    - ``user_id``      - Slack user ID
    - ``channel_id``   - Slack channel ID
    - ``response_url`` - URL for delayed responses (up to 30 min)
    - ``trigger_id``   - trigger ID for opening modals

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/versions/86f514b4e920/schema)
