Voice V1 Deployments
Get a single voice v1 deployment
Assets
Voice Deployment Logs
Voice Deployments
Flows
Integrations
Tests
Voice V1 Deployments
- GETGet all voice v1 deployments for a worker
- POSTCreate a new voice v1 deployment
- GETGet a single voice v1 deployment
- PUTUpdate a voice v1 deployment
- DELDelete a voice v1 deployment
- POSTCreate a new campaign for a voice v1 deployment
- POSTMake batch calls for a voice v1 deployment
- POSTRun a campaign with provided data
- GETGet a campaign by ID
- GETGet specific campaign data by ID
- PUTUpdate specific campaign data by ID
Voice V1 Deployments
Get a single voice v1 deployment
GET
/
api
/
workers
/
{workerId}
/
deployments
/
voicev1
/
{deploymentId}
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
)
voice_v1_deployment = client.workers.deployments.voicev1.retrieve(
deployment_id="deploymentId",
worker_id="workerId",
)
print(voice_v1_deployment.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
API key authentication
Response
200
application/json
Voice v1 deployment details
The response is of type object
.
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
)
voice_v1_deployment = client.workers.deployments.voicev1.retrieve(
deployment_id="deploymentId",
worker_id="workerId",
)
print(voice_v1_deployment.id)
{
"id": "<string>",
"phoneNumber": "<string>",
"objective": "<string>",
"startSentence": "<string>",
"endSentence": "<string>",
"voiceId": "<string>",
"language": "<string>",
"allowedTransferNumbers": "<string>",
"functions": {},
"model": "<string>",
"resourceKeys": "<string>",
"wsBaseUrl": "<string>"
}