Skip to main content
POST
Score a draft decision 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
sample
object
required
decisionQuestion
object

Required, or its deprecated name classifierQuestion (accepted until 2028-01-17).

classifierQuestion
object
deprecated

Deprecated, send decisionQuestion. Read as decisionQuestion; sending both answers 400 unless they are equal.

evaluatorModelName
string | null

The selectable decision model to run the question under, as listed by GET /evaluatorModels with kind=DECISION and selectable=true. Omitted or null, the one selectable decision 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