Skip to main content
POST
Simulate a decision with a trace

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

workspace
string
required

Workspace slug.

Maximum string length: 64
Pattern: ^[a-z0-9][a-z0-9-]{0,63}$
key
string
required

Decision key — a flat slug, never a path.

Maximum string length: 64
Pattern: ^[a-z0-9][a-z0-9-]{0,63}$

Body

application/json
context
Context · object

Input context to simulate against.

version
integer | null

Persisted version to simulate. Preferred.

Required range: x >= 1
content
string | null

Unsaved JDM content from the editor. Function nodes evaluate expressions, so this path requires the author role or above and runs under a wall-clock timeout.

trace
boolean
default:true

Include the node-by-node trace.

Response

Successful Response

workspace
string
required
key
string
required
result
any
required
latency_ms
number
required
version
integer | null
content_sha
string | null
inline
boolean
default:false

True when unsaved content was simulated.

performance
string | null
trace
Trace · object | null