import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: 'My API Key',
});
const flows = await client.workers.flows.list('workerId');
console.log(flows);
[
{
"id": "<string>",
"version": 123,
"name": "<string>",
"label": "<string>",
"code": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"workerId": "<string>",
"variables": {}
}
]
import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: 'My API Key',
});
const flows = await client.workers.flows.list('workerId');
console.log(flows);
[
{
"id": "<string>",
"version": 123,
"name": "<string>",
"label": "<string>",
"code": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"workerId": "<string>",
"variables": {}
}
]
API key authentication
List of flows
The response is of type object[]
.