Skip to main content
POST
Create Decisions

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

TypeSafe's POST /v1/systemone request body, plus minimal Eden extensions.

Unknown top-level fields are forwarded to the provider (extra="allow" via the base mixin, which also rejects connection keys).

state
required

The content to decide about: a plain string, or a JSON object / array of related context.

questions
Questions · object
required

Typed questions keyed by name: noul (yes/no probability), choice (one of the criteria keys) or score (position on the ordered criteria rubric).

model
string
required

Model identifier in 'provider/model' format, e.g. 'typesafe/jev-latest'.

tags
any

Up to 10 key/value labels recorded with this call, for filtering and grouping usage. Merged with the X-EdenAI-Tags header.

Example:
metadata
Metadata · object | null

Arbitrary metadata attached to the request.

extra_headers
Extra Headers · object | null

Additional HTTP headers forwarded to the provider API.

extra_body
Extra Body · object | null

Additional body fields forwarded to the provider API.

Response

Successful Response

TypeSafe's response (typed answers, usage, request id) + Eden cost and provider.

model
string
required
answers
Answers · object
required
usage
DecisionUsage · object
required
cost
number | null
provider
string | null
id
string | null

TypeSafe request id (x-typesafe-request-id).