Skip to main content
POST
Preview the prompt a judge configuration produces

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
metricSource
enum<string>
required

Only the sources whose judge prompt Galtea builds can be previewed.

Available options:
FULL_PROMPT,
PARTIAL_PROMPT
definition
string | null

Selects the evaluator implementation. Absent means a custom judge.

Minimum string length: 1
Example:

"custom_judge"

judgePrompt
string | null

Required by a custom judge. An empty one is refused with a 400.

Maximum string length: 20000
evaluationParams
string[]
Maximum array length: 20
Required string length: 1 - 64
areEvalParamsTop
boolean
default:true

Whether the parameters block precedes the judge prompt.

Response

Assembled prompts

prompts
object[]
required