POST
/
api
/
workers
/
{workerId}
/
deployments
/
voicev1
/
{deploymentId}
/
campaigns
import os
from brainbase_labs import BrainbaseLabs

client = BrainbaseLabs(
    api_key=os.environ.get("BRAINBASE_LABS_API_KEY"),  # This is the default and can be omitted
)
campaign = client.workers.deployments.voicev1.campaigns.create(
    deployment_id="deploymentId",
    worker_id="workerId",
)
print(campaign.id)
{
  "id": "<string>",
  "status": "RUNNING",
  "steps": [
    {}
  ]
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json
steps
object[]

Array of campaign steps

Response

201
application/json
Campaign created successfully
id
string
status
enum<string>
Available options:
RUNNING,
COMPLETED,
FAILED
steps
object[]