Create test case
Create a new test case. See Tests.
Authorizations
API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....
Body
"tc_123"
"test_123"
"user_123"
Structured input data. For plain text input, format is { user_message: "..." }
"Paris"
Structured context data. For plain text context, format is { value: "..." }
"manual"
0.95
"High quality data"
"VARIANT_1"
"STRATEGY_1"
BCP-47 language tag (e.g. en, es-MX). The region subtag selects the regional variety in simulated user messages and voice synthesis; generated test text keeps the base language. The value is stored as the full tag.
"es-MX"
Persona-derived gender ("MALE"/"FEMALE") for the male/female synthesized caller voice in phone (voice) evaluations. Stored only for now (not consumed yet). Ignored by text evaluations.
MALE, FEMALE "FEMALE"
Background noise mixed into the simulated caller audio during a voice test. Clip-backed (office, street, car) or synthetic (white, pink). Null means off; set together with backgroundNoiseLevel.
office, street, car, white, pink "street"
How loud the background noise is relative to the caller speech. Null means off; set together with backgroundNoiseProfile.
light, medium, heavy "medium"
"Student"
"Educational quiz"
"Test geographical knowledge"
"data_grounded"
"direct"
10
false
"user_456"
5
"Accurate and complete"
1
Revision family key shared by every revision of this test case.
"testCaseGroup_123"
The revision this row was forked from; null for a family root.
Set when this revision was superseded by a newer one; null for the active head.
Response
Test case created successfully
"tc_123"
"test_123"
"user_123"
Structured input data. For plain text input, format is { user_message: "..." }
"Paris"
Structured context data. For plain text context, format is { value: "..." }
"manual"
0.95
"High quality data"
"VARIANT_1"
"STRATEGY_1"
BCP-47 language tag (e.g. en, es-MX). The region subtag selects the regional variety in simulated user messages and voice synthesis; generated test text keeps the base language. The value is stored as the full tag.
"es-MX"
Persona-derived gender ("MALE"/"FEMALE") for the male/female synthesized caller voice in phone (voice) evaluations. Stored only for now (not consumed yet). Ignored by text evaluations.
MALE, FEMALE "FEMALE"
Background noise mixed into the simulated caller audio during a voice test. Clip-backed (office, street, car) or synthetic (white, pink). Null means off; set together with backgroundNoiseLevel.
office, street, car, white, pink "street"
How loud the background noise is relative to the caller speech. Null means off; set together with backgroundNoiseProfile.
light, medium, heavy "medium"
"Student"
"Educational quiz"
"Test geographical knowledge"
"data_grounded"
"direct"
10
false
"user_456"
5
"Accurate and complete"
1
Revision family key shared by every revision of this test case.
"testCaseGroup_123"
The revision this row was forked from; null for a family root.
Set when this revision was superseded by a newer one; null for the active head.