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 _export = await client.team.exports.create({
endDate: 'endDate',
format: 'format',
startDate: 'startDate',
});
console.log(_export.id);{
"id": "<string>",
"status": "PENDING",
"createdAt": "2023-11-07T05:31:56Z"
}Queues an async export of deployment logs to CSV or JSON. The export is processed in the background and uploaded to S3. Poll GET /api/team/exports/ for status and download URL. Max one active export per team. Max 90-day date range.
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 _export = await client.team.exports.create({
endDate: 'endDate',
format: 'format',
startDate: 'startDate',
});
console.log(_export.id);{
"id": "<string>",
"status": "PENDING",
"createdAt": "2023-11-07T05:31:56Z"
}API key authentication