Skip to main content
POST
Create test set

Authorizations

X-API-Key
string
header
required

Organization API key for authentication

Headers

X-Coval-Workspace-Id
string

Workspace that scopes this operation. When omitted, the organization's active default workspace is used when one can be resolved.

Required string length: 1 - 26

Body

application/json

Request body for creating a test set

display_name
string
required

Human-readable test set name

Required string length: 1 - 100
Example:

"Customer Support Scenarios"

slug
string

URL-friendly identifier containing only lowercase letters, numbers, dashes, and underscores (auto-generated from display_name if not provided)

Required string length: 1 - 100
Pattern: ^[a-z0-9_-]+$
Example:

"customer-support-scenarios"

description
string | null

Test set description

Example:

"Test cases for customer support agent"

test_set_type
string

Test set type (e.g., DEFAULT, SCENARIO, TRANSCRIPT, WORKFLOW)

Maximum string length: 50
Example:

"SCENARIO"

test_set_metadata
object

Additional test set configuration (JSON)

Example:
parameters
object

Test case parameterization

Example:
tags
string[] | null

Tags to associate with this test set. Null or omitted creates the test set with no tags. Pass [] for an empty tag list.

Example:

Response

Test set created successfully

test_set
object

Test set resource representation.