Skip to main content
POST
/
api
/
team
/
exports
JavaScript
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"
}

Authorizations

x-api-key
string
header
required

API key authentication

Body

application/json
format
string
required
startDate
string
required
endDate
string
required
logType
string | null
workerId
string
deploymentId
string
fields
string[]
filtersJson
object

Response

Export job created and queued

id
string
status
enum<string>
Available options:
PENDING
createdAt
string<date-time>