GET
/
api
/
workers
/
{workerId}
/
deploymentLogs
/
chat
/
{logId}
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 chat = await client.workers.deploymentLogs.chat.retrieve('logId', { workerId: 'workerId' });

  console.log(chat.id);
}

main();
{
  "id": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "userId": "<string>",
  "userName": "<string>",
  "userEmail": "<string>",
  "messages": {},
  "sessionData": {},
  "rating": 123,
  "feedback": "<string>",
  "messageCount": 123,
  "duration": 123
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
logId
string
required

Response

200
application/json

Chat deployment log record

The response is of type object.