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
- In the Twilio Console, select Builder tools in the left sidebar.
- Select Sync, then Services.
- In the Name column, select the Service that holds the Stream.
- Select the Streams tab.
- Open the Stream's row actions menu and select Publish a message.
- In Message data (JSON), enter the JSON payload to send. This field is required.
- 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.