@videosdk.live/server-sdk
    Preparing search index...

    Class BatchCallsResource

    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.

    Index

    Per-number records for a batch.

    • Fetch a batch by id.

      Parameters

      • batchId: string

      Returns Promise<BatchCall>

    • 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.

      Parameters

      Returns BatchCallUpload