Create single-turn evaluations
Create evaluations for single-turn interactions. See Evaluations.
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
"Model response text"
Version to attach the evaluation to. Optional: when omitted, provide productId and the API reuses the product's latest version (creating a default first version if the product has none). One of versionId or productId is required.
"ver_123"
Product to anchor the evaluation when versionId is omitted. Ignored when versionId is provided.
"prod_123"
Required when isProduction is false. Must be omitted when isProduction is true.
"tc_123"
User input/prompt. Required when isProduction is true. Must be omitted when isProduction is false.
"What is the capital of France?"
RAG retrieval context used to generate the actual output
"Retrieved context document"
When true, creates a production evaluation (input required, testCaseId must be omitted). When false (default), testCaseId is required and input must be omitted.
Response
Evaluations created successfully
"eval_123"
"metric_123"
"session_123"
"user_123"
PENDING, PENDING_HUMAN, SUCCESS, FAILED, SKIPPED, CANCELLED "SUCCESS"
"ir_123"
0.95
"High quality response"
false
1
"1.0.0"
User ID of the human evaluator
Human-provided annotation score
Human-provided annotation reason
Timestamp when human evaluation was submitted
Conversation turns that failed
ID of the monitor that dispatched this evaluation
Session turn count when the monitor scored it
Sampling percentage in effect when the monitor scored this session