Felo APIs
LiveDoc API
ナレッジベースを作成し、リソースを管理し、semantic retrieval と routing を実行します。
/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_KEY1. LiveDoc を作成する
エンドポイント
POST https://openapi.felo.ai/v2/livedocsリクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
name | string | はい | LiveDoc 名 |
description | string | いいえ | LiveDoc の説明 |
icon | string | いいえ | 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_id | string | LiveDoc ID |
name | string | LiveDoc 名 |
description | string | LiveDoc の説明 |
icon | string | LiveDoc アイコン |
created_at | string | 作成タイムスタンプ(ISO 8601) |
modified_at | string | 最終更新タイムスタンプ(ISO 8601) |
is_shared | boolean | この LiveDoc が現在のユーザーと共有されているかどうか(所有していない場合) |
2. LiveDoc を一覧表示する
エンドポイント
GET https://openapi.felo.ai/v2/livedocsクエリパラメーター
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
keyword | string | いいえ | キーワードでフィルタリング |
page | integer | いいえ | ページ番号(1 ベース) |
size | integer | いいえ | ページサイズ |
例
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 作成レスポンス と同じフィールドに加えて、次が含まれます:
| フィールド | 型 | 説明 |
|---|---|---|
readme | object | null | README 情報。README が存在しない場合は null。 |
readme.summary | string | null | 1 行のプロジェクト説明 |
readme.content | string | null | README コンテンツ(Markdown) |
エンドポイント
PUT https://openapi.felo.ai/v2/livedocs/{short_id}リクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
name | string | いいえ | 新しい LiveDoc 名 |
description | string | いいえ | 新しい 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_types | string[] | いいえ | リソースタイプでフィルタリング |
page | integer | いいえ | ページ番号(1 ベース) |
size | integer | いいえ | ページサイズ |
例
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"
}
]
}
}リソースレスポンスフィールド
| フィールド | 型 | 説明 |
|---|---|---|
id | string | リソース ID |
title | string | リソースタイトル |
link | string | リソースリンク / URL |
snippet | string | リソース要約 |
thumbnail | string | サムネイル URL |
resource_type | string | リソースタイプ(例: web、ai_doc、file) |
resource_key | string | リソース関連付けキー |
status | string | リソースステータス |
source | string | リソースソース |
created_at | string | 作成タイムスタンプ(ISO 8601) |
modified_at | string | 最終更新タイムスタンプ(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}リクエストボディ
すべてのフィールドは任意です。
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
title | string | いいえ | 新しいリソースタイトル(最大 500 文字) |
snippet | string | いいえ | 新しいリソース要約(最大 2000 文字) |
thumbnail | string | いいえ | 新しいサムネイル 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リクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
content | string | はい | リソースの新しい 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リクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
title | string | いいえ | ドキュメントタイトル(既定は "New Document") |
content | string | はい | 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-docContent-Type
multipart/form-data
リクエストパート
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
file | file | はい | アップロードするファイル |
title | string | いいえ | ドキュメントタイトル |
例
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/uploadContent-Type
multipart/form-data
リクエストパート
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
file | file | はい | アップロードするファイル |
例
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リクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
urls | array | はい | 追加する URL 項目のリスト(1–10)。各項目はプレーン文字列または url と任意の title を持つオブジェクトにできます。 |
URL 項目の形式
urls の各エントリは、次のいずれかにできます:
- プレーン文字列:
"https://example.com/article" - オブジェクト:
{"url": "https://example.com/article", "title": "Custom Title"}
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
url | string | はい | 追加する URL(5–2000 文字) |
title | string | いいえ | リソースのカスタムタイトル(最大 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 結果フィールド
| フィールド | 型 | 説明 |
|---|---|---|
url | string | 処理された URL |
status | string | 結果ステータス: success、failed、または existed |
fail_reason | string | 失敗理由(成功時は null) |
resource_id | string | 作成されたリソース 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リクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
query | string | はい | 意味検索用のクエリ内容 |
resource_ids | string[] | いいえ | 検索対象の特定リソース 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 結果フィールド
| フィールド | 型 | 説明 |
|---|---|---|
id | string | リソース ID |
title | string | リソースタイトル |
content | string | 一致したコンテンツ |
score | number | 関連度スコア |
metadata | object | 追加メタデータ |
15. リソースをルーティングする
クエリに基づいて LiveDoc から関連リソースをルーティングします。retrieve エンドポイントに渡せるリソース ID の一覧を返します。
エンドポイント
POST https://openapi.felo.ai/v2/livedocs/{short_id}/resources/routeリクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
query | string | はい | ルーティング用のクエリ内容 |
max_resources | integer | いいえ | 返すリソース 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_in | integer | いいえ | 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..."
}
}レスポンスフィールド
| フィールド | 型 | 説明 |
|---|---|---|
title | string | リソースタイトル |
type | string | リソースタイプ |
content | string | リソースコンテンツ。解釈は以下の type に依存します |
リソースコンテンツ形式
data.content は文字列です。読み取り方は data.type で選びます:
| リソースタイプ | コンテンツ形式 | 読み取り手順 |
|---|---|---|
ai_doc | Markdown | 文字列をドキュメントとして表示または保存します。これには SuperAgent のリサーチレポートも含まれます |
mindmap | JSON エンコードされたオブジェクト | 1 回デコードして layout と、text にある Markdown の見出しアウトラインを読み取ります |
ai_ppt | slides を持つ 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_id | string | はい | PPT リソース ID |
page_number | integer | はい | 取得するページ番号(1 から開始) |
query | string | はい | 探したい内容を説明するクエリ |
max_chunk | integer | いいえ | 返すチャンクの最大数(既定: 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 と同じです。
エラーコード
| Code | HTTP Status | Description |
|---|---|---|
INVALID_API_KEY | 401 | API Key が無効または取り消し済み |
LIVEDOC_CREATE_FAILED | 502 | LiveDoc の作成に失敗 |
LIVEDOC_UPDATE_FAILED | 502 | LiveDoc の更新に失敗 |
LIVEDOC_DELETE_FAILED | 502 | LiveDoc の削除に失敗 |
LIVEDOC_NOT_FOUND | 404 | LiveDoc が見つかりません |
LIVEDOC_LIST_FAILED | 502 | LiveDocs の一覧取得に失敗 |
LIVEDOC_RESOURCE_CREATE_FAILED | 502 | リソースの作成に失敗 |
LIVEDOC_RESOURCE_UPLOAD_FAILED | 502 | リソースのアップロードに失敗 |
LIVEDOC_RESOURCE_DELETE_FAILED | 502 | リソースの削除に失敗 |
LIVEDOC_RESOURCE_NOT_FOUND | 404 | リソースが見つかりません |
LIVEDOC_RESOURCE_LIST_FAILED | 502 | リソースの一覧取得に失敗 |
LIVEDOC_RESOURCE_RETRIEVE_FAILED | 502 | リソースの取得に失敗 |
LIVEDOC_RESOURCE_ADD_URLS_FAILED | 502 | URL リソースの追加に失敗 |
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."
}
}レスポンスフィールド
| フィールド | 型 | 説明 |
|---|---|---|
summary | string | null | 1 行のプロジェクト説明。最大 2000 文字。 |
content | string | README コンテンツ(Markdown)。未設定の場合は空文字列。 |
20. README を作成または更新する
LiveDoc の README を作成または更新します(upsert セマンティクス)。
エンドポイント
PUT https://openapi.felo.ai/v2/livedocs/{short_id}/readmeリクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
summary | string | いいえ | 1 行のプロジェクト説明(最大 2000 文字) |
content | string | いいえ | 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リクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
content | string | はい | 追記するコンテンツ(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クエリパラメーター
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
status | integer | いいえ | ステータスでフィルタリング: 0=TODO、1=IN_PROGRESS、2=DONE |
labels | string[] | いいえ | ラベルでフィルタリング(タスクは指定されたすべてのラベルを含む必要があります) |
page | integer | いいえ | ページ番号(1 ベース) |
size | integer | いいえ | ページサイズ |
例
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"
}
]
}
}タスクレスポンスフィールド
| フィールド | 型 | 説明 |
|---|---|---|
id | string | タスク ID(UUID) |
title | string | タスクタイトル |
description | string | タスク説明 |
status | integer | タスクステータス: 0=TODO、1=IN_PROGRESS、2=DONE |
sort | integer | 並び順(非負) |
labels | string[] | ラベル一覧 |
operated_by | string | オペレーター署名。例: claude-code、openclaw |
created_at | string | 作成タイムスタンプ(ISO 8601) |
modified_at | string | 最終更新タイムスタンプ(ISO 8601) |
24. タスクを作成する
LiveDoc に新しいタスクを作成します。
エンドポイント
POST https://openapi.felo.ai/v2/livedocs/{short_id}/tasksリクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
title | string | はい | タスクタイトル |
description | string | いいえ | タスク説明 |
status | integer | はい | タスクステータス: 0=TODO、1=IN_PROGRESS、2=DONE |
sort | integer | はい | 並び順(非負整数) |
labels | string[] | いいえ | ラベル一覧(最大 10 件、各最大 50 文字) |
operated_by | string | いいえ | オペレーター署名。例: 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}リクエストボディ
すべてのフィールドは任意です。
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
title | string | いいえ | 新しいタスクタイトル |
description | string | いいえ | 新しいタスク説明 |
status | integer | いいえ | 新しいステータス: 0=TODO、1=IN_PROGRESS、2=DONE |
sort | integer | いいえ | 新しい並び順(非負) |
labels | string[] | いいえ | 新しいラベル一覧(最大 10 件、各最大 50 文字) |
operated_by | string | いいえ | オペレーター署名。例: 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_type | string | いいえ | 記録タイプでフィルタリング: comment、edit、status_change |
page | integer | いいえ | ページ番号(1 ベース) |
size | integer | いいえ | ページサイズ |
例
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"
}
]
}
}タスク記録レスポンスフィールド
| フィールド | 型 | 説明 |
|---|---|---|
id | string | 記録 ID |
record_type | string | 記録タイプ: comment / edit / status_change |
content | string | コメント本文(comment タイプのみ) |
meta | object | 変更詳細(edit および status_change タイプ用) |
task_id | string | 親タスク ID |
operated_by | string | オペレーター署名。例: claude-code、openclaw |
created_at | string | 作成タイムスタンプ(ISO 8601) |
modified_at | string | 最終更新タイムスタンプ(ISO 8601) |
28. タスクコメントを追加する
タスクにコメントを追加します。
エンドポイント
POST https://openapi.felo.ai/v2/livedocs/{short_id}/tasks/{task_id}/commentsリクエストボディ
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
content | string | はい | コメント内容 |
operated_by | string | いいえ | オペレーター署名。例: 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 と同じ構造)。
エラーコード(更新版)
| Code | HTTP Status | Description |
|---|---|---|
INVALID_API_KEY | 401 | API Key が無効または取り消し済み |
LIVEDOC_CREATE_FAILED | 502 | LiveDoc の作成に失敗 |
LIVEDOC_UPDATE_FAILED | 502 | LiveDoc の更新に失敗 |
LIVEDOC_DELETE_FAILED | 502 | LiveDoc の削除に失敗 |
LIVEDOC_NOT_FOUND | 404 | LiveDoc が見つかりません |
LIVEDOC_LIST_FAILED | 502 | LiveDocs の一覧取得に失敗 |
LIVEDOC_RESOURCE_CREATE_FAILED | 502 | リソースの作成に失敗 |
LIVEDOC_RESOURCE_UPLOAD_FAILED | 502 | リソースのアップロードに失敗 |
LIVEDOC_RESOURCE_DELETE_FAILED | 502 | リソースの削除に失敗 |
LIVEDOC_RESOURCE_NOT_FOUND | 404 | リソースが見つかりません |
LIVEDOC_RESOURCE_LIST_FAILED | 502 | リソースの一覧取得に失敗 |
LIVEDOC_RESOURCE_RETRIEVE_FAILED | 502 | リソースの取得に失敗 |
LIVEDOC_RESOURCE_ADD_URLS_FAILED | 502 | URL リソースの追加に失敗 |
LIVEDOC_README_GET_FAILED | 502 | README の取得に失敗 |
LIVEDOC_README_UPDATE_FAILED | 502 | README の作成または更新に失敗 |
LIVEDOC_README_DELETE_FAILED | 502 | README の削除に失敗 |
LIVEDOC_README_NOT_FOUND | 404 | README が見つかりません |
LIVEDOC_TASK_LIST_FAILED | 502 | タスクの一覧取得に失敗 |
LIVEDOC_TASK_CREATE_FAILED | 502 | タスクの作成に失敗 |
LIVEDOC_TASK_UPDATE_FAILED | 502 | タスクの更新に失敗 |
LIVEDOC_TASK_DELETE_FAILED | 502 | タスクの削除に失敗 |
LIVEDOC_TASK_NOT_FOUND | 404 | タスクが見つかりません |
LIVEDOC_TASK_RECORD_LIST_FAILED | 502 | タスク記録の一覧取得に失敗 |
LIVEDOC_TASK_COMMENT_CREATE_FAILED | 502 | タスクコメントの作成に失敗 |