Skip to main content

Get Report Questions

GET 

/reports/questions/:run_id

Return the run-aware question schema for the report intake form.

The schema is fixed (9 questions total: 8 contextual + metrics). The metrics field options are populated from the run's Parquet scorer columns; an empty list is returned if the run has no output yet.

422 if the run's pipeline carries no reportable results. Since AIP-5117, a trace_metric_invoke run passes this gate — get_run_scorer_columns is trace-aware, so its agent.* metrics are offered as report indicators the same way any other pipeline's scorer columns are, and create accepts them.

Note: the explicit run-existence check below is load-bearing for platform admins — require_workspace_role_via_run short-circuits and returns before its own existence check when the caller is an admin, so without this an admin requesting an unknown run would get a 200 with empty metric options.

Request​

Responses​

Successful Response