---
title: Receive Slack events
project: OpenSync
version: 1.0
section: recipes
language: en
license: MIT
url: https://totaljs.es/docs/opensync/1-0/recipes/slack-events/
updated: 2026-11-19T09:22:09.965Z
---

# Receive Slack events

> Forward Slack events to your clients with the Slack extension.

The **Slack** extension answers Slack's address check and passes every other Slack event to the channel `slack`. It comes with the source install; for Docker, add it first. See [Extensions](../../guides/extensions/).

## Connect Slack

**1.** Check that **Slack** is on the **Extensions** page.

**2.** In your Slack app settings, set the request URL of the event subscriptions to:

```text
https://sync.example.com/sync/slack/
```

Slack first sends a `url_verification` request. The extension answers with the challenge, so Slack accepts the address:

```bash
curl -X POST -H "Content-Type: application/json" -d '{"type":"url_verification","challenge":"3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P"}' "https://sync.example.com/sync/slack/"
```

```json
"3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P"
```

## Receive the events

Connect a client with a token that can read `slack`. Each event arrives as a message on the channel `slack`, with the Slack JSON in `body`:

```json
{"id":"24nb4006pu50d","type":"application/json","channel":"slack","method":"POST","headers":{"host":"sync.example.com","user-agent":"curl/8.7.1","accept":"*/*","content-type":"application/json","content-length":"78"},"ua":"","query":{},"body":{"type":"event_callback","event":{"type":"message","text":"Hello from Slack"}},"ts":"2026-11-19T08:04:52.021Z","ip":"203.0.113.10","files":[]}
```

## Other webhooks

Any service that can call a URL can send to OpenSync without an extension. Point its webhook to a channel, for example `https://sync.example.com/sync/payments/`, and your clients receive each call. See [Send data over HTTP](../../reference/send-http/).
