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