Skip to content

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

Insights & Reports

Insights endpoints cover three things:

  1. Reports — daily / weekly / monthly write-ups. Both the v2.1 path (/v1/insights/report/*) and the v3.0 path (/v1/score_v3/report/*) live here.
  2. Session summaries and highlights — LLM-generated titles, summaries, and notable sessions.
  3. Daily summary — a single rolled-up summary for one calendar day.

Get the latest insights report.

GET /v1/insights/report?scope=personal
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
scopestringpersonalReport scope
fromISO8601Start time
toISO8601End time

Returns the most recent generated report as a JSON payload.

Generate a new insights report on demand. Runs synchronously and returns the full report payload in the response — there is no job ID.

POST /v1/insights/report/generate?scope=personal
Authorization: Bearer gck_your_key
Accept-Language: en
ParameterTypeDefaultDescription
scopestringpersonalReport scope tag (see note below)
fromISO8601Start time
toISO8601End time

The Accept-Language header (default en) selects the report’s output language.

Note on scope: The engine treats scope as an arbitrary tag persisted alongside the report row. It isn’t validated against a fixed enum; personal is the common default. Use whatever grouping tags your dashboard expects.

Fetch the most recent in-progress report (if any) for the org so the dashboard can resume polling across page reloads.

GET /v1/insights/report/pending
Authorization: Bearer gck_your_key

Returns the pending report record, or 204 No Content if none is running.

Status of a running generation — used with /generate calls that the client polls rather than blocks on.

GET /v1/insights/report/status/abc123
Authorization: Bearer gck_your_key

Cancel an in-progress generation. Idempotent; returns the final status.

POST /v1/insights/report/cancel/abc123
Authorization: Bearer gck_your_key

Delete a previously generated report.

DELETE /v1/insights/report/abc123
Authorization: Bearer gck_your_key

Get report generation history.

GET /v1/insights/report/history?scope=personal&limit=20
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
scopestringpersonalReport scope
limitinteger20Max records

Get a specific report by ID.

GET /v1/insights/report/abc123
Authorization: Bearer gck_your_key

Same shape as the v2.1 report endpoints above, but scoped to PRISM Score v3.0 data. Use these for new integrations.

EndpointMethodPurpose
/v1/score_v3/reportGETLatest v3 report (accepts the same scope / from / to params)
/v1/score_v3/report/generatePOSTGenerate a v3 report synchronously; Accept-Language selects output language
/v1/score_v3/report/pendingGETMost recent in-progress v3 report, or 204 No Content
/v1/score_v3/report/status/:idGETStatus of a running v3 generation
/v1/score_v3/report/cancel/:idPOSTCancel a running v3 generation
/v1/score_v3/report/historyGETPast v3 reports (scope, limit)
/v1/score_v3/report/:idGET / DELETEFetch or delete one v3 report

Session type statistics for a time range.

GET /v1/insights/sessions/stats?from=2024-01-01T00:00:00Z&to=2024-01-31T00:00:00Z
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
fromISO860130 days agoStart time
toISO8601nowEnd time

Session highlights — notable sessions based on scoring, patterns, or anomalies.

GET /v1/insights/sessions/highlights?from=2024-01-01T00:00:00Z&to=2024-01-31T00:00:00Z
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
fromISO860130 days agoStart time
toISO8601nowEnd time

Response: a SessionHighlights object (returned directly, not wrapped).

Fetch the stored summary for a single session.

GET /v1/insights/sessions/summary?session_id=abc123
Authorization: Bearer gck_your_key
ParameterTypeRequiredDescription
session_idstringyesSession to fetch the summary for

Returns 400 Bad Request if no summary exists for the session.

List session summaries for the org, optionally filtered by developer.

GET /v1/insights/sessions/summaries?from=2024-01-01T00:00:00Z&limit=50
Authorization: Bearer gck_your_key
ParameterTypeDefaultDescription
fromISO860130 days agoStart time
toISO8601nowEnd time
user_idUUIDFilter to a single developer
limitinteger50Max records
offsetinteger0Pagination offset

Response: { "summaries": [...] }.

Fetch detailed session data (turn-level metrics, tool activity, scores) for a single session.

GET /v1/insights/sessions/details?session_id=abc123
Authorization: Bearer gck_your_key
ParameterTypeRequiredDescription
session_idstringyesSession to fetch details for
  • /report/history{ "reports": [...] }
  • /sessions/stats{ "stats": [...] }
  • /sessions/summaries{ "summaries": [...] }
  • /sessions/highlightsSessionHighlights (unwrapped)
  • /report and /report/:id → the generated report JSON (unwrapped)