メインコンテンツへ移動
Nowledge MemNowledge Mem

スレッドにメッセージを追記

POST
/threads/{thread_id}/append

Append messages to existing thread (for MCP integration).

Supports two modes:

  1. Direct messages: {"messages": [...]}
  2. File-based: {"file_path": "...", "format": "auto"}

Optional controls:

  • deduplicate (default: true)
  • idempotency_key (string; used to derive stable external_ids)
  • space_id (optional; guards appends to a specific Mem space)

パスパラメータ

thread_id*Thread Id

リクエストボディ

application/json

TypeScript定義

TypeScriptでrequest body型を使用します。

レスポンスボディ

application/json

application/json

curl -X POST "https://example.com/threads/string/append" \  -H "Content-Type: application/json" \  -d '{}'
{  "messages_added": 0,  "success": true,  "thread_id": "string",  "total_messages": 0}