List authored knowledge entries
/v1/bots/{botId}/knowledge/entriesscope: knowledge:draftsRequires the knowledge:drafts scope on a key restricted to one bot, in a workspace whose plan includes the knowledge authoring API (Starter, Pro and Enterprise).
Parameters
botIdpath · stringrequired | — |
limitquery · integer | Default: 50 · Min: 1 · Max: 100 |
cursorquery · string | — |
Example
curl -X GET '$ORBCONTEXT_API_URL/v1/bots/{botId}/knowledge/entries' \
-H "Authorization: Bearer $ORBCONTEXT_API_KEY"{
"items": [
{
"id": "string",
"format": "txt",
"title": "string",
"collectionId": "string",
"order": 0,
"revision": 0,
"lastSavedAt": "2026-10-21T10:00:00.000Z",
"publishedRevision": 0,
"publishingRevision": 0,
"status": "draft",
"error": "string"
}
],
"nextCursor": "string"
}Responses
Cursor-paginated metadata and publication status.
Error responses share one shape; see Errors & limits.
Create an authored draft
/v1/bots/{botId}/knowledge/entriesscope: knowledge:draftsRequires the knowledge:drafts scope on a key restricted to one bot, in a workspace whose plan includes the knowledge authoring API (Starter, Pro and Enterprise).
Parameters
botIdpath · stringrequired | — |
Idempotency-Keyheader · stringrequired | — |
Request body · application/json
valueobject | objectrequired | — |
Example
curl -X POST '$ORBCONTEXT_API_URL/v1/bots/{botId}/knowledge/entries' \
-H "Authorization: Bearer $ORBCONTEXT_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: catalog-import-123' \
-d '{ "format": "txt", "title": "string", "body": "string" }'{
"id": "string",
"format": "txt",
"title": "string",
"collectionId": "string",
"order": 0,
"revision": 0,
"lastSavedAt": "2026-10-21T10:00:00.000Z",
"publishedRevision": 0,
"publishingRevision": 0,
"status": "draft",
"error": "string",
"draft": {
"format": "txt",
"title": "string",
"body": "string"
}
}Responses
The draft, or the current entry on retry with the same key and draft.
Error responses share one shape; see Errors & limits.
Get an authored draft
/v1/knowledge/entries/{id}scope: knowledge:draftsRequires the knowledge:drafts scope on a key restricted to one bot, in a workspace whose plan includes the knowledge authoring API (Starter, Pro and Enterprise).
Parameters
idpath · stringrequired | — |
viewquery · string | — |
Example
curl -X GET '$ORBCONTEXT_API_URL/v1/knowledge/entries/{id}' \
-H "Authorization: Bearer $ORBCONTEXT_API_KEY"{
"id": "string",
"format": "txt",
"title": "string",
"collectionId": "string",
"order": 0,
"revision": 0,
"lastSavedAt": "2026-10-21T10:00:00.000Z",
"publishedRevision": 0,
"publishingRevision": 0,
"status": "draft",
"error": "string",
"draft": {
"format": "txt",
"title": "string",
"body": "string"
}
}Responses
The current draft and publication status, or just the summary.
Error responses share one shape; see Errors & limits.
Save a draft revision
/v1/knowledge/entries/{id}scope: knowledge:draftsRequires the knowledge:drafts scope on a key restricted to one bot, in a workspace whose plan includes the knowledge authoring API (Starter, Pro and Enterprise).
Parameters
idpath · stringrequired | — |
Request body · application/json
revisionintegerrequired | Max: 9007199254740991 |
draftobject | objectrequired | — |
Example
curl -X PATCH '$ORBCONTEXT_API_URL/v1/knowledge/entries/{id}' \
-H "Authorization: Bearer $ORBCONTEXT_API_KEY" \
-H 'Content-Type: application/json' \
-d '{ "revision": 0, "draft": { "format": "txt", "title": "string", "body": "string" } }'{
"id": "string",
"format": "txt",
"title": "string",
"collectionId": "string",
"order": 0,
"revision": 0,
"lastSavedAt": "2026-10-21T10:00:00.000Z",
"publishedRevision": 0,
"publishingRevision": 0,
"status": "draft",
"error": "string",
"draft": {
"format": "txt",
"title": "string",
"body": "string"
}
}Responses
The saved draft and its current revision.
Error responses share one shape; see Errors & limits.
Publish a saved draft revision
/v1/knowledge/entries/{id}/publishscope: knowledge:publishRequires the knowledge:publish scope on a key restricted to one bot, in a workspace whose plan includes the knowledge authoring API (Starter, Pro and Enterprise).
Parameters
idpath · stringrequired | — |
Request body · application/json
revisionintegerrequired | Max: 9007199254740991 |
Example
curl -X POST '$ORBCONTEXT_API_URL/v1/knowledge/entries/{id}/publish' \
-H "Authorization: Bearer $ORBCONTEXT_API_KEY" \
-H 'Content-Type: application/json' \
-d '{ "revision": 0 }'{
"id": "string",
"format": "txt",
"title": "string",
"collectionId": "string",
"order": 0,
"revision": 0,
"lastSavedAt": "2026-10-21T10:00:00.000Z",
"publishedRevision": 0,
"publishingRevision": 0,
"status": "draft",
"error": "string"
}Responses
Publication accepted. Poll entry metadata with a drafts key to check indexing status.
Error responses share one shape; see Errors & limits.
Unpublish an entry
/v1/knowledge/entries/{id}/unpublishscope: knowledge:publishRequires the knowledge:publish scope on a key restricted to one bot, in a workspace whose plan includes the knowledge authoring API (Starter, Pro and Enterprise).
Parameters
idpath · stringrequired | — |
Example
curl -X POST '$ORBCONTEXT_API_URL/v1/knowledge/entries/{id}/unpublish' \
-H "Authorization: Bearer $ORBCONTEXT_API_KEY"{
"id": "string",
"format": "txt",
"title": "string",
"collectionId": "string",
"order": 0,
"revision": 0,
"lastSavedAt": "2026-10-21T10:00:00.000Z",
"publishedRevision": 0,
"publishingRevision": 0,
"status": "draft",
"error": "string"
}Responses
The entry no longer answers questions, effective at once. Its draft is kept, so it can be published again.
Error responses share one shape; see Errors & limits.