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

console.log(embed.id);
{
  "id": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "sessionId": "<string>",
  "messages": {},
  "status": "<string>",
  "messageCount": 123,
  "duration": 123,
  "userAgent": "<string>",
  "originUrl": "<string>",
  "toolCalls": {}
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
logId
string
required

Response

Chat embed deployment log record

id
string
required
startTime
string<date-time> | null
endTime
string<date-time> | null
sessionId
string | null
messages
object
status
string | null
messageCount
integer | null
duration
integer | null
userAgent
string | null
originUrl
string | null
toolCalls
object