Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Intelligence Endpoints (v2.1)

Intelligence endpoints expose the Prism Engine’s v2.1 scoring and insight output. All endpoints are scoped to the authenticated organization.

v3.0 equivalent: GET /v1/score_v3/score, plus /v1/score_v3/speed, /v1/score_v3/tokens, and /v1/score_v3/skill for the pillars.

Layer 3 composite scores — Speed, Skill, Efficiency — per developer and period.

GET /prism/scores?from=2024-01-01T00:00:00Z&to=2024-01-07T00:00:00Z
Authorization: Bearer gck_your_key

Layer 2 per-sub-session metrics (SSE, PES, IE, CRR, FC, QR) used as inputs to the Layer 3 scores.

GET /prism/metrics?from=2024-01-01T00:00:00Z
Authorization: Bearer gck_your_key

Trigger a Layer 2 recompute for a time window. Used by admin tooling after baseline changes.

Trend series for Skill / Speed / Efficiency.

Layer 1 hourly aggregates.

v3.0 equivalent: GET /v1/score_v3/insight/sessions — the v3 rubric is per-sub-session (not per-prompt) and uses seven booleans + judge status instead of the four PES dimensions.

List scored prompts (intent + four-dimension Efficiency Rubric).

Single scored prompt by ID.

Score a prompt on-demand using the same LLM rubric as the background worker.

POST /prism/insight/score
Authorization: Bearer gck_your_key
Content-Type: application/json
{
"prompt_text": "Fix the bug in auth.ts",
"org_id": "",
"session_id": "",
"turn_index": 0,
"prompt_id": ""
}

Response: a ScoreResponse object with camelCase fields:

{
"detectedLanguage": "en",
"intent": "fix",
"shortCircuited": false,
"rubric": { "contextLeverage": 7, "informationDensity": 8, "turnEconomy": 8, "ambiguityCost": 7 },
"rubricScore": 7.5,
"grade": "B0",
"confidence": 0.82,
"agentVersion": "",
"version": "1.0"
}

Conversational or low-value prompts are classified as question, meta, continuation, or system_callback; for those, shortCircuited is true and rubric / rubricScore / grade are omitted.

Averages for the four PES dimensions over the requested window.

GET /prism/insight/efficiency-rubric-trend

Section titled “GET /prism/insight/efficiency-rubric-trend”

Trend for each PES dimension.

Per-session PES roll-up.

These endpoints feed dedicated v2.1 insight pages (/insights/rlr, /insights/qr). The v3.0 page set doesn’t have a 1:1 replacement.

Hourly breakdown of model response latency across the window.

Slowest individual turns in the window with turn identifiers for drill-in.

Sessions with the lowest Quality Retention.

v3.0 equivalent: the v3 score itself is computed at the sub-session level — see /v1/score_v3/score and /v1/score_v3/speed/sessions. The v2.1 efficiency endpoints surface raw SSE breakdowns and are still used by the v2.1 Efficiency page.

List scored sub-sessions with SSE breakdown.

Rolled-up SSE for the date range.

Sub-session efficiency grouped by parent session.

GET /v1/efficiency/sub-sessions-by-sessions

Section titled “GET /v1/efficiency/sub-sessions-by-sessions”

Sub-sessions grouped under their parent session.

v3.0 equivalent: no direct replacement yet — the advisor still runs against the v2.1 scoring inputs.

Run the advisor for a specific sub-session — produces coaching cards.

List stored advisor cards for the org.

Submit thumbs-up / thumbs-down feedback on a coaching card.

Server-sent events stream of advisor cards as they’re produced.

v3.0 equivalent: see the Trivia page (/v1/score_v3/trivia) for filtered-out sessions and the Insight rubric for low-grade prompts. There’s no like-for-like “worst prompts” endpoint in v3 yet.

Lowest-scoring prompts with coaching notes.

GET /v1/intelligence/worst-prompts?from=2024-01-01T00:00:00Z&limit=20
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
session_idstringFilter by session
fromISO8601Start time
toISO8601End time
limitinteger20Max records (max 50)

Response: { "prompts": [...], "total": N }.

Highest-scoring prompts — useful for celebrating patterns that work.

Longest coherent prompt chains in the window.

v3.0 equivalent: no direct replacement — these are operational signals, not scoring outputs, and stay where they are.

Rate-limiting events, latency spikes, and recurring drop-off detection.

Model selection and tier recommendations based on usage patterns. Served directly from Parquet usage (no background worker).

v3.0 equivalent: the v3 dashboard uses PATCH /v1/score_v3/sub-sessions/:id to rename sub-sessions. The v2.1 override endpoint below is for boundary-detection corrections.

Submit a human override on an automatically-detected sub-session boundary.

Accuracy metrics for sub-session boundary detection.

The weekly satisfaction check-in is unchanged between v2.1 and v3.0.

Whether the weekly satisfaction check-in is pending for the current developer.

Submit a satisfaction response.

The following endpoints existed in earlier versions and have been removed. Clients calling them will get a 404:

EndpointReplacement
GET /v1/intelligence/prismGET /prism/scores (v2.1) or GET /v1/score_v3/score (v3.0)
POST /v1/intelligence/score-promptPOST /prism/insight/score
GET /v1/intelligence/wasteSurfaced in-app only via the report pages
GET /v1/intelligence/coachingGET /v1/advisor/cards
GET /v1/intelligence/recommendationsGET /v1/intelligence/rightsizing
GET /v1/telemetry/vibe-metricsRemoved with the Vibe Metrics feature