Working with Site Types and Scopes
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.
The type of site determines its purpose and how it interacts with Bitrix24. This affects how the site is created, which pages, blocks, and settings are available, and which landing methods can be used. For instance, different capabilities are available for a knowledge base and an online store.
The scope parameter in landing methods is not related to the REST scope landing that you provide to the application or webhook.
What You Need to Know
- The
scopeparameter is not required forPAGE,STORE, andSMNtypes. - For
KNOWLEDGE,GROUP, andMAINPAGE, you need to pass the top-levelscopeparameter. - If
scopeis not provided, methods will only work withPAGE,STORE, andSMNtypes. - The value of
scopemust match the site type or the filter value by type. - The scope affects not only the list of sites and pages but also the set of available blocks and site settings.
- The
GROUPtype is only available on accounts that support group knowledge bases.
Site Types
|
Type |
Description |
|
|
|
Regular site |
Do not pass |
|
|
Store |
Do not pass |
|
|
Site of the Sites24 section in 1C-Bitrix: Site Management |
Do not pass |
|
|
Knowledge base |
|
|
|
Group knowledge base |
|
|
|
Main page or vibe |
|
How Scope Works
Without the scope parameter, REST methods operate in standard mode and only see sites of types PAGE, STORE, and SMN. If you provide scope, the methods switch to the corresponding site type. For example, with scope = "KNOWLEDGE", the lists of sites, pages, permissions, and available blocks will only work for knowledge bases.
|
scope in request |
Which site types the methods work with |
When to use |
Public path |
|
do not pass |
|
Regular sites and stores |
Depends on the domain and site settings |
|
|
|
Knowledge bases |
|
|
|
|
Group knowledge bases |
|
|
|
|
Main page and vibe |
|
When creating a site, the value of scope must match fields.TYPE. When retrieving a list of sites or pages, the value of scope must match the filter value by type.
What Changes in Special Scopes
Special scopes not only change the selection of sites and pages.
|
Scope |
What Changes for the User |
|
|
Methods only work with knowledge bases. Some site settings are unavailable, such as SEO fields, analytics, pixels, custom code, favicon, cookies banner, Bitrix24 widget, catalog settings, and optimization. |
|
|
Methods only work with group knowledge bases. The restrictions on settings are the same as for |
|
|
Methods only work with the main page and vibe. In addition to general restrictions, some design settings are unavailable, such as font themes, page appearance animation, and the back-to-top button. |
How to Pass Scope in REST
For regular sites, the scope parameter is not needed:
{
"params": {
"filter": {
"TYPE": "PAGE"
}
}
}
For a knowledge base, pass the top-level scope:
{
"scope": "KNOWLEDGE",
"params": {
"filter": {
"TYPE": "KNOWLEDGE"
}
}
}
When creating a special type of site, scope and fields.TYPE must match:
{
"scope": "MAINPAGE",
"fields": {
"TITLE": "Company Main Page",
"CODE": "mainpage",
"TYPE": "MAINPAGE"
}
}
Continue Your Learning
- Add site landing.site.add
- Get the List of Sites landing.site.getList
- Get a List of Pages landing.landing.getList
- Get a List of Blocks from the Repository `landing.block.getrepository`
- Add Block to Page `landing.landing.addblock`