Slack Settings
API settings for posting to Slack
Settings Schema
When posting a message to Slack, use the following settings schema:
{
"settings": {
"__type": "slack",
"channel": "channel-id"
}
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
__type | string | Yes | Must be slack |
channel | string | Yes | Slack channel ID |
channel
The Slack channel ID where the message will be posted. This is required.
info
How to get a Slack channel ID:
- Right-click on the channel name in Slack
- Click "View channel details"
- Scroll to the bottom - the Channel ID is displayed there
- Or, the channel ID is in the URL when viewing a channel:
https://app.slack.com/client/WORKSPACE/CHANNEL_ID
Complete Example
Simple Message
{
"type": "schedule",
"date": "2024-12-14T10:00:00.000Z",
"shortLink": false,
"tags": [],
"posts": [
{
"integration": {
"id": "your-slack-integration-id"
},
"value": [
{
"content": "🎉 *New Release v2.0*\n\nWe're excited to announce our latest update!\n\n• New dashboard design\n• Improved performance\n• Bug fixes\n\nCheck it out: https://example.com/release",
"image": []
}
],
"settings": {
"__type": "slack",
"channel": "C0123456789"
}
}
]
}
Message with Image
{
"type": "schedule",
"date": "2024-12-14T10:00:00.000Z",
"shortLink": false,
"tags": [],
"posts": [
{
"integration": {
"id": "your-slack-integration-id"
},
"value": [
{
"content": "📊 *Weekly Metrics Report*\n\nHere's our performance this week:",
"image": [
{
"id": "metrics-image-id",
"path": "https://uploads.sipstory.tech/metrics.png"
}
]
}
],
"settings": {
"__type": "slack",
"channel": "C0123456789"
}
}
]
}
Team Announcement
{
"type": "now",
"date": "2024-12-14T10:00:00.000Z",
"shortLink": false,
"tags": [],
"posts": [
{
"integration": {
"id": "your-slack-integration-id"
},
"value": [
{
"content": ":mega: *Team Update*\n\n> Reminder: All-hands meeting tomorrow at 2 PM\n\n*Agenda:*\n1. Q4 Review\n2. 2025 Planning\n3. Open Q&A\n\nSee you there! :wave:",
"image": []
}
],
"settings": {
"__type": "slack",
"channel": "C9876543210"
}
}
]
}
info
Slack supports its own formatting syntax:
*bold*for bold_italic_for italic~strikethrough~forstrikethrough:emoji_name:for emojis> quotefor quotes`code`for inline code