infipostdocs
Provider settings

Slack Settings

API settings for posting to Slack

Settings Schema

When posting a message to Slack, use the following settings schema:

json
{
  "settings": {
    "__type": "slack",
    "channel": "channel-id"
  }
}

Fields

FieldTypeRequiredDescription
__typestringYesMust be slack
channelstringYesSlack channel ID

channel

The Slack channel ID where the message will be posted. This is required.


Complete Example

Simple Message

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

json
{
  "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.postiz.com/metrics.png"
            }
          ]
        }
      ],
      "settings": {
        "__type": "slack",
        "channel": "C0123456789"
      }
    }
  ]
}

Team Announcement

json
{
  "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"
      }
    }
  ]
}