import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
const outboundCampaigns = await client.workers.deployments.voice.outboundCampaigns.list('deploymentId', {
workerId: 'workerId',
});
console.log(outboundCampaigns);[
{
"id": "<string>",
"status": "<string>",
"data": {},
"batchSize": 123,
"batchIntervalMinutes": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deploymentId": "<string>",
"workerId": "<string>",
"teamId": "<string>",
"name": "<string>",
"description": "<string>",
"additionalData": {},
"telephonyProvider": {},
"flowId": "<string>",
"createdById": "<string>"
}
]import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
const outboundCampaigns = await client.workers.deployments.voice.outboundCampaigns.list('deploymentId', {
workerId: 'workerId',
});
console.log(outboundCampaigns);[
{
"id": "<string>",
"status": "<string>",
"data": {},
"batchSize": 123,
"batchIntervalMinutes": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deploymentId": "<string>",
"workerId": "<string>",
"teamId": "<string>",
"name": "<string>",
"description": "<string>",
"additionalData": {},
"telephonyProvider": {},
"flowId": "<string>",
"createdById": "<string>"
}
]API key authentication
List of outbound campaigns