About REST API in Websites

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.

We are still updating this page

Some data may be missing — we will complete it shortly.

Quick navigation: all methods

To create a fully functional website via REST or to make changes to an existing one, you need to understand that REST mimics user interaction logic. For example, to start modifying a block, you must first add it if it is not present on the page, and to see the changes, you need to publish the page. Let's summarize the steps briefly.

So, "to create a website," you need just a few things:

  1. Create a website or choose one from the existing options. In the end, you will have an identifier for the website you are working with. (Methods for working with the website.)
  2. Next, it's time for the page. Similarly, create a page or select from existing ones. (Methods for working with the page.)
  3. Blocks. Blocks are the molecules of websites (nodes – atoms). You should have a good understanding of what a block is and what its manifest entails. You can work with blocks in the context of a page (adding, moving, deleting) using these methods. To work with a specific block, use these methods.
  4. Don't forget, after all actions, the page needs to be published.
  5. If you need more blocks, you can always register new ones.

This is the essential framework you need to work with blocks. There are certainly many more methods available, and they are quite specific to cover most of your use cases.

Good luck!

Overview of Methods

User Blocks

Method

Description

Version

landing.repo.getList

Method to get the list of blocks in the current application.

landing.repo.register

Method to add a block to the repository.

landing.repo.unregister

Method to remove a block.

landing.repo.checkContent

Method checks content for dangerous substrings.

Templates

Method

Description

landing.template.getLandingRef

Gets the list of included areas for the page.

landing.template.getlist

Gets the list of templates.

landing.template.getSiteRef

Gets the list of included areas for the site.

landing.template.setLandingRef

Sets the included areas for the page.

landing.template.setSiteRef

Sets the included areas for the site.

User Templates

Method

Description

landing.demos.register

Method registers a template in the site and page creation wizard.

landing.demos.unregister

Method removes a registered user template.

landing.demos.getList

Method to get the list of available user templates in the current application.

landing.demos.getSiteList

Method to get the list of available templates for creating websites.

landing.demos.getPageList

Method to get the list of available templates for creating pages.

Websites

Method

Description

Version

landing.site.add

Adds a website.

landing.site.addFolder

Adds a folder to the website.

21.800.0

landing.site.delete

Deletes a website.

landing.site.fullExport

Exports the website and all its pages into a special array.

landing.site.getFolders

Gets the folders of the website.

21.800.0

landing.site.getList

Gets the list of websites.

landing.site.getPreview

Returns the URL of the website preview image.

21.800.0

landing.site.getPublicUrl

Returns the full URL of the websites.

18.7.500

landing.site.getadditionalfields

Gets additional fields of the website.

landing.site.markDelete

Marks the website as deleted.

landing.site.markFolderDelete

Marks the folder as deleted.

21.800.0

landing.site.markFolderUnDelete

Restores the folder from the trash.

21.800.0

landing.site.markUnDelete

Restores the website from the trash.

landing.site.publication

Publishes the website and all its pages.

landing.site.publicationFolder

Publishes the website folder.

21.800.0

landing.site.unPublicFolder

Unpublishes the website folder.

21.800.0

landing.site.unpublic

Unpublishes the website and all its pages.

landing.site.update

Updates the website parameters.

landing.site.updateFolder

Updates the folder parameters.

21.800.0

Rights

Method

Description

landing.role.enable

Toggles models.

landing.role.isEnabled

Determines rights models.

Extended Rights Model

Method

Description

landing.site.getRights

Method returns the rights of the current user.

landing.site.setRights

Sets access permissions for the website.

Role-Based Rights Model

Method

Description

landing.role.getList

Method allows you to get the list of roles.

landing.role.getRights

Method allows you to get the list of websites for which rights are set within the role.

landing.role.setAccessCodes

Method sets access codes for the role that will apply to this role.

landing.role.setRights

Method sets the necessary rights within the role for website lists.

Pages

Method

Description

Version

landing.landing.add

Method for adding a page.

landing.landing.addByTemplate

Method for adding a page by template.

landing.landing.copy

Method copies the specified page.

landing.landing.delete

Method for deleting a page.

landing.landing.getadditionalfields

Method for getting additional fields of the page.

landing.landing.getlist

Method for getting the list of pages.

landing.landing.getpreview

Method returns the path to the page preview.

landing.landing.getpublicurl

Method returns the web address of the page.

landing.landing.markDelete

Method marks the page as deleted.

landing.landing.markUnDelete

Method marks the page as not deleted.

landing.landing.move

Method moves the page to another website and/or folder.

21.800.0

landing.landing.publication

Method for publishing the page.

landing.landing.removeEntities

Method removes related entities of the landing page.

landing.landing.resolveIdByPublicUrl

Method returns the page identifier by the provided relative URL.

21.800.0

landing.landing.unpublic

Method for unpublishing the page.

landing.landing.update

Method for modifying the page.

Working with Blocks on the Page

Method

Description

Version

landing.landing.addblock

Method for adding a new block to the page.

landing.landing.copyblock

Method for copying a block from one page to another.

landing.landing.deleteblock

Method for deleting a block from the page.

landing.landing.downblock

Method for moving a block down one position on the page.

landing.landing.favoriteBlock

Method saves an existing block on the page to "My Blocks."

21.800.0

landing.landing.hideblock

Method hides a block from the page.

landing.landing.markdeletedblock

Method marks a block as deleted but does not physically remove it.

landing.landing.markundeletedblock

Method restores a block from the marked deleted state.

landing.landing.moveblock

Method for moving a block from one page to another.

landing.landing.showblock

Method for displaying a block on the page.

landing.landing.unFavoriteBlock

Method removes a block that was saved in "My Blocks."

21.800.0

landing.landing.upblock

Method for moving a block up one position on the page.

Special Pages

Method

Description

landing.syspage.deleteForLanding

Deletes all bindings of the page as a special one.

landing.syspage.deleteForSite

Deletes all special pages.

landing.syspage.getSpecialPage

Gets the address of the special page of the website.

landing.syspage.get

Gets the list of special pages.

landing.syspage.set

Sets a special page for the website.

Blocks

Method

Description

Version

landing.block.clonecard

Method for cloning a block card.

landing.block.removecard

Method for removing a block.

landing.block.updatenodes

Method for changing the content of a block.

landing.block.changeNodeName

Method changes the tag name.

landing.block.updateattrs

Method for changing the attributes of a block node.

landing.block.updateStyles

Method for changing the styles of a block.

landing.block.getcontent

Method for getting the content of a block.

landing.block.getlist

Method for getting the list of blocks on the page.

landing.block.getbyid

Method for getting a block by its identifier.

landing.block.getmanifest

Method for getting the manifest of a specific block already placed on the page.

landing.block.getmanifestfile

Method for getting the manifest of a block from the repository.

landing.block.getrepository

Method returns the list of blocks from the repository.

landing.block.uploadfile

Method uploads an image and links it to the specified block.

landing.block.updatecontent

Method updates the content of a block already placed on the page to any arbitrary content.

landing.block.addcard

Method fully replicates the work of landing.block.clonecard but allows you to insert a card with modified content immediately.

landing.block.updateCards

Method for mass updating block cards.

landing.block.changeAnchor

Method changes the symbolic code of the anchor.

landing.block.getContentFromRepository

Method gets the content of a block from the repository "as is" before adding the block to any page.

18.7.500

Embedding Knowledge Base

Method

Description

landing.site.bindingToGroup

Binds to a social network group.

landing.site.bindingToMenu

Embeds into the menu.

landing.site.getGroupBindings

Gets bindings to groups.

landing.site.getMenuBindings

Gets the list of bindings in the menu.

landing.site.unbindingFromGroup

Removes the binding to a social network group.

landing.site.unbindingFromMenu

Removes from the menu.