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": {},
"Telephony_source": "<string>",
"status": "<string>",
"call_sid": "<string>",
"duration": 123
}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": {},
"Telephony_source": "<string>",
"status": "<string>",
"call_sid": "<string>",
"duration": 123
}API key authentication
Comma-separated list of fields to include in the response. When omitted, all fields are returned. The id field is always included. Allowed fields: id, createdAt, updatedAt, workerId, deploymentId, flowId, bbEngineSessionId, extractionsData, metadata, flowSnapshot, sessionLogData, type, startTime, endTime, externalCallId, direction, fromNumber, toNumber, transcription, messages, recordingUrl, data, Telephony_source, status, call_sid, duration, successResults
Voice deployment log record