Wait for Broadcast Job
ethora-wait-broadcast-job-v2Block until a broadcast job reaches a terminal state (completed or failed) or until timeoutMs — read-only polling wrapper around ethora-chats-broadcast-job-v2. Returns { done, state, job }, or { done: false, reason: "timeout" } on timeout.
Auth: app-token mode OR B2B mode with an explicit appId — must match the auth used to enqueue the job. Errors: 401/403 wrong auth; 404 unknown jobId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | 24-char hex appId the job belongs to. Required in B2B mode unless already set via `ethora-app-select`; ignored in app-token mode. | |
| jobId | Yes | Job id returned by `ethora-chats-broadcast-v2`. | |
| timeoutMs | No | Maximum time to wait, in milliseconds. Default 60000. Caps at 300000 (5 min). | |
| intervalMs | No | Delay between status checks, in milliseconds. Default 1000. Lower = more responsive but more API calls. |