Submit structured decisions
Non-streaming state/questions request; answers retain the Decisions shape.
- 类型: stringX
- Felo - Channel Ordered comma-separated public channel codes. Omit this header to use default; default must be used alone. In wallet mode, default scans the model's effective public channel order in reverse, skips unpublished or unavailable channels, and selects the first available channel's provider. It includes available endpoints from that provider with the same upstream model ID and service tier. Explicit channels are validated in client-specified order; only the first channel's provider group is submitted. No automatic fallback to other providers. Legacy provider headers cannot override channel routing.
Non-streaming Decisions; question definitions pass through unchanged.
- 类型: stringmodel必填
- 类型: objectquestions必填
- property类型: object
Name
- state必填
- 类型: string | nullservice
_tier Currently only default (standard) is supported. Omitted, null, aliases and unsupported strings fallback to default; other types return HTTP 400. Configured channels and prices remain unchanged. Text APIs send the provider's standard value; Decisions and generation APIs omit the upstream field.
- 类型: conststream常量:false
- 类型: anythingproperty
Name
- 类型: object · DecisionsResponse200
Decision answers
- 类型: objectanswers
- property类型: anything
Name
- 类型: stringid
- 类型: objectusage
- property类型: anything
Name
- 类型: anythingproperty
Name
application/json - 类型: object · DecisionsErrorResponse400
Request rejected or upstream unavailable
- 类型: objecterror必填
- code类型: integer必填
Integer numbers.
- message类型: string必填
application/json - 类型: object · DecisionsErrorResponse401
Request rejected or upstream unavailable
- 类型: objecterror必填
- code类型: integer必填
Integer numbers.
- message类型: string必填
application/json - 类型: object · DecisionsErrorResponse402
Request rejected or upstream unavailable
- 类型: objecterror必填
- code类型: integer必填
Integer numbers.
- message类型: string必填
application/json - 类型: object · DecisionsErrorResponse403
Request rejected or upstream unavailable
- 类型: objecterror必填
- code类型: integer必填
Integer numbers.
- message类型: string必填
application/json - 类型: object · DecisionsErrorResponse429
Request rejected or upstream unavailable
- 类型: objecterror必填
- code类型: integer必填
Integer numbers.
- message类型: string必填
application/json - 类型: object · DecisionsErrorResponse502
Request rejected or upstream unavailable
- 类型: objecterror必填
- code类型: integer必填
Integer numbers.
- message类型: string必填
application/json - 类型: object · DecisionsErrorResponse503
Request rejected or upstream unavailable
- 类型: objecterror必填
- code类型: integer必填
Integer numbers.
- message类型: string必填
application/json
curl https://openapi.felo.ai/api/v1/decisions \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"model": "configured-decisions-model",
"state": "A payout failed.",
"questions": {
"urgent": {
"type": "noul",
"instructions": "Is it urgent?",
"criteria": {
"true": "Urgent",
"false": "No"
}
}
}
}'
{
"id": "string",
"answers": {
"additionalProperty": "anything"
},
"usage": {
"additionalProperty": "anything"
},
"additionalProperty": "anything"
}