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