infipostdocs
Provider settings

Twitch Settings

API settings for posting to Twitch chat

Settings Schema

When creating a post for Twitch, use the following settings schema:

json
{
  "settings": {
    "__type": "twitch",
    "messageType": "message",
    "announcementColor": "primary"
  }
}

Fields

FieldTypeRequiredDescription
__typestringYesMust be twitch
messageTypestringNoType of message to send
announcementColorstringNoColor for announcement messages

messageType

The type of message to send in Twitch chat.

ValueDescription
messageRegular chat message (default)
announcementAnnouncement message (highlighted in chat)

announcementColor

The color of the announcement banner. Only applies when messageType is announcement.

ValueDescription
primaryDefault purple color
blueBlue announcement
greenGreen announcement
orangeOrange announcement
purplePurple announcement

Complete Example

Regular Chat Message

json
{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-twitch-integration-id"
      },
      "value": [
        {
          "content": "Going live in 5 minutes! Today's stream: Ranked grind to Diamond 🎮",
          "image": []
        }
      ],
      "settings": {
        "__type": "twitch",
        "messageType": "message"
      }
    }
  ]
}

Announcement

json
{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-twitch-integration-id"
      },
      "value": [
        {
          "content": "🎉 HUGE NEWS! We just hit 10,000 followers! Thank you all so much for the support! Special stream tomorrow to celebrate!",
          "image": []
        }
      ],
      "settings": {
        "__type": "twitch",
        "messageType": "announcement",
        "announcementColor": "purple"
      }
    }
  ]
}

Green Announcement

json
{
  "type": "now",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-twitch-integration-id"
      },
      "value": [
        {
          "content": "✅ Giveaway winner announced! Congratulations to the lucky viewer! Check your DMs for prize details.",
          "image": []
        }
      ],
      "settings": {
        "__type": "twitch",
        "messageType": "announcement",
        "announcementColor": "green"
      }
    }
  ]
}