Skip to content

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

Intelligence Endpoints

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

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.

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

Single scored prompt by ID.

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

POST /prism/promptiq/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/promptiq/efficiency-rubric-trend

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

Trend for each PES dimension.

Hourly breakdown of model response latency across the window — feeds the Response Latency chart on /insights/rlr.

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

Sessions with the lowest Quality Retention — feeds the QR insight page at /insights/qr.

List scored sub-sessions with SSE breakdown.

Rolled-up SSE for the date range.

Sub-session efficiency grouped by parent session.

Run the session advisor for a specific 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.

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.

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).

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

Accuracy metrics for sub-session boundary detection.

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 (for composites) or GET /prism/metrics (for inputs)
POST /v1/intelligence/score-promptPOST /prism/promptiq/score
GET /v1/intelligence/wasteSurfaced in-app only via /my/report
GET /v1/intelligence/coachingGET /v1/advisor/cards
GET /v1/intelligence/recommendationsGET /v1/intelligence/rightsizing
GET /v1/telemetry/vibe-metricsRemoved with the Vibe Metrics feature