import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: 'My API Key',
});
const voiceV1Deployments = await client.workers.deployments.voicev1.list('workerId');
console.log(voiceV1Deployments);
[
{
"id": "<string>",
"phoneNumber": "<string>",
"objective": "<string>",
"startSentence": "<string>",
"endSentence": "<string>",
"voiceId": "<string>",
"language": "<string>",
"allowedTransferNumbers": "<string>",
"functions": {},
"model": "<string>",
"resourceKeys": "<string>",
"wsBaseUrl": "<string>"
}
]
import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: 'My API Key',
});
const voiceV1Deployments = await client.workers.deployments.voicev1.list('workerId');
console.log(voiceV1Deployments);
[
{
"id": "<string>",
"phoneNumber": "<string>",
"objective": "<string>",
"startSentence": "<string>",
"endSentence": "<string>",
"voiceId": "<string>",
"language": "<string>",
"allowedTransferNumbers": "<string>",
"functions": {},
"model": "<string>",
"resourceKeys": "<string>",
"wsBaseUrl": "<string>"
}
]
API key authentication
List of voice v1 deployments
The response is of type object[]
.