import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
await client.workers.deployments.voicev1.makeBatchCalls('deploymentId', {
workerId: 'workerId',
data: [{ id: 'id', phoneNumber: 'phoneNumber' }],
});import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
await client.workers.deployments.voicev1.makeBatchCalls('deploymentId', {
workerId: 'workerId',
data: [{ id: 'id', phoneNumber: 'phoneNumber' }],
});API key authentication
Array of data objects to process in batches, each requiring at least an id and phoneNumber
Show child attributes
Optional condition to evaluate for processing data. Supports template variables like {{variableName}}
Definitions of data to extract during calls, with each key representing a field to extract
Show child attributes
Number of items to process in each batch (default 10)
Time interval between batches in minutes (default 5)
Webhook URL to receive events when calls complete or extract data
Additional data to pass with each request that will be available during the call
Show child attributes
Batch calls started successfully