GET
/
api
/
team
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 team = await client.team.retrieve();

  console.log(team.id);
}

main();
{
  "id": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "teamOwnerId": "<string>"
}

Authorizations

x-api-key
string
header
required

API key authentication

Query Parameters

includeIntegrations
boolean

Set to true to also include integrations in the response.

Response

200
application/json

Team details

The response is of type object.