Skip to main content
GET
/
api
/
workers
/
{workerId}
/
deployments
/
voice
/
{deploymentId}
/
outbound-campaigns
JavaScript
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>"
  }
]

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Response

List of outbound campaigns

id
string
required
status
string
required
data
object
required
batchSize
integer
required
batchIntervalMinutes
integer
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
deploymentId
string
required
workerId
string
required
teamId
string
required
name
string | null
description
string | null
additionalData
object
telephonyProvider
object
flowId
string | null
createdById
string | null