Skip to main content
POST
Create a decision

Authorizations

Authorization
string
header
required

A Decision API key from the console (starts with tcd_).

Body

application/json

A decision request: one state and up to 128 named questions about it. Unknown fields are rejected.

model
string
required
Minimum string length: 1
state
required
Minimum string length: 1
questions
object
required

Response

The answers. Charged.

model
string
required

The pinned model id that answered, also when the request named an alias.

answers
object
required

One answer per question, keyed by question name.

usage
object
required