Platforms
Slack
Publishing messages to Slack channels.
Slack
Slack supports two modes - bot token and webhook - with Block Kit layout support.
Connect
Connect Slack in the OwlStack dashboard:
Bot token mode:
- Go to Project Settings > Platforms > Slack
- Click Connect with Slack
- Authorize OwlStack and select a workspace
- Choose the target channel
Webhook mode:
- In your Slack workspace, create an incoming webhook
- Paste the webhook URL in the OwlStack dashboard
Publishing
use OwlStack\Enums\Platform;
$result = $client->publish($post, [Platform::Slack]);Options
| Option | Type | Description |
|---|---|---|
blocks | bool | Use Block Kit layout |
thread_ts | string | Reply in thread |
unfurl_links | bool | Unfurl URLs |
$result = $client->publish($post, [Platform::Slack], [
'blocks' => true,
'unfurl_links' => true,
]);Constraints
| Constraint | Value |
|---|---|
| Max text length | 40,000 characters |
| Formatter markup | mrkdwn |