Felo API PlatformFelo API Platform

Настройка Harness

Mindmap API

Создавайте mindmaps из prompt и optional LiveDoc context.

POST/v2/mindmap

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

Bearer API key

Content type

application/json

Ограничения

Могут применяться ограничения конкретного endpoint.

Mindmap API генерирует mindmap из topic, question или project request и может сохранить результат в LiveDoc для дальнейшего reuse/retrieval агентом.

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

Authorization: Bearer YOUR_API_KEY

Create Mindmap

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

Тело запроса

ПараметрТипОбязательныйОписание
querystringДаtopic or question for mindmap generation, max 2000 characters
layoutstringНетlayout type. Default: MIND_MAP
livedoc_short_idstringНетLiveDoc ID. If omitted, a new LiveDoc is created automatically

Layout Types

LayoutDescription
MIND_MAPClassic mind map, default
LOGICAL_STRUCTURELogical structure diagram
ORGANIZATION_STRUCTUREOrganization chart
CATALOG_ORGANIZATIONCatalog organization chart
TIMELINETimeline diagram
FISHBONEFishbone diagram

Пример

curl -X POST 'https://openapi.felo.ai/v2/mindmap' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"Artificial Intelligence trends in 2024","layout":"MIND_MAP"}'

Поля ответа

ПолеТипОписание
resource_idstringResource ID of the created mindmap
statusstringGeneration status, such as COMPLETED
livedoc_short_idstringLiveDoc short ID where the mindmap is stored
mindmap_urlstringURL for viewing the mindmap
svgstringSVG content of the mindmap
messagestringStatus message

Коды ошибок

CodeHTTP StatusОписание
INVALID_API_KEY401API Key is invalid or revoked
MINDMAP_CREATE_FAILED502Mindmap creation failed
LIVEDOC_CREATE_FAILED502Failed to create LiveDoc
LIVEDOC_NOT_FOUND404Specified LiveDoc not found
LLM_SERVICE_UNAVAILABLE503LLM service is unavailable
LLM_REQUEST_TIMEOUT504LLM request timed out