Felo API PlatformFelo API Platform

Настройка Harness

Landing Page Task API

Генерируйте landing pages асинхронно и запрашивайте task history.

POST/v2/landing_page

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

Bearer API key

Content type

application/json or multipart/form-data

Ограничения

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

Landing Page Task API предоставляет async landing page generation. Сначала создайте task, затем используйте shared task polling APIs для progress, history и generated ai_page_html.

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

Authorization: Bearer YOUR_API_KEY

Создать задачу Landing Page

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

Тело запроса

ПараметрТипОбязательныйОписание
querystringДаlanding page generation prompt
stream_protocolstringНетStream protocol. Default: message_center_v1
livedoc_short_idstringНетExisting LiveDoc short ID to use as context
resource_idsarray of stringsНетLiveDoc resource IDs to use as context

Пример

curl -X POST 'https://openapi.felo.ai/v2/landing_page' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"Generate a landing page for Felo Search"}'

Create With File

Upload one file with multipart/form-data. The file is first uploaded as a LiveDoc resource, then its resource ID is passed to the Landing Page task.

curl -X POST 'https://openapi.felo.ai/v2/landing_page' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'query=Generate a landing page from this product brief' \
  -F '[email protected]'

The response returns task_id for polling.

Poll Task Status

GET https://openapi.felo.ai/v2/tasks/{task_id}/status

Query Task Historical Info

GET https://openapi.felo.ai/v2/tasks/{task_id}/historical

Historical result includes task_status, ppt_biz_id, ppt_url, and ai_page_html. Status semantics are shared with PPT Task API.

Коды ошибок

CodeHTTP StatusОписание
INVALID_API_KEY401API Key is invalid or revoked
LANDING_PAGE_TASK_CREATE_FAILED502Landing page task creation failed
INSUFFICIENT_CREDITS402Insufficient credits available