Authorizations
API key authentication
import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
  apiKey: 'My API Key',
});
const chat = await client.workers.deploymentLogs.chat.retrieve('logId', { workerId: 'workerId' });
console.log(chat.id);{
  "id": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "userId": "<string>",
  "userName": "<string>",
  "userEmail": "<string>",
  "messages": {},
  "rating": 123,
  "feedback": "<string>",
  "messageCount": 123,
  "duration": 123
}import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
  apiKey: 'My API Key',
});
const chat = await client.workers.deploymentLogs.chat.retrieve('logId', { workerId: 'workerId' });
console.log(chat.id);{
  "id": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "userId": "<string>",
  "userName": "<string>",
  "userEmail": "<string>",
  "messages": {},
  "rating": 123,
  "feedback": "<string>",
  "messageCount": 123,
  "duration": 123
}API key authentication