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 log = await client.workers.deploymentLogs.voice.retrieve('logId', { workerId: 'workerId' });
console.log(log.id);
{
"id": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"externalCallId": "<string>",
"direction": "<string>",
"fromNumber": "<string>",
"toNumber": "<string>",
"transcription": "<string>",
"messages": {},
"recordingUrl": "<string>",
"data": {}
}
API key authentication
Voice deployment log record
The response is of type object
.
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 log = await client.workers.deploymentLogs.voice.retrieve('logId', { workerId: 'workerId' });
console.log(log.id);
{
"id": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"externalCallId": "<string>",
"direction": "<string>",
"fromNumber": "<string>",
"toNumber": "<string>",
"transcription": "<string>",
"messages": {},
"recordingUrl": "<string>",
"data": {}
}
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 log = await client.workers.deploymentLogs.voice.retrieve('logId', { workerId: 'workerId' });
console.log(log.id);
{
"id": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"externalCallId": "<string>",
"direction": "<string>",
"fromNumber": "<string>",
"toNumber": "<string>",
"transcription": "<string>",
"messages": {},
"recordingUrl": "<string>",
"data": {}
}
API key authentication
Voice deployment log record
The response is of type object
.
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 log = await client.workers.deploymentLogs.voice.retrieve('logId', { workerId: 'workerId' });
console.log(log.id);
{
"id": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"externalCallId": "<string>",
"direction": "<string>",
"fromNumber": "<string>",
"toNumber": "<string>",
"transcription": "<string>",
"messages": {},
"recordingUrl": "<string>",
"data": {}
}