GET
/
api
/
workers
/
{workerId}
/
deploymentLogs
/
voice
import BrainbaseLabs from 'brainbase-labs';

const client = new BrainbaseLabs({
  apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const logs = await client.workers.deploymentLogs.voice.list('workerId');

  console.log(logs);
}

main();
[
  {
    "id": "<string>",
    "startTime": "2023-11-07T05:31:56Z",
    "endTime": "2023-11-07T05:31:56Z",
    "direction": "<string>",
    "fromNumber": "<string>",
    "toNumber": "<string>",
    "transcription": "<string>",
    "messages": {},
    "recordingUrl": "<string>",
    "data": {}
  }
]

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required

Query Parameters

deploymentId
string

Filter logs by deployment id

flowId
string

Filter logs by flow id

Response

200
application/json
List of voice deployment logs
id
string
required
startTime
string | null
endTime
string | null
direction
string | null
fromNumber
string | null
toNumber
string | null
transcription
string | null
messages
object | null
recordingUrl
string | null
data
object | null