Skip to main content
POST
/
api
/
workers
/
{workerId}
/
deployments
/
voice
/
{deploymentId}
/
stop-batch-calls
JavaScript
import BrainbaseLabs from 'brainbase-labs';

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

const response = await client.workers.deployments.voice.stopBatchCalls('deploymentId', {
  workerId: 'workerId',
});

console.log(response.message);
{
  "message": "Successfully stopped batch calls for deployment abc123",
  "removedItems": [
    {}
  ],
  "removedCount": 5
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required

The worker ID

deploymentId
string
required

The deployment ID

Response

Successfully stopped batch calls

message
string
Example:

"Successfully stopped batch calls for deployment abc123"

removedItems
object[]

Queue items that were removed

removedCount
integer
Example:

5

I