Felo API PlatformFelo API Platform

Felo APIs

LiveDoc API

ナレッジベースを作成し、リソースを管理し、semantic retrieval と routing を実行します。

POST/v2/livedocs

認証

Bearer API key

Content type

application/json or multipart/form-data

レート制限

endpoint ごとの制限が適用される場合があります。

このページでは、Felo アカウントの権限と Pro クレジットのルールを使用する既存の /v2 Felo API について説明します。クレジットが差し引かれるかどうかは、操作 によって異なります。プラットフォーム残高での呼び出しには、対応する Felo OpenAPI エンドポイント を選択してください。リクエストとレスポンスの形は異なる場合があります。

LiveDoc の Web URL は https://felo.ai/livedoc/{short_id} です。LiveDoc へアクセスできるブラウザセッションが必要な場合があります。各エンドポイントでは API のフィールド名を維持してください。SuperAgent は live_doc_short_id を返し、mindmap と PPT 作成は livedoc_short_id を返します。

LiveDoc API は、ドキュメント作成、ファイルアップロード、URL インポート、意味検索を含む、LiveDoc とそのリソースの完全な CRUD 操作を提供します。

AI エージェントでの使用

Agent に LiveDoc サポートと利用可能な他のすべての Felo Skill を使わせるには、完全な felo-ai パッケージをインストールしてください。インストーラーは、将来の追加分も含め、SKILL.md を含むすべてのパッケージディレクトリを動的に検出します。検出されたすべての Skill を Agent のネイティブディレクトリにインストールしてください。Codex は ~/.codex/skills、Claude Code は ~/.claude/skills、OpenClaw は ~/.agents/skills、Hermes Agent は ~/.hermes/skills を使用します。手動 AI Agent セットアップガイド では、各プラットフォーム固有の API キーと確認手順を説明しています。

認証

すべてのリクエストには Authorization ヘッダーで API Key が必要です:

Authorization: Bearer YOUR_API_KEY

1. LiveDoc を作成する

エンドポイント

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

リクエストボディ

パラメーター型必須説明
namestringはいLiveDoc 名
descriptionstringいいえLiveDoc の説明
iconstringいいえLiveDoc アイコン

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "AI Research Notes",
    "description": "Collection of AI research materials"
  }'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": {
    "short_id": "PvyKouzJirXjFdst4uKRK3",
    "name": "AI Research Notes",
    "description": "Collection of AI research materials",
    "icon": null,
    "created_at": "2026-03-09T10:00:00Z",
    "modified_at": "2026-03-09T10:00:00Z"
  }
}

レスポンスフィールド

フィールド型説明
short_idstringLiveDoc ID
namestringLiveDoc 名
descriptionstringLiveDoc の説明
iconstringLiveDoc アイコン
created_atstring作成タイムスタンプ(ISO 8601)
modified_atstring最終更新タイムスタンプ(ISO 8601)
is_sharedbooleanこの LiveDoc が現在のユーザーと共有されているかどうか(所有していない場合)

2. LiveDoc を一覧表示する

エンドポイント

GET https://openapi.felo.ai/v2/livedocs

クエリパラメーター

パラメーター型必須説明
keywordstringいいえキーワードでフィルタリング
pageintegerいいえページ番号(1 ベース)
sizeintegerいいえページサイズ

例

curl 'https://openapi.felo.ai/v2/livedocs?keyword=AI&page=1&size=20' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": {
    "total": 2,
    "page": 1,
    "size": 20,
    "items": [
      {
        "short_id": "PvyKouzJirXjFdst4uKRK3",
        "name": "AI Research Notes",
        "description": "Collection of AI research materials",
        "icon": null,
        "created_at": "2026-03-09T10:00:00Z",
        "modified_at": "2026-03-09T10:05:00Z",
        "is_shared": false,
        "readme": {
          "summary": "AI research notes and papers collection",
          "content": "# AI Research Notes\n\nThis LiveDoc contains..."
        }
      }
    ]
  }
}

レスポンスフィールド

items の各項目には、LiveDoc 作成レスポンス と同じフィールドに加えて、次が含まれます:

フィールド型説明
readmeobject | nullREADME 情報。README が存在しない場合は null。
readme.summarystring | null1 行のプロジェクト説明
readme.contentstring | nullREADME コンテンツ(Markdown)

エンドポイント

PUT https://openapi.felo.ai/v2/livedocs/{short_id}

リクエストボディ

パラメーター型必須説明
namestringいいえ新しい LiveDoc 名
descriptionstringいいえ新しい LiveDoc の説明

例

curl -X PUT 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Updated Research Notes"
  }'

成功レスポンス (200)

更新された LiveDoc オブジェクトを返します(Create と同じ構造)。


4. LiveDoc を削除する

エンドポイント

DELETE https://openapi.felo.ai/v2/livedocs/{short_id}

例

curl -X DELETE 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": null
}

5. リソースを一覧表示する

エンドポイント

GET https://openapi.felo.ai/v2/livedocs/{short_id}/resources

クエリパラメーター

パラメーター型必須説明
resource_typesstring[]いいえリソースタイプでフィルタリング
pageintegerいいえページ番号(1 ベース)
sizeintegerいいえページサイズ

例

curl 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources?page=1&size=20' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": {
    "total": 2,
    "page": 1,
    "size": 20,
    "items": [
      {
        "id": "res_001",
        "title": "OpenAI Blog Post",
        "link": "https://openai.com/blog/...",
        "snippet": "Summary of the article...",
        "thumbnail": null,
        "resource_type": "web",
        "resource_key": "key_001",
        "status": "completed",
        "source": "url",
        "created_at": "2026-03-09T10:00:10Z",
        "modified_at": "2026-03-09T10:00:15Z"
      }
    ]
  }
}

リソースレスポンスフィールド

フィールド型説明
idstringリソース ID
titlestringリソースタイトル
linkstringリソースリンク / URL
snippetstringリソース要約
thumbnailstringサムネイル URL
resource_typestringリソースタイプ(例: web、ai_doc、file)
resource_keystringリソース関連付けキー
statusstringリソースステータス
sourcestringリソースソース
created_atstring作成タイムスタンプ(ISO 8601)
modified_atstring最終更新タイムスタンプ(ISO 8601)

6. 単一リソースを取得する

エンドポイント

GET https://openapi.felo.ai/v2/livedocs/{short_id}/resources/{resource_id}

例

curl 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/res_001' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

単一のリソースオブジェクトを返します(List Resources の items と同じ構造)。


7. リソースを更新する

リソースの title、snippet、または thumbnail を更新します。提供されたフィールドのみが更新され、指定されなかったフィールドは現在の値のままです。

エンドポイント

PUT https://openapi.felo.ai/v2/livedocs/{short_id}/resources/{resource_id}

リクエストボディ

すべてのフィールドは任意です。

パラメーター型必須説明
titlestringいいえ新しいリソースタイトル(最大 500 文字)
snippetstringいいえ新しいリソース要約(最大 2000 文字)
thumbnailstringいいえ新しいサムネイル URL(最大 2000 文字)

例

curl -X PUT 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/res_001' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Updated Title",
    "snippet": "Updated summary of the resource."
  }'

成功レスポンス (200)

更新されたリソースオブジェクトを返します(List Resources の items と同じ構造)。


8. リソース内容を更新する

ai_doc リソースの Markdown コンテンツを更新します。resource_type == ai_doc のリソースでのみサポートされます。snippet フィールドは、新しいコンテンツの最初の 2000 バイトから自動的に更新されます。

エンドポイント

PUT https://openapi.felo.ai/v2/livedocs/{short_id}/resources/{resource_id}/content

リクエストボディ

パラメーター型必須説明
contentstringはいリソースの新しい Markdown コンテンツ

例

curl -X PUT 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/res_001/content' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "content": "# Updated Document\n\nThis is the new content."
  }'

成功レスポンス (200)

更新されたリソースオブジェクトを返します(List Resources の items と同じ構造)。


9. ドキュメントリソースを作成する

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/resources/doc

リクエストボディ

パラメーター型必須説明
titlestringいいえドキュメントタイトル(既定は "New Document")
contentstringはいMarkdown ドキュメントコンテンツ。プレーンテキストも Markdown として有効です

これは ai_doc リソースを作成します。見出し、箇条書き、リンクは JSON 文字列内で Markdown として送信し、改行は \n としてエスケープしてください。整形されたドキュメントコンテンツには Markdown を使用してください。

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/doc' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "My Research Notes",
    "content": "# Research Notes\n\n## Key findings\n\n- First finding\n- Second finding"
  }'

成功レスポンス (200)

作成されたリソースオブジェクトを返します。


10. ファイルをドキュメントとしてアップロードする

ファイルをアップロードしてドキュメントリソース(ai_doc 型)に変換します。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/resources/upload-doc

Content-Type

multipart/form-data

リクエストパート

パラメーター型必須説明
filefileはいアップロードするファイル
titlestringいいえドキュメントタイトル

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/upload-doc' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F '[email protected]' \
  -F 'title=My PDF Document'

成功レスポンス (200)

作成されたリソースオブジェクトを返します。


11. ファイルリソースをアップロードする

ファイルをアップロードし、元の形式を保持します。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/resources/upload

Content-Type

multipart/form-data

リクエストパート

パラメーター型必須説明
filefileはいアップロードするファイル

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/upload' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F '[email protected]'

成功レスポンス (200)

作成されたリソースオブジェクトを返します。


12. URL リソースを追加する

1 つ以上の URL を LiveDoc にリソースとして追加します。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/resources/urls

リクエストボディ

パラメーター型必須説明
urlsarrayはい追加する URL 項目のリスト(1–10)。各項目はプレーン文字列または url と任意の title を持つオブジェクトにできます。

URL 項目の形式

urls の各エントリは、次のいずれかにできます:

  • プレーン文字列: "https://example.com/article"
  • オブジェクト: {"url": "https://example.com/article", "title": "Custom Title"}
フィールド型必須説明
urlstringはい追加する URL(5–2000 文字)
titlestringいいえリソースのカスタムタイトル(最大 1000 文字)。省略するとタイトルはページから自動生成されます。

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/urls' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "urls": [
      "https://example.com/article-1",
      {"url": "https://example.com/article-2", "title": "My Custom Title"}
    ]
  }'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": [
    {
      "url": "https://example.com/article-1",
      "status": "success",
      "fail_reason": null,
      "resource_id": "res_003"
    },
    {
      "url": "https://example.com/article-2",
      "status": "existed",
      "fail_reason": null,
      "resource_id": "res_004"
    }
  ]
}

URL 結果フィールド

フィールド型説明
urlstring処理された URL
statusstring結果ステータス: success、failed、または existed
fail_reasonstring失敗理由(成功時は null)
resource_idstring作成されたリソース ID

13. リソースを削除する

エンドポイント

DELETE https://openapi.felo.ai/v2/livedocs/{short_id}/resources/{resource_id}

例

curl -X DELETE 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/res_001' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": null
}

14. Retrieve(意味検索)

LiveDoc 内のリソースに対して意味検索を行います。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/resources/retrieve

リクエストボディ

パラメーター型必須説明
querystringはい意味検索用のクエリ内容
resource_idsstring[]いいえ検索対象の特定リソース ID(1-50)。省略すると、関連リソースがクエリに基づいて自動ルーティングされます

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/retrieve' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "query": "latest developments in large language models",
    "resource_ids": ["res_001", "res_002"]
  }'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": [
    {
      "id": "res_001",
      "title": "LLM Research Paper",
      "content": "Relevant content excerpt...",
      "score": 0.92,
      "metadata": {}
    }
  ]
}

Retrieve 結果フィールド

フィールド型説明
idstringリソース ID
titlestringリソースタイトル
contentstring一致したコンテンツ
scorenumber関連度スコア
metadataobject追加メタデータ

15. リソースをルーティングする

クエリに基づいて LiveDoc から関連リソースをルーティングします。retrieve エンドポイントに渡せるリソース ID の一覧を返します。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/resources/route

リクエストボディ

パラメーター型必須説明
querystringはいルーティング用のクエリ内容
max_resourcesintegerいいえ返すリソース ID の最大数

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/route' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "query": "latest developments in large language models",
    "max_resources": 5
  }'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": ["res_001", "res_003", "res_007"]
}

16. リソースのソースファイルをダウンロードする

リソースのソースファイルを取得します。事前署名付きダウンロード URL への 302 リダイレクトを返します。

ソースファイルが関連付けられているリソース(アップロードされたドキュメントなど)でのみサポートされます。

エンドポイント

GET https://openapi.felo.ai/v2/livedocs/{short_id}/resources/{resource_id}/download

クエリパラメーター

パラメーター型必須説明
expires_inintegerいいえURL の有効期限(秒)。既定: 3600

例

curl -L 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/res_001/download' \
  -H 'Authorization: Bearer YOUR_API_KEY'

レスポンス

Location ヘッダーが事前署名付き S3 ダウンロード URL を指す 302 Found を返します。リダイレクト対応の HTTP クライアント(たとえば curl -L)はリダイレクトに従ってファイルを直接ダウンロードします。


17. リソースコンテンツを取得する

リソースの抽出済みテキストコンテンツを取得します。ほとんどのリソースタイプ(document、web、video、ai_doc、ai_ppt、text、voice、mindmap など)でサポートされています。image などの未対応タイプでは 400 を返します。

エンドポイント

GET https://openapi.felo.ai/v2/livedocs/{short_id}/resources/{resource_id}/content

例

curl 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/res_001/content' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": {
    "title": "Q4 Financial Report",
    "type": "document",
    "content": "Full extracted text content of the resource..."
  }
}

レスポンスフィールド

フィールド型説明
titlestringリソースタイトル
typestringリソースタイプ
contentstringリソースコンテンツ。解釈は以下の type に依存します

リソースコンテンツ形式

data.content は文字列です。読み取り方は data.type で選びます:

リソースタイプコンテンツ形式読み取り手順
ai_docMarkdown文字列をドキュメントとして表示または保存します。これには SuperAgent のリサーチレポートも含まれます
mindmapJSON エンコードされたオブジェクト1 回デコードして layout と、text にある Markdown の見出しアウトラインを読み取ります
ai_pptslides を持つ JSON エンコードされたオブジェクト1 回デコードし、各スライドの content 文字列に JSON が含まれていればさらにデコードします
その他のテキスト系タイプ抽出テキストアプリケーションの必要に応じてテキストを表示します

デコード後の mindmap コンテンツ例:

{
  "layout": "mindMap",
  "text": "# Topic\n## Branch\n### Leaf"
}

デコード後の PPT コンテンツ例:

{
  "slides": [
    {
      "page": 1,
      "title": "Introduction",
      "content": "{\"coreIdea\":\"Introduce the topic\",\"slideOverview\":\"Overview of key points\",\"themeDescription\":\"Light background\"}",
      "theme": "light",
      "url": "https://example.com/slide-preview?signature=..."
    }
  ]
}

スライドフィールドは生成器に依存し、存在しない場合や追加情報を含む場合があります。coreIdea、slideOverview、themeDescription は任意のプレゼンテーションメタデータとして扱ってください。スライドの content がプレーンテキストの場合は、そのまま表示してください。

スライドの url 値は一時的な署名付きリンクです。有効期間は発行時に決まります。リンクの有効期限が切れたら、新しいリソースコンテンツを取得してください。PPTX ダウンロードには、expires_at を含む別の PPT export workflow を使用してください。


18. PPT ページ Retrieve

PPT リソースの特定ページに対して詳細コンテンツ検索を行います。スライドページをスクレイピングし、順位付けされたコンテンツチャンクを返します。レスポンス形式は Retrieve エンドポイントと同一です。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/resources/ppt-retrieve

リクエストボディ

パラメーター型必須説明
resource_idstringはいPPT リソース ID
page_numberintegerはい取得するページ番号(1 から開始)
querystringはい探したい内容を説明するクエリ
max_chunkintegerいいえ返すチャンクの最大数(既定: 3)

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/resources/ppt-retrieve' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "resource_id": "res_001",
    "page_number": 3,
    "query": "product pricing information",
    "max_chunk": 3
  }'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": [
    {
      "id": "res_001_page_3_chunk_1",
      "title": "Q4 Product Deck",
      "content": "Relevant slide content excerpt...",
      "score": null,
      "metadata": {
        "resource_id": "res_001",
        "page_number": 3,
        "index": 1
      }
    }
  ]
}

レスポンスフィールド

Retrieve Result Fields と同じです。


エラーコード

CodeHTTP StatusDescription
INVALID_API_KEY401API Key が無効または取り消し済み
LIVEDOC_CREATE_FAILED502LiveDoc の作成に失敗
LIVEDOC_UPDATE_FAILED502LiveDoc の更新に失敗
LIVEDOC_DELETE_FAILED502LiveDoc の削除に失敗
LIVEDOC_NOT_FOUND404LiveDoc が見つかりません
LIVEDOC_LIST_FAILED502LiveDocs の一覧取得に失敗
LIVEDOC_RESOURCE_CREATE_FAILED502リソースの作成に失敗
LIVEDOC_RESOURCE_UPLOAD_FAILED502リソースのアップロードに失敗
LIVEDOC_RESOURCE_DELETE_FAILED502リソースの削除に失敗
LIVEDOC_RESOURCE_NOT_FOUND404リソースが見つかりません
LIVEDOC_RESOURCE_LIST_FAILED502リソースの一覧取得に失敗
LIVEDOC_RESOURCE_RETRIEVE_FAILED502リソースの取得に失敗
LIVEDOC_RESOURCE_ADD_URLS_FAILED502URL リソースの追加に失敗

19. README を取得する

LiveDoc の README コンテンツを取得します。README が設定されていない場合は空文字列を返します。

エンドポイント

GET https://openapi.felo.ai/v2/livedocs/{short_id}/readme

例

curl 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/readme' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": {
    "summary": "A brief one-line description of the project.",
    "content": "# My LiveDoc\n\nThis is the README content in Markdown."
  }
}

レスポンスフィールド

フィールド型説明
summarystring | null1 行のプロジェクト説明。最大 2000 文字。
contentstringREADME コンテンツ(Markdown)。未設定の場合は空文字列。

20. README を作成または更新する

LiveDoc の README を作成または更新します(upsert セマンティクス)。

エンドポイント

PUT https://openapi.felo.ai/v2/livedocs/{short_id}/readme

リクエストボディ

パラメーター型必須説明
summarystringいいえ1 行のプロジェクト説明(最大 2000 文字)
contentstringいいえREADME コンテンツ(Markdown)

注: summary または content の少なくとも 1 つを指定する必要があります。

例

curl -X PUT 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/readme' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "summary": "A brief one-line description of the project.",
    "content": "# My LiveDoc\n\nThis is the README content in Markdown."
  }'

成功レスポンス (200)

更新された README オブジェクトを返します(Get README と同じ構造)。


21. README に追記する

既存の README の末尾にコンテンツを追加します。README が存在しない場合は、指定されたコンテンツで新規作成します。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/readme/append

リクエストボディ

パラメーター型必須説明
contentstringはい追記するコンテンツ(Markdown)

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/readme/append' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "content": "\n\n## New Section\n\nAdditional content appended to README."
  }'

成功レスポンス (200)

追記後の完全な README オブジェクトを返します(Get README と同じ構造)。


22. README を削除する

LiveDoc の README を削除します。

エンドポイント

DELETE https://openapi.felo.ai/v2/livedocs/{short_id}/readme

例

curl -X DELETE 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/readme' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": null
}

23. タスクを一覧表示する

LiveDoc 内のタスクをページ分割して取得します。結果は sort 昇順、status 昇順、created_at 降順で並び替えられます。

エンドポイント

GET https://openapi.felo.ai/v2/livedocs/{short_id}/tasks

クエリパラメーター

パラメーター型必須説明
statusintegerいいえステータスでフィルタリング: 0=TODO、1=IN_PROGRESS、2=DONE
labelsstring[]いいえラベルでフィルタリング(タスクは指定されたすべてのラベルを含む必要があります)
pageintegerいいえページ番号(1 ベース)
sizeintegerいいえページサイズ

例

curl 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/tasks?status=0&page=1&size=20' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": {
    "total": 1,
    "page": 1,
    "size": 20,
    "items": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "title": "Write documentation",
        "description": "Write API documentation for the new endpoints",
        "status": 0,
        "sort": 0,
        "labels": ["docs", "priority-high"],
        "created_at": "2026-03-19T10:00:00Z",
        "modified_at": "2026-03-19T10:00:00Z"
      }
    ]
  }
}

タスクレスポンスフィールド

フィールド型説明
idstringタスク ID(UUID)
titlestringタスクタイトル
descriptionstringタスク説明
statusintegerタスクステータス: 0=TODO、1=IN_PROGRESS、2=DONE
sortinteger並び順(非負)
labelsstring[]ラベル一覧
operated_bystringオペレーター署名。例: claude-code、openclaw
created_atstring作成タイムスタンプ(ISO 8601)
modified_atstring最終更新タイムスタンプ(ISO 8601)

24. タスクを作成する

LiveDoc に新しいタスクを作成します。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/tasks

リクエストボディ

パラメーター型必須説明
titlestringはいタスクタイトル
descriptionstringいいえタスク説明
statusintegerはいタスクステータス: 0=TODO、1=IN_PROGRESS、2=DONE
sortintegerはい並び順(非負整数)
labelsstring[]いいえラベル一覧(最大 10 件、各最大 50 文字)
operated_bystringいいえオペレーター署名。例: claude-code、openclaw(最大 100 文字)

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/tasks' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Write documentation",
    "description": "Write API documentation for the new endpoints",
    "status": 0,
    "sort": 0,
    "labels": ["docs", "priority-high"]
  }'

成功レスポンス (200)

作成されたタスクオブジェクトを返します(List Tasks の items と同じ構造)。


25. タスクを更新する

タスクを部分更新します。提供されたフィールドのみが更新され、指定されなかったフィールドは現在の値のままです。

エンドポイント

PATCH https://openapi.felo.ai/v2/livedocs/{short_id}/tasks/{task_id}

リクエストボディ

すべてのフィールドは任意です。

パラメーター型必須説明
titlestringいいえ新しいタスクタイトル
descriptionstringいいえ新しいタスク説明
statusintegerいいえ新しいステータス: 0=TODO、1=IN_PROGRESS、2=DONE
sortintegerいいえ新しい並び順(非負)
labelsstring[]いいえ新しいラベル一覧(最大 10 件、各最大 50 文字)
operated_bystringいいえオペレーター署名。例: claude-code、openclaw(最大 100 文字)

例

curl -X PATCH 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/tasks/550e8400-e29b-41d4-a716-446655440000' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "status": 1
  }'

成功レスポンス (200)

更新されたタスクオブジェクトを返します(List Tasks の items と同じ構造)。


26. タスクを削除する

タスクをソフト削除します。

エンドポイント

DELETE https://openapi.felo.ai/v2/livedocs/{short_id}/tasks/{task_id}

例

curl -X DELETE 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/tasks/550e8400-e29b-41d4-a716-446655440000' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": null
}

27. タスク記録を一覧表示する

タスクの記録(コメントと変更履歴)をページ分割して取得します。created_at 昇順で並び替えられます。

エンドポイント

GET https://openapi.felo.ai/v2/livedocs/{short_id}/tasks/{task_id}/records

クエリパラメーター

パラメーター型必須説明
record_typestringいいえ記録タイプでフィルタリング: comment、edit、status_change
pageintegerいいえページ番号(1 ベース)
sizeintegerいいえページサイズ

例

curl 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/tasks/550e8400-e29b-41d4-a716-446655440000/records' \
  -H 'Authorization: Bearer YOUR_API_KEY'

成功レスポンス (200)

{
  "status": 200,
  "code": "OK",
  "request_id": "req_example",
  "message": null,
  "data": {
    "total": 2,
    "page": 1,
    "size": 20,
    "items": [
      {
        "id": "rec_001",
        "record_type": "comment",
        "content": "This is a comment",
        "meta": null,
        "task_id": "550e8400-e29b-41d4-a716-446655440000",
        "created_at": "2026-03-19T10:05:00Z",
        "modified_at": "2026-03-19T10:05:00Z"
      },
      {
        "id": "rec_002",
        "record_type": "status_change",
        "content": null,
        "meta": {"from": 0, "to": 1},
        "task_id": "550e8400-e29b-41d4-a716-446655440000",
        "created_at": "2026-03-19T10:10:00Z",
        "modified_at": "2026-03-19T10:10:00Z"
      }
    ]
  }
}

タスク記録レスポンスフィールド

フィールド型説明
idstring記録 ID
record_typestring記録タイプ: comment / edit / status_change
contentstringコメント本文(comment タイプのみ)
metaobject変更詳細(edit および status_change タイプ用)
task_idstring親タスク ID
operated_bystringオペレーター署名。例: claude-code、openclaw
created_atstring作成タイムスタンプ(ISO 8601)
modified_atstring最終更新タイムスタンプ(ISO 8601)

28. タスクコメントを追加する

タスクにコメントを追加します。

エンドポイント

POST https://openapi.felo.ai/v2/livedocs/{short_id}/tasks/{task_id}/comments

リクエストボディ

パラメーター型必須説明
contentstringはいコメント内容
operated_bystringいいえオペレーター署名。例: claude-code、openclaw(最大 100 文字)

例

curl -X POST 'https://openapi.felo.ai/v2/livedocs/PvyKouzJirXjFdst4uKRK3/tasks/550e8400-e29b-41d4-a716-446655440000/comments' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "content": "This task is now in progress."
  }'

成功レスポンス (200)

作成された記録オブジェクトを返します(List Task Records の items と同じ構造)。


エラーコード(更新版)

CodeHTTP StatusDescription
INVALID_API_KEY401API Key が無効または取り消し済み
LIVEDOC_CREATE_FAILED502LiveDoc の作成に失敗
LIVEDOC_UPDATE_FAILED502LiveDoc の更新に失敗
LIVEDOC_DELETE_FAILED502LiveDoc の削除に失敗
LIVEDOC_NOT_FOUND404LiveDoc が見つかりません
LIVEDOC_LIST_FAILED502LiveDocs の一覧取得に失敗
LIVEDOC_RESOURCE_CREATE_FAILED502リソースの作成に失敗
LIVEDOC_RESOURCE_UPLOAD_FAILED502リソースのアップロードに失敗
LIVEDOC_RESOURCE_DELETE_FAILED502リソースの削除に失敗
LIVEDOC_RESOURCE_NOT_FOUND404リソースが見つかりません
LIVEDOC_RESOURCE_LIST_FAILED502リソースの一覧取得に失敗
LIVEDOC_RESOURCE_RETRIEVE_FAILED502リソースの取得に失敗
LIVEDOC_RESOURCE_ADD_URLS_FAILED502URL リソースの追加に失敗
LIVEDOC_README_GET_FAILED502README の取得に失敗
LIVEDOC_README_UPDATE_FAILED502README の作成または更新に失敗
LIVEDOC_README_DELETE_FAILED502README の削除に失敗
LIVEDOC_README_NOT_FOUND404README が見つかりません
LIVEDOC_TASK_LIST_FAILED502タスクの一覧取得に失敗
LIVEDOC_TASK_CREATE_FAILED502タスクの作成に失敗
LIVEDOC_TASK_UPDATE_FAILED502タスクの更新に失敗
LIVEDOC_TASK_DELETE_FAILED502タスクの削除に失敗
LIVEDOC_TASK_NOT_FOUND404タスクが見つかりません
LIVEDOC_TASK_RECORD_LIST_FAILED502タスク記録の一覧取得に失敗
LIVEDOC_TASK_COMMENT_CREATE_FAILED502タスクコメントの作成に失敗

ヘルプが必要ですか?

  • API・請求・アカウントのご質問はサポートへ。
  • Discord で Felo の開発者と交流できます。
  • 更新履歴 をご覧ください。
  • ボリューム価格や購買についてのご相談は営業窓口へ。
  • LLM での構築をお考えですか?llms.txt をご覧ください。