Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

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

Body

application/json

Decision Models beta request. Telnyx manages model selection. SDK-supplied model values are ignored for compatibility; they do not select a model.

state
required

Shared context evaluated by every question.

Example:

"Our production calls are failing. Every customer is affected."

questions
object
required

Between 1 and 64 named questions. Each key identifies the corresponding answer.

Response

All questions evaluated successfully. The response is a complete JSON object, not a stream.

A complete synchronous evaluation. Answers are returned directly without a data wrapper.

model
string
required
read-only

Opaque Telnyx-controlled identifier retained for TypeSafe SDK response compatibility. It is not a selectable model name or a guarantee of a particular underlying model.

answers
object
required

Answers keyed by exactly the question IDs in the request. Each answer type matches its question.

usage
object
required

Token usage for the completed evaluation.