POST
/
api
/
workers
/
{workerId}
/
deployments
/
{deploymentId}
/
voice
/
customWebhooks
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() {
  await client.workers.deployments.voice.customWebhooks.create('deploymentId', {
    workerId: 'workerId',
    fields: 'fields',
    method: 'method',
    url: 'url',
  });
}

main();

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json

Response

201

Custom webhook created successfully