Skip to content

Message.broadcasted

Emitted each time a Message is broadcasted.

Message.broadcast emits Message.broadcasted when it completes on a Message.

PropertyValue
Emitted byMessage.broadcast
NounMessage
WakesNone.

Payload

Each delivery is an Event record. data holds what Message.broadcast returns.

FieldTypeRequiredDescription
namestringrequiredMessage.broadcasted.
atdatetimerequiredWhen it happened.
seqintegerIts position in the namespace, one more than the Event before; any seq is a cursor into the history.
datajsonrequiredThe Thing as the Action left it.
data.messageslist of MessagerequiredOne sent Message per Contact.
data.messageMessagerequiredThe Message broadcast.
data.message.mediumstringrequiredOne of email, sms, voice, or chat.
data.message.directionstringrequiredOne of inbound or outbound.
data.message.bodytextrequiredWhat it says.
data.message.fromstringThe sender: an address, a number, or a Channel id.
data.message.tostringThe recipient: an address, a number, or a Person id.
data.message.subjectstringThe subject line, for email.
data.message.purposestringWhy it goes out, such as onboarding; consent and suppression rules read it.

Example

JSON
{
  "$id": "https://api.sb/routewise.dev/events/event_1",
  "$type": "Event",
  "name": "Message.broadcasted",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "messages": [
      {
        "$id": "https://api.sb/routewise.dev/messages/message_1",
        "$type": "Message",
        "medium": "email",
        "direction": "inbound",
        "body": "Example body"
      }
    ],
    "message": {
      "$id": "https://api.sb/routewise.dev/messages/message_1",
      "$type": "Message",
      "medium": "email",
      "direction": "inbound",
      "body": "Example body",
      "from": "Example from",
      "to": "Example to",
      "subject": "Example subject",
      "purpose": "Example purpose"
    }
  },
  "seq": 1
}