POST
/
api
/
workers
/
{workerId}
/
deployments
/
{deploymentId}
/
voice
/
customWebhooks
JavaScript
import BrainbaseLabs from 'brainbase-labs';

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

await client.workers.deployments.voice.customWebhooks.create('deploymentId', {
  workerId: 'workerId',
  fields: 'fields',
  method: 'GET',
  url: 'url',
});

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json
url
string
required
method
enum<string>
required
Available options:
GET,
POST,
PUT,
PATCH
fields
string
required
name
string
active
boolean

Response

Custom webhook created successfully