Felo API PlatformFelo API Platform

Настройка Harness

Chat API

Интегрируйте AI conversational search с анализом query, Web-ресурсами и citations.

POST/v2/chat

Аутентификация

Bearer API key

Content type

application/json

Ограничения

Per API key and per user windows. Read X-RateLimit headers.

Chat API AI-powered conversational search をアプリに統合する API です。natural language query を送り、real-time web search results に基づく answer を受け取ります。

Overview

  1. query を分析・最適化
  2. relevant information を web search
  3. search results を ranking/filtering
  4. sources に基づき AI answer を生成
  5. answer と source citations を返却

Аутентификация

Authorization: Bearer YOUR_API_KEY

Endpoint

POST https://openapi.felo.ai/v2/chat

Запрос

ПараметрТипОбязательныйОписание
querystringДаuser question または search query。1-2000 characters

Ответ

{
  "status": "ok",
  "message": null,
  "data": {
    "answer": "...",
    "query_analysis": { "queries": ["..."] },
    "resources": [{ "link": "https://example.com", "title": "Source", "snippet": "..." }]
  }
}

Коды ошибок

CodeHTTP StatusОписание
INVALID_API_KEY401API Key invalid または revoked
MISSING_AUTHORIZATION401Authorization header отсутствует
MISSING_PARAMETER400required parameter отсутствует
QUERY_TOO_LONG400query がслишком длинный
RATE_LIMITED429requests がслишком много

Example

curl -X POST https://openapi.felo.ai/v2/chat   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"query":"What are the benefits of renewable energy?"}'