ドキュメント本文へスキップ
API

スレッドにメモを追加する

スレッドに個人用メモを留める。

POST/threads/{id}/notes

実際の呼び出しをワークスペースに対して実行します。

POST /threads/{id}/notes

スレッドに個人用メモを留める。

例

threads:write が必要。content は 20,000 文字まで、color は default、red、orange、yellow、green、blue、purple、pink のいずれかで、pinned はメモを上に留める。メモを付けて 201 を返す。

curl
curl -X POST "$OE/threads/thr_7c1e4a90/notes" -H "$AUTH" -H "Content-Type: application/json" \  -d '{ "content": "Waiting on the signed contract before replying.", "color": "yellow", "pinned": true }'
レスポンス
{  "object": "note",  "id": "b3d1f0c2-7a4e-4f7b-9c1d-2e8f6a5b4c3d",  "threadId": "thr_7c1e4a90",  "content": "Waiting on the signed contract before replying.",  "color": "yellow",  "pinned": true,  "order": 4,  "createdAt": "2026-09-30T09:12:44.000Z",  "updatedAt": "2026-09-30T09:12:44.000Z"}

新しいメモは他のメモの後ろに入る。同じリクエストを二度送るとメモが二つ増える。

リファレンス