Interrogate the deal's financial model live (SSE)
POST
/api/canvas/{deal_id}/interrogation/ask
const url = 'https://example.com/api/canvas/example/interrogation/ask';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"operation":"breakpoint","driver":"example","target":"example","hurdle":1,"targets":["example"],"overrides":{"additionalProperty":1},"specs":{"additionalProperty":1},"scenario_label":"example","metric":"example","top_n":5}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/canvas/example/interrogation/ask \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "operation": "breakpoint", "driver": "example", "target": "example", "hurdle": 1, "targets": [ "example" ], "overrides": { "additionalProperty": 1 }, "specs": { "additionalProperty": 1 }, "scenario_label": "example", "metric": "example", "top_n": 5 }'Ask the deal’s own FormulaGraph one structured question — a breakpoint, a recompute under overrides, a Monte-Carlo stress, the model’s own scenario, or the ranked drivers of a metric — and stream the computed answer via Server-Sent Events. Read-only; works on APPROVED deals.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”deal_id
required
Deal Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
InterrogationRequest
One structured question for the deal’s FormulaGraph.
operation selects the InterrogationService method; the remaining fields
are the operation-specific arguments (validated per-operation before the
stream opens).
object
operation
required
Operation
Which interrogation to run.
string
targets
Targets
Output metric keys to evaluate.
Array<string>
overrides
Overrides
(recompute) {metric_key: new_value}
object
key
additional properties
number
specs
Specs
(stress) {metric_key: center_value}
object
key
additional properties
number
top_n
Top N
(contributors) how many drivers to return
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}