Skip to main content

Execute a pre-compiled graph

POST 

/execute/graph

Execute a pre-compiled execution graph by graph_id.

Bypasses the compilation step — use on the hot path: compile once at startup, cache graph_id, then call this endpoint on every evaluation.

ir_hash — if provided, verified against the stored graph before execution. Mismatch → HTTP 409 (stale graph_id in caller; recompile and update cache).

Requires elevated key (X-Elevated-Key header) → HTTP 403 if absent.

HTTP 403 — elevated key missing or invalid. HTTP 404 — graph_id not found. HTTP 409 — ir_hash mismatch.

Request

Responses

Successful Response