Skip to main content
PUT
/
api
/
workers
/
{workerId}
/
deployments
/
voicev1
/
{deploymentId}
JavaScript
import BrainbaseLabs from 'brainbase-labs';

const client = new BrainbaseLabs({
  apiKey: 'My API Key',
});

const voiceV1Deployment = await client.workers.deployments.voicev1.update('deploymentId', {
  workerId: 'workerId',
});

console.log(voiceV1Deployment.id);
{
  "id": "<string>",
  "phoneNumber": "<string>",
  "objective": "<string>",
  "startSentence": "<string>",
  "endSentence": "<string>",
  "voiceId": "<string>",
  "language": "<string>",
  "allowedTransferNumbers": "<string>",
  "functions": {},
  "model": "<string>",
  "resourceKeys": "<string>",
  "wsBaseUrl": "<string>"
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json
name
string
phoneNumber
string
flowId
string
objective
string
startSentence
string | null
endSentence
string | null
voiceId
string | null
language
string | null
allowedTransferNumbers
string[]
functions
string | null
model
string | null
resourceKeys
string[]
wsBaseUrl
string | null
config
string
extractions
object

Response

Updated voice v1 deployment

id
string
required
phoneNumber
string
required
objective
string
required
allowedTransferNumbers
string
required
resourceKeys
string
required
startSentence
string | null
endSentence
string | null
voiceId
string | null
language
string | null
functions
object | null
model
string | null
wsBaseUrl
string | null
I