POST
/
api
/
workers
/
{workerId}
/
deployments
/
voice
/
{deploymentId}
/
make-batch-calls
JavaScript
import BrainbaseLabs from 'brainbase-labs';

const client = new BrainbaseLabs({
  apiKey: 'My API Key',
});

const response = await client.workers.deployments.voice.makeBatchCalls('deploymentId', {
  workerId: 'workerId',
  data: [{ foo: 'string' }],
});

console.log(response.message);
{
  "message": "<string>",
  "rowsProcessed": 123
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json
data
object[]
required
batch_size
number
batch_interval_minutes
number
condition
string | null
extractions
string | null
wsUrl
string
additional_data
string

Response

Batch calls started successfully

message
string
rowsProcessed
integer