پرش به مستندات
API

گرفتن یک مورد دانش

یک مورد با متنش.

GET/knowledge/{id}

فراخوانی واقعی را روی فضای کاری شما اجرا می‌کند.

GET /knowledge/{id}

یک مورد با متنش.

نمونه

به knowledge:read نیاز دارد. body متن یک یادداشت است. preview نخستین 20,000 نویسه‌ای است که از فایل یا صفحه خوانده شده، و تا خوانده‌نشدن null است، و previewTruncated می‌گوید آیا متن ادامه دارد.

curl
curl "$OE/knowledge/kb_8c1f4a2b9d7e3f60a5c7b21d" -H "$AUTH"
پاسخ
{  "object": "knowledge_item",  "id": "kb_8c1f4a2b9d7e3f60a5c7b21d",  "kind": "note",  "scope": "@acme.com",  "level": "domain",  "title": "Refunds",  "url": null,  "fileName": null,  "mimeType": null,  "sizeBytes": null,  "pinned": true,  "status": "ready",  "failure": null,  "chunks": 1,  "chars": 71,  "origin": "api",  "createdBy": "usr_5f2a9c71",  "createdAt": "2026-10-08T09:12:44.000Z",  "updatedAt": "2026-10-08T09:12:44.000Z",  "indexedAt": "2026-10-08T09:12:45.000Z",  "body": "Refunds are paid within 14 days of the return reaching our warehouse.",  "preview": "Refunds are paid within 14 days of the return reaching our warehouse.",  "previewTruncated": false}

شناسهٔ ناشناخته، و موردی در سطحی که کلید نمی‌تواند ببیند، با 404 knowledge_not_found پاسخ می‌دهند.

مرجع