Skip to main content
GET
/
api
/
dataframer
/
red-team-runs
List red team runs
curl --request GET \
  --url https://df-api.dataframer.ai/api/dataframer/red-team-runs/ \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "red_team_spec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "spec_name": "<string>",
    "number_of_behaviors": 123,
    "number_of_prompts_per_behavior": 123,
    "model_name": "<string>",
    "status": "PENDING",
    "completed_at": "2023-11-07T05:31:56Z",
    "created_by_email": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
]
Use the spec_id query parameter to filter runs by a specific red team spec.

Authorizations

Authorization
string
header
required

API Key authentication. Format: "Bearer YOUR_API_KEY"

Query Parameters

spec_id
string<uuid>

Filter runs by red team spec ID

Response

List of red team runs

id
string<uuid>

Unique identifier for the run

red_team_spec_id
string<uuid>

ID of the red team spec

spec_name
string

Name of the associated spec

number_of_behaviors
integer

Number of behaviors generated

number_of_prompts_per_behavior
integer

Number of prompts per behavior

model_name
string

Model used for generation

status
enum<string>

Current status of the run

Available options:
PENDING,
PROCESSING,
SUCCEEDED,
FAILED,
CANCELED
completed_at
string<date-time> | null

When the run completed

created_by_email
string

Email of the creator

created_at
string<date-time>

When the run was created