Cancel a running/scheduled batch.
Launch or schedule a batch from a parsed batchId, or save a new draft.
List batches (paginated, async-iterable).
Update an editable batch (draft/scheduled/parsed).
Upload a recipients file and parse it, returning a handle that resolves
with the batch once its rows are ready to launch. Reads the file at
filePath (.csv, .xls, or .xlsx, max 5 MB), uploads it, starts
parsing, and — unless waitForParse is false — waits until the batch
reaches parsed, emitting parsing/parsed (or error) along the way.
Pass batchId to replace the file on an existing batch. await the handle
for the parsed BatchCall, or subscribe with .on(...). Throws /
emits error if the file type or size is rejected, the upload fails, or
parsing fails.
Batch calls — bulk outbound phone campaigns.
Lifecycle: upload a recipients file (it is uploaded and parsed in one call), then create to launch or schedule the campaign. Track and manage it with list/get/update/cancel, inspect per-number results via
records, and get a status breakdown with stats.