Spanish Total.js
English
Documentation For AI agents
Contents

Receive Slack events

Forward Slack events to your clients with the Slack extension.

.md GitHub
On this page

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.

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:

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

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

curl -X POST -H "Content-Type: application/json" -d '{"type":"url_verification","challenge":"3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P"}' "https://sync.example.com/sync/slack/"
"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:

{"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.

Made in Europe