GET
/
api
/
workers
/
{workerId}
/
deployments
/
chat
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 chats = await client.workers.deployments.chat.list('workerId');

  console.log(chats);
}

main();
[
  {
    "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

200
application/json

List of chat deployments

The response is of type object[].