Skip to content

Get Research Provenance

GET
/api/canvas/{deal_id}/research-provenance
curl --request GET \
--url https://example.com/api/canvas/example/research-provenance \
--header 'Authorization: Bearer <token>'

Get per-section research provenance for a deal.

Returns middleware telemetry aggregated by section: wall time, LLM/tool call counts, compression events, tool suppressions, stuck-agent detections, citation stripping, schema repairs, diversity steers, and derived constraint flags.

Data comes from AgentTelemetryMiddleware provenance records stored in deal_data during pipeline execution. No LLM calls.

Returns empty provenance if no telemetry data is available (e.g., deal generated before Enhancement 1 was deployed).

deal_id
required
Deal Id
string

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}