Voice V1 Deployments
Run a campaign with provided data
Assets
Voice Deployment Logs
Voice Deployments
Flows
Integrations
Tests
Voice V1 Deployments
- GETGet all voice v1 deployments for a worker
- POSTCreate a new voice v1 deployment
- GETGet a single voice v1 deployment
- PUTUpdate a voice v1 deployment
- DELDelete a voice v1 deployment
- POSTCreate a new campaign for a voice v1 deployment
- POSTMake batch calls for a voice v1 deployment
- POSTRun a campaign with provided data
- GETGet a campaign by ID
- GETGet specific campaign data by ID
- PUTUpdate specific campaign data by ID
Voice V1 Deployments
Run a campaign with provided data
POST
/
api
/
workers
/
{workerId}
/
deployments
/
voicev1
/
{deploymentId}
/
campaigns
/
{campaignId}
/
run
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() {
await client.workers.deployments.voicev1.campaigns.run('campaignId', {
workerId: 'workerId',
deploymentId: 'deploymentId',
data: [{ id: 'id', phoneNumber: 'phoneNumber' }],
});
}
main();
Authorizations
API key authentication
Body
application/json
Response
200
_mintlify/placeholder
Campaign started successfully
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() {
await client.workers.deployments.voicev1.campaigns.run('campaignId', {
workerId: 'workerId',
deploymentId: 'deploymentId',
data: [{ id: 'id', phoneNumber: 'phoneNumber' }],
});
}
main();