Score a prompt
Authentication
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
Scores an agent’s prompt across 11 quality dimensions using Gemini-based analysis. Requires the prompt to have changed since the last scoring.
Input: Provide exactly one of versionId (published agent version) or draftId (agent draft). Providing both or neither returns a 400.
Credit usage: 1 credit is deducted per successful call.
Idempotency: Re-submitting the same prompt without changes returns a 400 — retrieve the cached score via the GET agent endpoint instead.
Supported agent types: Only single_prompt agents are supported. Workflow-graph agents return a 400.
Scoring model: Two sequential Gemini calls — a Platform Analyst pass followed by a Rubric Judge pass.