Create decision

Ask a decision model typed questions about some state and get one typed answer per question.

Authentication

AuthorizationBearer
Your production key sent as a bearer token.

Request

This endpoint expects an object.
modelstringRequired

Decision model ID, for example typesafe/jev-1.13.

statestring or map from strings to any or list of anyRequired
Content to evaluate, as text or structured data.
questionsmap from strings to objectsRequired
Questions to answer, keyed by names you choose.
vendorstring or nullOptional
Pin the vendor that runs this request.
customerstring or nullOptional

Customer ID (UUID) to scope this request to, applying that customer’s routing policy, provider keys, budget, and usage attribution.

Response

Successful Response
modelstring
Concrete model version that answered.
vendorstring
Vendor that served the request.
answersmap from strings to any
One typed answer per question, keyed by your question names.
usageobject
Token usage for a decision request.
object"decision"OptionalDefaults to decision

Errors

422
Unprocessable Entity Error