Assets
Chat Deployment Logs
Chat Deployments
Voice Deployments
- GETList custom webhooks for a deployment
- POSTCreate a new custom webhook for voice deployment
- GETGet a specific custom webhook
- DELDelete a custom webhook
- PATCHUpdate a custom webhook
- GETGet all voice deployments for a worker
- POSTCreate a new voice deployment
- GETGet a single voice deployment
- DELDelete a voice deployment
- PATCHUpdate a voice deployment
- POSTMake batch calls for a voice deployment
Voice Deployment Logs
Flows
Integrations
Folders
Resources
Tests
Voice V1 Deployments
- GETGet all voice v1 deployments for a worker
- POSTCreate a new voice v1 deployment
- GETGet a single voice v1 deployment
- PUTUpdate a voice v1 deployment
- DELDelete a voice v1 deployment
- POSTCreate a new campaign for a voice v1 deployment
- POSTMake batch calls for a voice v1 deployment
- POSTRun a campaign with provided data
- GETGet a campaign by ID
- GETGet specific campaign data by ID
- PUTUpdate specific campaign data by ID
Folders
Get all resources in a folder
GET
/
api
/
workers
/
{workerId}
/
folders
/
{folderId}
/
resources
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 resources = await client.workers.folders.listResources('folderId', { workerId: 'workerId' });
console.log(resources);
}
main();
[
{
"id": "<string>",
"ragType": "FILE",
"lastUpdated": "2023-11-07T05:31:56Z",
"updateFrequency": "<string>",
"rawLink": "<string>",
"key": "<string>",
"s3FilePath": "<string>",
"imageS3FilePath": "<string>",
"signedS3FilePath": "<string>",
"numScrolls": 123,
"fileName": "<string>",
"mimeType": "<string>",
"status": "STARTED",
"processingError": "<string>",
"graphStatus": {},
"size": 123,
"uploadedAt": "2023-11-07T05:31:56Z",
"folderId": "<string>"
}
]
Authorizations
API key authentication
Response
200
application/json
List of resources in the folder
The response is of type object[]
.
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 resources = await client.workers.folders.listResources('folderId', { workerId: 'workerId' });
console.log(resources);
}
main();
[
{
"id": "<string>",
"ragType": "FILE",
"lastUpdated": "2023-11-07T05:31:56Z",
"updateFrequency": "<string>",
"rawLink": "<string>",
"key": "<string>",
"s3FilePath": "<string>",
"imageS3FilePath": "<string>",
"signedS3FilePath": "<string>",
"numScrolls": 123,
"fileName": "<string>",
"mimeType": "<string>",
"status": "STARTED",
"processingError": "<string>",
"graphStatus": {},
"size": 123,
"uploadedAt": "2023-11-07T05:31:56Z",
"folderId": "<string>"
}
]
Assistant
Responses are generated using AI and may contain mistakes.