SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How do I publish a message to a Message Stream?

Objective

This article helps you publish a JSON message to a Sync Message Stream directly from the Twilio Console, which is useful for testing that your subscribed clients receive what you expect.

 

Product

Twilio Sync

 

Environment

Twilio Console

 

User Account Permission/Role(s) Required

Your user role must allow listing Twilio Sync Services to open the Streams tab, and updating them to publish a message.

 

Procedure

  1. In the Twilio Console, select Builder tools in the left sidebar.
  2. Select Sync, then Services.
  3. In the Name column, select the Service that holds the Stream.
  4. Select the Streams tab.
  5. Open the Stream's row actions menu and select Publish a message.
  6. In Message data (JSON), enter the JSON payload to send. This field is required.
  7. Select Publish. The console confirms that a message was published to that Stream.

 

Additional Information

  • The payload must be valid JSON. If it is not, the form reports "Enter valid JSON." and nothing is sent.
  • A Stream message payload can be up to 4096 bytes, a quarter of the 16 KiB limit that applies to Document, List Item, and Map Item data.
  • Messages are ephemeral. Subscribers receive them in real time, but they cannot be read back, updated, or deleted afterwards, so the console shows no message history.
  • Publishing does not change the Stream itself, so the table's dates are unaffected.

 

This content was generated by AI and reviewed, edited, and verified by a human.

Have more questions? Submit a request
Powered by Zendesk