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

console.log(embeds);
[
  {
    "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

Query Parameters

deploymentId
string

Filter logs by deployment id

flowId
string

Filter logs by flow id

sessionId
string

Filter logs by session id

Response

List of chat embed deployment logs

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