Broadcast Message
ethora-chats-broadcast-v2Enqueue an asynchronous broadcast job posting a message to one or more chat rooms of an app — returns a jobId; messages are not sent synchronously. Targeting is exclusive: allRooms, chatIds, or chatNames, not a mix.
Auth: app-token mode OR B2B mode with an explicit appId. Errors: 401/403 wrong auth; 400 no target or conflicting targets; 404 unknown appId or room. Related: track with ethora-wait-broadcast-job-v2.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Plain-text message body to broadcast to the targeted rooms. | |
| appId | No | 24-char hex appId to broadcast in. Required in B2B mode unless already set via `ethora-app-select`; ignored in app-token mode (the token determines the app). | |
| chatIds | No | Explicit list of chat ids to target. Mutually exclusive with `allRooms` and `chatNames`. | |
| allRooms | No | If true, broadcast to every room in the app. Mutually exclusive with `chatIds` and `chatNames`. | |
| chatNames | No | Explicit list of chat JIDs or localparts to target. Mutually exclusive with `allRooms` and `chatIds`. |