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

const client = new BrainbaseLabs({
  apiKey: 'My API Key',
});

const voices = await client.workers.deploymentLogs.voice.list('workerId');

console.log(voices.data);
{
  "data": [
    {
      "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": {}
    }
  ],
  "pagination": {
    "page": 123,
    "limit": 123,
    "total": 123,
    "totalPages": 123,
    "hasNext": true,
    "hasPrev": true
  }
}

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

page
integer
default:1

Page number for pagination

Required range: x >= 1
limit
integer
default:100

Number of items per page

Required range: 1 <= x <= 100

Response

200
application/json

Paginated list of voice deployment logs

The response is of type object.