Shared Chat launched last year as a feature within Stream Together to combine multiple streamer communities into a unified chat experience. As usage continues to grow, we are incorporating feedback from developers, streamers, and viewers regarding how Shared Chat interacts with chatbots. One particular observation is that some programmatic chat messages sent through the Twitch API can appear irrelevant or lack context if they are sent to all channels during a Shared Chat session.
What’s changing?
A new optional body parameter (for_source_only
) has been added to the Send Chat Message API endpoint to indicate, during a Shared Chat session, whether the message should be sent only in the source channel (true
) or all channels (false
).
The behavior of this body parameter will change depending on the type of access token provided.
User Access Token: When a user access token is used, for_source_only
cannot be specified and developers can expect a 400 error response. This is to ensure that chatters using third-party chat clients, for example, will always have their message sent to all channels similar to the experience on the Twitch website or app.
App Access Token: When an app access token is used, for_source_only
can be specified to indicate where the message should be sent in the source channel or all channels in the Shared Chat session.
The current default value for this new body parameter has been set to false so that there is no disruption to applications at this time. However, the default value will be changed to true on May 19, 2025. This window is meant to allow developers to evaluate the behavior they prefer for their application and explicitly take action if needed.
How does this affect response payloads?
- There are no changes to the response payload for the “Send Chat Message” API.
- A “is_source_only” field has been added to the Channel Chat Message Event payload for EventSub and will only be included during Shared Chat sessions.
- A “source-only” PRIVMSG tag has been added to IRC and will only be included during Shared Chat sessions.
Who will be impacted by these changes and what action is needed?
This update applies to all developers who are using an app access token with the “Send Chat Message” API endpoint. Developers should review the details above and decide whether the for_source_only
body parameter should be added to their API calls with a value of false before May 19, 2025 if their chatbot messages should continue to be sent to all channels in a Shared Chat session.