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

const client = new BrainbaseLabs({
  apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});

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

  console.log(response.message);
}

main();
{
  "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

Response

200
application/json

Batch calls started successfully

The response is of type object.