Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0

Submit structured decisions

サーバー:https://openapi.felo.ai
クライアントライブラリ

Submit structured decisions

​

Non-streaming state/questions request; answers retain the Decisions shape.

ヘッダー
  • X-Felo-Channel
    型: string

    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.

リクエストボディ·DecisionsRequest
必須
application/json

Non-streaming Decisions; question definitions pass through unchanged.

  • model
    型: string
    必須
  • questions
    型: object
    必須
    • propertyName
      型: object
  • state
    必須
  • service_tier
    型: string | null

    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.

  • stream
    型: const
    定数:  
    false
  • propertyName
    型: anything
レスポンス
  • 200
    型: object · DecisionsResponse

    Decision answers

    • answers
      型: object
      • propertyName
        型: anything
    • id
      型: string
    • usage
      型: object
      • propertyName
        型: anything
    • propertyName
      型: anything
    application/json
  • 400
    型: object · DecisionsErrorResponse

    Request rejected or upstream unavailable

    • error
      型: object
      必須
      • code
        型: integer
        必須

        Integer numbers.

      • message
        型: string
        必須
    application/json
  • 401
    型: object · DecisionsErrorResponse

    Request rejected or upstream unavailable

    • error
      型: object
      必須
      • code
        型: integer
        必須

        Integer numbers.

      • message
        型: string
        必須
    application/json
  • 402
    型: object · DecisionsErrorResponse

    Request rejected or upstream unavailable

    • error
      型: object
      必須
      • code
        型: integer
        必須

        Integer numbers.

      • message
        型: string
        必須
    application/json
  • 403
    型: object · DecisionsErrorResponse

    Request rejected or upstream unavailable

    • error
      型: object
      必須
      • code
        型: integer
        必須

        Integer numbers.

      • message
        型: string
        必須
    application/json
  • 429
    型: object · DecisionsErrorResponse

    Request rejected or upstream unavailable

    • error
      型: object
      必須
      • code
        型: integer
        必須

        Integer numbers.

      • message
        型: string
        必須
    application/json
  • 502
    型: object · DecisionsErrorResponse

    Request rejected or upstream unavailable

    • error
      型: object
      必須
      • code
        型: integer
        必須

        Integer numbers.

      • message
        型: string
        必須
    application/json
  • 503
    型: object · DecisionsErrorResponse

    Request rejected or upstream unavailable

    • error
      型: object
      必須
      • code
        型: integer
        必須

        Integer numbers.

      • message
        型: string
        必須
    application/json
Request Example for post/api/v1/decisions
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"
}
Submit structured decisions