Setup
Connect your Slack workspace to Zexa in four steps:Open Slack settings in Zexa
Log in to the Zexa dashboard and navigate to Channels > Slack.
Connect your workspace
Click Connect Slack. You’ll be redirected to Slack’s OAuth authorisation page. Review the permissions requested and click Allow to authorise the Zexa app in your workspace.
Select a default channel
After authorisation, select the Slack channel where notifications should be sent by default. You can override this on a per-message basis using the
to field in the API.Send a Slack message via API
Send aPOST request to /messages with "channel": "slack" to post a message to your connected Slack workspace.
201 response with the message object:
Channel vs direct message
Theto field accepts two types of Slack destination IDs:
| Destination | ID prefix | Example | Use case |
|---|---|---|---|
| Public channel | C | C0123456789 | Team-wide alerts and announcements |
| Private channel | C | C9876543210 | Internal team notifications |
| Direct message | U | U0ABC123DEF | Personal alerts for a specific user |
C) to post to a channel, or a user ID (starting with U) to send a direct message to an individual workspace member.
The Zexa Slack app must be invited to any private channel before it can post there. In Slack, open the private channel and run
/invite @Zexa to grant access.Next steps
Webhooks
Configure webhooks to trigger Zexa messages — including Slack notifications — from external events.
Campaigns
Schedule and send bulk notifications across Slack and other channels simultaneously.
