import Dataframer from 'dataframer';
const client = new Dataframer({
apiKey: 'My API Key',
});
const redTeamRun = await client.dataframer.redTeamRuns.create();
console.log(redTeamRun);{}Create a new red team run and submit to data_gen backend
import Dataframer from 'dataframer';
const client = new Dataframer({
apiKey: 'My API Key',
});
const redTeamRun = await client.dataframer.redTeamRuns.create();
console.log(redTeamRun);{}API Key authentication. Format: "Bearer YOUR_API_KEY"
The response is of type object.