Skip to main content
GET
/
api
/
team
/
exports
/
{exportId}
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.retrieve('exportId');

console.log(_export.id);
{
  "id": "<string>",
  "status": "PENDING",
  "format": "CSV",
  "logType": "<string>",
  "rowCount": 123,
  "fileSizeBytes": 123,
  "downloadUrl": "<string>",
  "errorMessage": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

exportId
string
required

The export ID returned from POST /api/team/exports

Response

Export details

id
string
status
enum<string>
Available options:
PENDING,
PROCESSING,
COMPLETED,
FAILED,
EXPIRED
format
enum<string>
Available options:
CSV,
JSON
logType
string | null
rowCount
integer | null
fileSizeBytes
number | null
downloadUrl
string | null

Presigned S3 download URL (24h TTL), present when status is COMPLETED

errorMessage
string | null
createdAt
string<date-time>
expiresAt
string<date-time> | null