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

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

const chats = await client.workers.deployments.chat.list('workerId');

console.log(chats);
[
  {
    "id": "<string>",
    "allowedUsers": "<string>",
    "welcomeMessage": "<string>",
    "llmModel": "<string>",
    "modelConfig": {},
    "chatAgentId": "<string>"
  }
]

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required

Response

List of chat deployments

id
string
required
allowedUsers
string
required
modelConfig
object
required
chatAgentId
string
required
welcomeMessage
string | null
llmModel
string | null