Accept a signed Slack Events API delivery
Inbound half of the bidirectional Slack thread mirror, mounted only when SLACK_SIGNING_SECRET is set. This route has no bearer session. Slack signs the exact raw request bytes, so the route parses the body as raw and verifies the HMAC before any JSON decoding. Deliveries are acked immediately and processed asynchronously, because Slack retries anything not acked within three seconds; retries are idempotent on (channel, message timestamp). Messages authored by the Median bot are ignored, which is what stops the mirror from echoing forever.
Request
- Base URLhttps://api.medianfi.com/api/v1
- Authnone required
Headers
Unix timestamp included in the signature base string; rejected beyond five minutes of skew.
Hex HMAC-SHA256 over "v0:{timestamp}:{raw body}", keyed with the app signing secret.
Request body
url_verification is the one-time Request URL handshake.
Echoed back verbatim during the url_verification handshake.
Slack workspace ID; joined with the channel to resolve the Median company.
The Slack event. Only message events are acted on; app_mention would arrive as a duplicate delivery of the same message.
Response
Delivery accepted. Returns the challenge during url_verification, otherwise an empty body. Always returned once the signature is valid, including when downstream processing fails, so Slack does not retry.
Changes
No recorded changes to this operation across all 110 revisions of this API.