Create red team spec
Create a new red team specification
What is Red Teaming?
Red teaming generates adversarial prompts designed to test your LLM application’s safety guardrails. Given a description of your application and its domain, it identifies potential undesirable behaviors and creates prompts that attempt to trigger them. Workflow:- Create a red team spec (this endpoint) describing your application
- Create a run to generate adversarial prompts
- Poll the status until complete
- Get the results containing behaviors and adversarial prompts
Authorizations
API Key authentication. Format: "Bearer YOUR_API_KEY"
Body
Request body for creating a red team spec
Name for the spec (will be converted to snake_case, must be unique within company)
Description of the domain or industry the application operates in (e.g., 'Healthcare', 'E-commerce', 'Financial services')
Description of the application being tested, including its purpose and key functionality
Optional specific security concerns or undesirable behaviors to focus on (e.g., 'Should not provide medical diagnoses')
Response
Red team spec created successfully
A red team specification defining the application context for adversarial prompt generation
Unique identifier for the red team spec
Name of the red team spec (auto-converted to snake_case)
Description of the domain or industry the application operates in
Description of the application being tested, including its purpose and functionality
Specific security concerns or behaviors to focus on during red teaming
Timestamp when the spec was created
Timestamp when the spec was last modified
ID of the company that owns this spec
Name of the company that owns this spec
ID of the user who created this spec
Email of the user who created this spec

