Skip to main content
POST
Create Custom Harness

Query Parameters

team_id
string<uuid> | null

Team ID (required)

Body

application/json

Request model for creating a custom harness.

name
string
required
Required string length: 1 - 255
agent_id
string<uuid>
required
id
string<uuid> | null
description
string | null
persona_ids
string<uuid>[]
policy_ids
string<uuid>[]
system_prompt
string | null

AUT description or system prompt for harness generation. If not provided, agent description will be used.

Response

Successful Response

Domain model for a custom harness (test configuration).

A custom harness is a test configuration that combines an agent, personas, and policies. The backend generates evaluation prompts based on this configuration.

Stored as metadata.json in S3.

id
string<uuid>
required
team_id
string<uuid>
required
name
string
required
agent_id
string<uuid>
required
created_at
integer
required
updated_at
integer
required
created_by
string<uuid>
required
description
string | null
persona_ids
string<uuid>[]
policy_ids
string<uuid>[]
status
enum<string>
default:draft

Status values for custom harnesses.

Available options:
draft,
active,
archived,
failed
workflow_id
string<uuid> | null

Reference to the latest workflow that generated this harness. Enables lookup of workflow status by harness_id. Supports future 'regenerate harness' scenarios.

s3_key
string | null
generated_at
integer | null
prompt_count
integer | null
creation_error
string | null
Last modified on April 21, 2026