Skip to main content
POST
Score a draft Classifier question on a sample

Authorizations

Authorization
string
header
required

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

application/json
classifierQuestion
object
required
sample
object
required
evaluatorModelName
string | null

The selectable classifier model to run the question under, as listed by GET /evaluatorModels with kind=CLASSIFIER and selectable=true. Omitted or null, the one selectable classifier model is used. When several are selectable, the request is refused with 400 and this field must be sent.

Example:

"jev-1.13.0"

Response

The draft was scored or skipped

outcome
enum<string>
required
Available options:
scored,
skipped
score
number | null
required
reason
string
required
confidence
number | null
required
Required range: 0 <= x <= 1
scoreBreakdown
object | null
required