Skip to main content
POST
Run decisions

Authorizations

Authorization
string
header
required

Create an API key in the console. Required when accounts are enabled.

Headers

Idempotency-Key
string

Reuse the same key and body after a lost response. A successful replay does not execute or charge again. Changed request bodies conflict; expired replay bodies are not executed again under the old key.

Required string length: 1 - 255
Pattern: ^[!-~]+$

Body

application/json
context
required
decisions
Decision · object[]
required
Required array length: 1 - 64 elements
model
string | null
Required string length: 1 - 128
independent
boolean
default:false
store
boolean | null
metadata
Metadata · object | null
fallback
Available options:
auto,
none

Response

One probability distribution for each decision.

id
string
required
model
string
required
decisions
Decisions · object
required
render
Render · object
required
usage
DecisionUsage · object
required
timing_ms
Timing · object
required
provenance
Provenance · object
version
string
fallback
Fallback · object
charge
Charge · object