Knowledge Base 2.0 in REST 3.0: Section Overview
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Knowledge Base 2.0 helps collect internal company materials: regulations, instructions, training texts, and other documents. You can maintain multiple knowledge bases, build a page hierarchy, restrict access, and collaborate on content.
The section methods work with several groups of objects:
- Knowledge Bases — create a knowledge base, retrieve data and field schemas, rename, archive, and move to the shopping cart
- Documents — create documents, retrieve the page tree and content, search for documents, retrieve field schemas for documents, the tree, and search, and archive or delete page subtrees
- Files — upload a file to a document, retrieve data and field schemas, and return a Markdown block for inserting an attachment
Quick navigation: all methods
User documentation: Knowledge Base 2.0
Getting Started
- Create a knowledge base using the note.collection.add method if you do not already have a container for documents
- Retrieve a list of available knowledge bases using the note.collection.list method if you need to work with an existing structure
- Retrieve data for a single knowledge base using the note.collection.get method if you need to open a selected knowledge base by its ID
- Retrieve knowledge base fields using the note.collection.field.list and note.collection.field.get methods if you are building a form or a table on your side
- Create a root document using the note.document.add method
- Retrieve the document tree using the note.document.tree.list method if you need to display the page structure
- Read an individual document using the note.document.get method or search for documents using the note.document.search.list method
- Retrieve fields for documents, the tree, and search using methods
note.document.field.*,note.document.tree.field.*,note.document.search.field.* - Update a document heading and content using the note.document.update method
- Upload images, videos, and standard files using the note.file.add method
- Use the
assetMarkdownfrom the note.file.add response or retrieve it using the note.file.get method, then add the attachment to a document via note.document.update - Retrieve file fields using the note.file.field.list and note.file.field.get methods if you are building your own form or table
- Archive or delete a knowledge base and documents using the corresponding methods when you need to finish working with the materials
Limitations and Recommendations
- Document archiving and deletion methods operate on the entire subtree rather than a single page. If a document has child pages, they will also be archived or moved to the shopping cart.
- Access to view and edit Knowledge bases, documents, and files depends on the current user's permissions. The same scenario may be available to some employees and unavailable to others.
User documentation
Connection with Other Objects
Documents. The Knowledge base is populated with documents. You can first create a root page and then add child pages to it to build a tree of materials organized by topic. To do this, specify the Knowledge base where the document should appear when creating a document, and for nested pages, additionally provide the parent document.
Files. Files are added to a specific document rather than the entire Knowledge base. First, upload a file using the note.file.add method, then retrieve the assetMarkdown from the method response or obtain it using the note.file.get method. After that, update the document content using the note.document.update method so that the attachment appears in the page text.
Overview of Methods
Scope:
noteWho can execute the methods: depends on the method
Knowledge Bases
|
Method |
Description |
|
Creates a knowledge base |
|
|
Renames a knowledge base |
|
|
Returns a single knowledge base by ID |
|
|
Returns a list of knowledge bases available to the user |
|
|
Moves a knowledge base to the trash |
|
|
Archives a knowledge base |
|
|
Returns the description of a knowledge base field |
|
|
Returns a list of knowledge base fields |
Documents
|
Method |
Description |
|
Creates a document |
|
|
Updates the title and content of a document |
|
|
Returns a document with content in Markdown |
|
|
Moves a document and its child pages to the trash |
|
|
Archives a document and its child pages |
|
|
Returns the document tree of a single knowledge base |
|
|
Searches for documents by title and content |
|
|
Returns the description of a document field |
|
|
Returns a list of document fields |
|
|
Returns the description of a document tree field |
|
|
Returns a list of document tree fields |
|
|
Returns the description of a document search result field |
|
|
Returns a list of document search result fields |
Files
|
Method |
Description |
|
Uploads a file to a document |
|
|
Returns the document file data and a Markdown block for insertion into the document |
|
|
Returns the description of a document file field |
|
|
Returns a list of document file fields |