Skip to main content
POST
/
v1
/
custom-harnesses
Create Custom Harness
curl --request POST \
  --url https://api.example.com/v1/custom-harnesses/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": 123,
  "updated_at": 123,
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "description": "<string>",
  "persona_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "policy_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "status": "draft",
  "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "s3_key": "<string>",
  "generated_at": 123,
  "prompt_count": 123,
  "creation_error": "<string>"
}

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