POST
/
api
/
voice-analysis
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 response = await client.voiceAnalysis.analyze();

console.log(response.summary);
{
  "summary": {
    "totalCalls": 123,
    "totalMinutes": 123,
    "totalTransfers": 123,
    "totalTransferMinutes": 123,
    "averageCallDuration": 123
  }
}

Authorizations

x-api-key
string
header
required

API key authentication

Body

application/json

Response

200
application/json

Voice deployment analysis results

The response is of type object.