Search...
/
Contact
Sign in
Documentation
API Reference
Glossary
Overview
API Reference
Testset
GET
Read Testset
DEL
Delete
PATCH
Update Testset
POST
Create Testset
GET
Read Testset Schema
GET
Read Testcases
Testcase
POST
Create Testcase
GET
Read Testcase
DEL
Delete Testcase
PATCH
Update Testcase
POST
Batch Copy Testcases
PATCH
Batch Delete Testcases
Testrecord
GET
Read Testrecord
POST
Create Testrecord
Run
POST
Create Run
GET
Read Run
PATCH
Update Run Status
Score
POST
Create Score
PATCH
Update Score
Run Metric
GET
Read Run Metrics
Tracing
GET
Get Traces
GET
Get Trace
GET
Get Trace Span
Prompt
GET
Get Prompt By Name
POST
Create Prompt
GET
Get Prompt By Id
DEL
Delete Scoring Config
PATCH
Update Prompt
Scoring Config
POST
Create Scoring Config
GET
Get Scoring Config
Contact
Sign in
API Reference
Testcase
Create Testcase
POST
https://
api.getscorecard.ai
/
v1
/
testset
/
:testset_id
/
testcase
Create a new Testcase
Path parameters
testset_id
integer
Required
The ID of the Testset to create the Testcase in.
Request
This endpoint expects an object.
user_query
string
Optional
The user query to be executed.
context
string
Optional
The context to be used while generating the testcase.
ideal
string
Optional
The ideal response to the user query.
custom_inputs
map from strings to optional objects or strings or integers or doubles or booleans
Optional
Show 6 variants
custom_labels
map from strings to optional objects or strings or integers or doubles or booleans
Optional
Show 6 variants
Response
This endpoint returns an object
testset_id
integer
The ID of the testset the testcase belongs to.
user_query
string
The user query for the testcase.
id
integer
Optional
The ID of the testcase.
created_at
datetime
Optional
The creation date and time of the testcase.
context
string
Optional
The context for the testcase.
ideal
string
Optional
The ideal response for the testcase.
custom_inputs
map from strings to optional objects or strings or integers or doubles or booleans
Optional
Show 6 variants
custom_labels
map from strings to optional objects or strings or integers or doubles or booleans
Optional
Show 6 variants
Errors
401
Unauthorized
403
Forbidden
404
Not Found
422
Unprocessable Entity
Built with