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 to 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.

advanced_settings
AdvancedDecisionSettings · object | null

Optional advanced configuration for decision grounding. When provided, the object must include after_date, location, or include_excerpts.

mode
string
default:fast

Decision execution mode.

Allowed value: "fast"

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 ID: decisions_ followed by a UUID without hyphens. Include this ID when reporting an issue or giving feedback so we can find the request's logs and trace.

Example:

"decisions_cad0a6d2dec046bd95ae900527d880e7"