Skip to main content
POST
/
api
/
echo
/
agents
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
});

await client.voiceAnalysis.echo.agents.create({
  goals: 'goals',
  name: 'name',
  purpose: 'purpose',
  type: 'CHAT',
});

Authorizations

x-api-key
string
header
required

API key authentication

Body

application/json
name
string
required
type
enum<string>
required
Available options:
CHAT,
CHAT_EMBED,
VOICE,
SMS,
WHATSAPP,
API
purpose
string
required
goals
string
required
description
string | null
deploymentId
string | null
testSuiteId
string | null
scorecardIds
string[]
echoScorecardIds
string[]

Response

201

Created test agent