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 outboundCampaign = await client.workers.deployments.voice.outboundCampaigns.retrieve('campaignId', {
workerId: 'workerId',
deploymentId: 'deploymentId',
});
console.log(outboundCampaign.id);{
"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 outboundCampaign = await client.workers.deployments.voice.outboundCampaigns.retrieve('campaignId', {
workerId: 'workerId',
deploymentId: 'deploymentId',
});
console.log(outboundCampaign.id);{
"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
Campaign details