Skip to main content
POST
Python

Authorizations

x-api-key
string
header
required

Body

application/json
state
any
required

Context shared by all questions. Accepts any JSON value. Together with the largest question, this may use at most 32,000 estimated input tokens.

questions
Questions · object
required

1–100 questions keyed by names containing only ASCII letters, numbers, underscores, and hyphens. State plus the largest question may use at most 32,000 estimated input tokens. Each value is a predicate (noul), choice, or score question.

mode
string
default:fast

Decision execution mode.

Allowed value: "fast"
include_excerpts
boolean
default:true

When false, every citation has an empty excerpts array. Use for token efficiency if LLM consuming downstream results.

Response

Successful Response

mode
string
required
Allowed value: "fast"
answers
Answers · object
required

Answers keyed by the question names from the request. Any question can return a refusal.

usage
Usage · object
required
citations
Citation · object[]
required

Web sources included in the shared decision context. Applies to the whole request, without a per-answer source mapping. Can be empty.

decision_id
string
required

Decision identifier: decisions_ followed by a UUID without hyphens.

Example:

"decisions_cad0a6d2dec046bd95ae900527d880e7"